]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
672f9b60
KP
12011-09-15 Kevin Pouget <kevin.pouget@st.com>
2
3 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
4 note if the breakpoint is internal.
5
43675ae4
KP
62011-09-15 Kevin Pouget <kevin.pouget@st.com>
7
8 * MAINTAINERS (Right After Approval): Add myself to the list
9
15148d6a
PA
102011-09-14 Pedro Alves <pedro@codesourcery.com>
11
12 * infrun.c (prepare_for_detach, wait_for_inferior)
13 (fetch_inferior_event): Don't flush the register cache.
14 * remote.c (struct stop_reply) <regcache>: Add comment.
15
d83e736b
JK
162011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
17
18 Remove excessive DWARF expressions memory duplication.
19 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
20 for block.data.
21 (indirect_pieced_value): Remove variable result. Remove variable
22 back_to and its use for baton.data.
23 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
24 block.data.
25 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
26 Update the function comment.
27
c65b3e0d
PA
282011-09-13 Pedro Alves <pedro@codesourcery.com>
29
30 * inferior.h (ALL_INFERIORS): New.
31 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
32 for a stopped thread.
33 (thread_db_find_new_threads): Look for threads in all inferiors.
34
a1398e0c
PA
352011-09-13 Pedro Alves <pedro@codesourcery.com>
36
37 * breakpoint.c (update_watchpoint): Handle the case of the
38 watchpoint to update not being in the breakpoint list yet.
39 (hw_watchpoint_use_count): New, factored out from
40 hw_watchpoint_used_count.
41 (hw_watchpoint_used_count): Rename to ...
42 (hw_watchpoint_used_count_others): ... this. Add `except'
43 parameter. Don't count resources of `except'. Use
44 hw_watchpoint_use_count.
45
30596231
PA
462011-09-13 Pedro Alves <pedro@codesourcery.com>
47
48 * gdbthread.h (enum thread_state): Moved here.
49 (struct thread_info): Rename `executing_' field to `executing' and
50 `state_' to `state'.
51 * thread.c (enum thread_state): Moved to gdbthread.h.
52 (new_thread, add_thread_silent, delete_thread_1)
53 (any_live_thread_of_process, thread_alive, set_running)
54 (set_running, is_thread_state, any_running, is_executing)
55 (set_executing, finish_thread_state, print_thread_info)
56 (do_captured_thread_select): Adjust.
57
bede5f5f
JK
582011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 Fix compatibility with gcc < 4.3 and non-gcc compilers.
61 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
62
4801a9a3
PA
632011-09-12 Pedro Alves <pedro@codesourcery.com>
64 Matt Rice <ratmice@gmail.com>
65
66 PR gdb/13175
67
68 * interps.c (struct interp) <interpreter_out>: Delete field.
69 (interp_new): Remove the data and uiout parameters and adjust.
70 (interp_set): Only set the current_uiout from the interpreter's
71 uiout after initializing the interpreter. Adjust call to
72 init_proc.
73 (interp_ui_out): Adjust to call procs->ui_out_proc.
74 (interp_data, interp_name): New.
75 * interps.h (interp_init_ftype): Add `self' parameter.
76 (interp_ui_out_ftype): New typedef.
77 (struct interp_procs) <ui_out_proc>: New method pointer.
78 (interp_new): Remove the data and uiout parameters.
79 (interp_data, interp_name): Declare.
80 * tui/tui-interp.c (tui_init): Adjust prototype.
81 (tui_ui_out): New.
82 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
83 tui_out here. Adjust call to interp_new.
84 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
85 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
86 (cli_ui_out): New.
87 (_initialize_cli_interp): Install it. Adjust call to interp_new.
88 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
89 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
90 Initialize mi->uiout depending on the mi_version as extracted from
91 the interpreter's name.
92 (mi_ui_out): New.
93 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
94 interp_new. Don't allocate the ui_out's of the interpreters here.
95
d0afda03 962011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 97
d0afda03 98 * solib.c (solib_used): New function.
59145f8c
AR
99 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
100 by another so_list object before freeing it.
101
bdaf8d4a
JK
1022011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
103
104 Code cleanup.
105 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
106 values.
107
df15bd07
JK
1082011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 Code cleanup.
111 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
112 (amd64_skip_xmm_prologue): ... this new function. Describe its
113 parameters. No longer use amd64_prologue_line_bug.
114 * defs.h (producer_is_gcc_ge_4): New declaration.
115 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
116 (process_full_comp_unit): Update its caller. Remove
117 amd64_prologue_line_bug initialization.
118 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
119 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
120
25289eb2
PA
1212011-09-09 Pedro Alves <pedro@codesourcery.com>
122
123 * linux-nat.h (enum resume_kind): New.
124 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
125 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
126 resume_stop on the new lwp.
25289eb2
PA
127 (add_lwp): Set last_resume_kind as resume_continue by default.
128 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
129 (resume_lwp): New, factored out from resume_callback. Also check
130 for pending status in lp->waitstatus.
131 (resume_callback): Reimplement.
132 (resume_clear_callback): Set last_resume_kind as resume_stop.
133 (resume_set_callback): Set last_resume_kind as resume_continue.
134 (linux_nat_resume, linux_handle_extended_wait): Set
135 last_resume_kind.
136 (running_callback): Also check lp->waitstatus for pending events.
137 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
138 is resume_step.
139 (stop_and_resume_callback): Don't re-resume if the core wanted the
140 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
141 using an invalidated pointer.
142 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
143 SIGSTOPs if the core wanted the LWP to stop.
144 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
145 wanted the lwp to stop. If the core wanted the lwp to stop, and
146 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
147 of TARGET_SIGNAL_STOP.
148 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
149 here. Instead, signal the lwp, and set the last_resume_kind to
150 resume_stop.
151
f687d035
PA
1522011-09-09 Pedro Alves <pedro@codesourcery.com>
153
154 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
155 -1 (error), if the lwp exits right after attaching.
156
bc587a6b
DE
1572011-09-08 Doug Evans <dje@google.com>
158
63d97a20
DE
159 * py-cmd.c: Some minor formatting fixes.
160 (gdbpy_parse_command_name): Rename text arg to name, make const.
161 All callers updated.
162 * python-internal.h (gdbpy_parse_command_name): Update.
163
bc587a6b
DE
164 * cli/cli-decode.c (add_cmd): Add comment.
165
08711b9a
JK
1662011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 PR breakpoints/12435
169 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
170 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
171 * dwarf2read.c (process_full_comp_unit): Initialize
172 amd64_prologue_line_bug.
173 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
174
b2e7f004
JK
1752011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 Fix TUI screen corruption.
178 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
179 batch_flag.
180
8afd712c
JK
1812011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
182
183 * findvar.c (read_var_value): Never return NULL, throw an error
184 instead. Update the function comment. State symbol name in the error
185 messages.
186 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
187 read_var_value.
188 * stack.c (print_frame_args): Likewise.
189 * valops.c (value_of_variable): Likewise.
190
b99b5f66
JK
1912011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
192
193 * stack.c (print_frame_args): New variable except. Wrap
194 read_var_value and common_val_print into TRY_CATCH.
195
85bc8cb7
JK
1962011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
199 caller to value_of_this.
200 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
201 Twice.
202 * valops.c (value_of_this): Remove parameter complain and variable ret.
203 Update function comment. Never return NULL by this code.
204 (value_of_this_silent): New function.
205 * value.h (value_of_this): Remove parameter complain.
206 (value_of_this_silent): New declaration.
207
ede1849f
YQ
2082011-09-07 Yao Qi <yao@codesourcery.com>
209
210 * gdbthread.h (struct thread_info): Remove fields
211 `stepping_through_solib_after_catch' and
212 `stepping_through_solib_catchpoints'.
213 * infrun.c (init_thread_stepping_state): Update.
214 (process_event_stop_test, currently_stepping): Update.
215 (currently_stepping_or_nexting_callback): Update.
216
6aa27652
YQ
2172011-09-07 Yao Qi <yao@codesourcery.com>
218
219 * gdbthread.h (struct thread_info): Comment on field
220 `step_after_step_resume_breakpoint'.
221
00db5b94
PA
2222011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
223
224 * remote.c (remote_console_output): Reindent.
225
861152be
LM
2262011-09-06 Luis Machado <lgustavo@codesourcery.com>
227
228 * frame.c (has_stack_frames): Check for currently selected
229 traceframe.
230
ab821bc6
PA
2312011-09-06 Pedro Alves <pedro@codesourcery.com>
232
233 * event-top.h (MAXPROMPTS, struct prompts): Delete.
234 (set_async_annotation_level, set_async_prompt, pop_prompt)
235 (push_prompt, new_async_prompt): Delete declarations.
236 * top.h (get_prompt, set_prompt): Change prototype.
237 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
238 declarations.
239 * top.c (command_loop):
240 (top_prompt): New global.
241 (get_prefix, set_prefix, get_suffix, ): Delete.
242 (get_prompt, set_prompt): Rewrite.
243 (show_new_async_prompt): Rename to ...
244 (show_prompt): ... this.
245 (init_main): Adjust. Don't handle --annotate=2 here.
246 * event-top.c (new_async_prompt): Delete.
247 (the_prompts): Delete.
248 (more_to_come): Make static.
249 (display_gdb_prompt): Use top_level_prompt() to compute the top
250 level prompt, and don't notify the before_prompt observers
251 directly here. Always trick readline into not trying to display
252 the prompt if sync_execution and displaying the primary prompt.
253 If displaying a local/secondary prompt, always show it, even if
254 sync_execution is set.
255 (change_annotation_level): Delete.
256 (top_level_prompt): New, based on change_annotation_level.
257 (push_prompt, pop_prompt): Delete.
258 (async_disable_stdin): No longer pushes prompt.
259 (command_line_handler): No longer pushes or pops prompt. If more
260 input is expected, call display_gdb_prompt with an explicit empty
261 prompt.
262 (async_stop_sig): Adjust.
263 (set_async_annotation_level, set_async_prompt): Delete.
264 * python/python.c (before_prompt_hook): Adjust.
265
f1d90504
PA
2662011-09-05 Pedro Alves <pedro@codesourcery.com>
267
268 PR cli/13110
269
270 * infrun.c (fetch_inferior_event): Check if there's a selected
271 thread before checking if the selected thread is executing.
272
0f641c01
PA
2732011-09-05 Pedro Alves <pedro@codesourcery.com>
274
275 * inf-loop.c (execute_command): Don't check if the current thread
276 if running before synchronously waiting for command completion.
277 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
278 here.
279 (normal_stop): Call async_enable_stdin here.
280 * inf-loop.c (inferior_event_handler): Don't call
281 async_enable_stdin, nor handle "set exec-done-display" here.
282
30368258 2832011-09-04 Joel Brobecker <brobecker@adacore.com>
284
285 GDB 7.3.1 released.
286
31916278
JB
2872011-09-04 Joel Brobecker <brobecker@adacore.com>
288
289 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
290
e8d56f18
JB
2912011-09-04 Joel Brobecker <brobecker@adacore.com>
292
293 * NEWS: Add entry for OpenBSD/NetBSD build failure.
294
5dd05d8c
JK
2952011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
296
297 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
298
7d8e6458 2992011-09-02 Matt Rice <ratmice@gmail.com>
300
301 PR gdb/10720
302 * event-top.c (cli_command_loop): Replace readline setup with
303 direct call to display_gdb_prompt.
304 (display_gdb_prompt): Do not call observer mechanism during
305 synchronous execution.
306
84636d28
PA
3072011-09-02 Pedro Alves <pedro@codesourcery.com>
308
309 * linux-nat.c (in_pid_list_p): New.
310 (linux_record_stopped_pid): Delete.
311 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
312 already attached to the LWP. Return an indication if so.
313 (linux_nat_filter_event): Adjust.
314 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
315 returning an indication to ignore this thread.
316
b4a14fd0
PA
3172011-09-02 Pedro Alves <pedro@codesourcery.com>
318
319 * top.c: Include interps.h.
320 (execute_command): If the target can async, but the interpreter is
321 in sync mode, synchronously wait for the command to finish before
322 returning.
323 (execute_command_to_string): Force the interpreter to sync mode.
324 * infrun.c: Include interps.h.
325 (fetch_inferior_event): Don't restore the prompt yet if the
326 interpreter is in sync mode.
327 * interps.c (interpreter_async): New global.
328 * interps.h (interpreter_async): Declare.
329 * inf-loop.c: Include interps.h.
330 (inferior_event_handler): Don't print the language change or run
331 breakpoint commands yet if the interpreter in is sync mode.
332 * main.c (captured_command_loop): Flip the interpreter to async
333 mode.
334 * cli/cli-script.c: Include interps.h.
335 (execute_user_command, while_command, if_command): Force the
336 interpreter to sync mode.
337 * python/python.c: Include interps.h.
338 (python_command, execute_gdb_command): Force the interpreter to
339 sync mode.
340
c709acd1
PA
3412011-09-02 Pedro Alves <pedro@codesourcery.com>
342
343 * value.c (show_convenience): Catch errors thrown while printing
344 each internal variable.
345 * infrun.c (validate_siginfo_access): New function.
346 (siginfo_value_read, siginfo_value_write): Call it.
347
9655e943
JK
3482011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 Revert:
351 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
352 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
353 attribute.
354
cb457ae2
YQ
3552011-08-29 Yao Qi <yao@codesourcery.com>
356
357 * solib-dsbt.c (bfd_lookup_symbol): Removed.
358 (cmp_name): New.
359 (enable_break2): Update caller.
360 * solib-frv.c (bfd_lookup_symbol): Removed.
361 (cmp_name): New.
362 (enable_break2): Update caller.
363 * solib-pa64.c (bfd_lookup_symbol): Removed.
364 (cmp_name): New.
365 * solib-svr4.c (bfd_lookup_symbol): Removed.
366 (cmp_name_and_sec_flags): New.
367 (enable_break): Update caller.
368 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
369 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
370 (gdb_bfd_lookup_symbol): New.
371 * solib.h: Functions declarations.
372
83d1a36a
YQ
3732011-08-29 Yao Qi <yao@codesourcery.com>
374
375 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
376 and solib-dsbt.o.
377
c04b3e8f
JK
3782011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
379
380 Fix TUI stepi on code without symbols.
381 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
382 current PC instead.
383
cb0fd152
JK
3842011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
385
386 Code cleanup.
387 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
388 and the static keyword.
389 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
390 Make prefix an array.
391 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
392 * mi/mi-main.c (get_register): Remove stb initialization and the static
393 keyword.
394
91174723
JK
3952011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 Code cleanup - make mi_opt const.
398 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
399 opts const.
400 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
401 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
402 (mi_cmd_env_dir): Likewise.
403 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
404 (mi_cmd_target_file_put): Likewise.
405 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
406 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
407 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
408 (mi_valid_noargs): Make opts const.
409 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
410 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
411 (mi_cmd_data_read_memory): Likewise.
412 (mi_cmd_data_read_memory_bytes): Likewise.
413 (mi_cmd_data_write_memory): Likewise.
414
5068b8e8 4152011-08-26 Matt Rice <ratmice@gmail.com>
416
417 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
418 bcache_xmalloc, replace bcache_xmalloc with call to
419 psymbol_bcache_init for psymbol_cache.
420 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
421
a4f2ce05
JK
4222011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * inf-loop.c (inferior_event_handler): Add exception_print in
425 INF_EXEC_COMPLETE.
426
353d1d73
JK
4272011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
430 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
431 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
432 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
433 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
434 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
435 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
436 * infrun.c (fetch_inferior_event): Call
437 make_bpstat_clear_actions_cleanup.
438 * top.c (execute_command): New variable cleanup_if_error, call
439 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
440 * utils.c (do_bpstat_clear_actions_cleanup)
441 (make_bpstat_clear_actions_cleanup): New functions.
442
3ced3da4
PA
4432011-08-26 Pedro Alves <pedro@codesourcery.com>
444
445 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
446 either the parent or the child forks. Rename a couple locals.
447
a9f4bb21
PA
4482011-08-26 Pedro Alves <pedro@codesourcery.com>
449
450 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
451 library call. Avoid reading the `status' local if all waitpid
452 calls failed.
453
e5798bef
PA
4542011-08-26 Pedro Alves <pedro@codesourcery.com>
455
456 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
457 opening /proc/PID/task always succeeds.
458
edb2aadf
AR
4592011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
460
461 * linespec.c (symtab_from_filename): Check for the end of string.
462
0d932b2f
MK
4632011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
464
465 PR mi/11912
466 * varobj.c (cplus_describe_child): Add the keyword
467 'class' to the output of the method when dealing
468 with a cast to a base class.
469
e93ca019
JK
4702011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
471
472 No functionality change.
473 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
474 function comment a reference, new variables tp and bs, move here code
475 from throw_exception.
476 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
477 describe it in the comment.
478 * exceptions.c (throw_exception): Remove variable tp, move the code for
479 bpstat_clear_actions to bpstat_clear_actions.
480
13da1c97
LM
4812011-08-24 Luis Machado <lgustavo@codesourcery.com>
482
483 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
484 * linux-nat.c: Include linux-procfs.h.
485 (linux_proc_get_tgid): Move to ...
486 * common/linux-procfs.c: ... here. New file.
487 * common/linux-procfs.h: New file.
488 * linux-thread-db.c: Include linux-procfs.h.
489 * Makefile.in: Update dependencies.
490 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
491 * config/arm/linux.mh: Likewise.
492 * config/i386/linux.mh: Likewise.
493 * config/i386/linux64.mh: Likewise.
494 * config/ia64/linux.mh: Likewise.
495 * config/m32r/linux.mh: Likewise.
496 * config/m68k/linux.mh: Likewise.
497 * config/mips/linux.mh: Likewise.
498 * config/pa/linux.mh: Likewise.
499 * config/pa/linux.mh: Likewise.
500 * config/powerpc/linux.mh: Likewise.
501 * config/powerpc/ppc64-linux.mh: Likewise.
502 * config/powerpc/spu-linux.mh: Likewise.
503 * config/sparc/linux.mh: Likewise.
504 * config/sparc/linux64.mh: Likewise.
505 * config/xtensa/linux.mh: Likewise.
506
4e5c165d
HZ
5072011-08-24 Hui Zhu <teawater@gmail.com>
508
509 * tracepoint.c (cond_string_is_same): New function.
510 (find_matching_tracepoint): Add condition check
511 by cond_string_is_same.
512
6e2f5b22
JK
5132011-08-23 Josh Matthews <josh@joshmatthews.net>
514
515 Fix build error in Darwin port.
516 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
517
abf85f46
JK
5182011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 Code cleanup.
521 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
522 (command_line_is_silent): New function.
523 (bpstat_do_actions_1): No longer use commands_left, use
524 command_line_is_silent for commands.
525 (bpstat_alloc): Remove clearing of commands_left.
526 (bpstat_stop_status): Remove initialization of commands_left, use
527 command_line_is_silent.
528 * breakpoint.h (struct bpstats): Remove commands_left.
529
3a93a0c2
KS
5302011-08-18 Keith Seitz <keiths@redhat.com>
531
532 PR c++/12266
533 * cp-name-parser.y (struct demangle_info): Remove unused
534 member PREV.
535 (d_grab): Likewise.
536 (allocate_info): Change return type to struct demangle_info *.
537 Always allocate a new demangle_info.
538 Remove unused PREV pointer.
539 (cp_new_demangle_parse_info): New function.
540 (cp_demangled_name_parse_free): New function.
541 (do_demangled_name_parse_free_cleanup): New function.
542 (make_cleanup_cp_demangled_name_parse_free): New function.
543 (cp_demangled_name_to_comp): Change return type to
544 struct demangle_parse_info *.
545 Allocate a new storage for each call.
546 (main): Update usage for cp_demangled_name_to_comp
547 API change.
548 * cp-support.h (struct demangle_parse_info): New structure.
549 (cp_demangled_name_to_comp): Update API change for
550 return type.
551 (cp_new_demangle_parse_info): Declare.
552 (make_cleanup_cp_demangled_name_parse_free): New declaration.
553 (cp_demangled_name_parse_free): Declare.
554 * cp-support.c (cp_canonicalize_string): Update API
555 change for cp_demangled_name_to_comp.
556 (mangled_name_to_comp): Likewise.
557 Return struct demangle_parse_info, too.
558 (cp_class_name_from_physname): Update mangled_name_to_comp
559 API change.
560 (method_name_from_physname): Likewise.
561 (cp_func_name): Update API change for cp_demangled_name_to_comp.
562 (cp_remove_params): Likewise.
563 * python/py-type.c (typy_legacy_template_argument): Likewise.
564
565 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
566 (cp_merge_demangle_parse_infos): Declare.
567 * cp-support.c (ignore_typedefs): New file global.
568 (copy_string_to_obstack): New function.
569 (inspect_type): New function.
570 (replace_typedefs): New function.
571 (replace_typedefs_qualified_name): New function.
572 (cp_canonicalize_string_no_typedefs): New function.
573 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
574 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
575 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
576 instead of cp_canonicalize_string.
577 (find_method): Likewise.
578 (decode_compound): Before looking up the name, call
579 cp_canonicalize_string_no_typedefs.
580 (decode_variable): Likewise.
581
fa3a4f15
PM
5822011-08-17 Phil Muldoon <pmuldoon@redhat.com>
583 Tom Tromey <tromey@redhat.com>
584 Matt Rice <ratmice@gmail.com>
585
586 * python/lib/gdb/prompt.py: New file.
587 * python/lib/gdb/command/prompt.py: New file.
588 * NEWS: Document set extended-prompt and gdb.prompt library
589
85661b1e
YQ
5902011-08-16 Yao Qi <yao@codesourcery.com>
591
592 * tic6x-linux-tdep.c: Move const arrays definition from here...
593 * tic6x-tdep.c: to here ...
594
11315641
YQ
5952011-08-14 Yao Qi <yao@codesourcery.com>
596
597 * NEWS: New port to Texas Instruments TMS320C6x.
598
8cd64e00
YQ
5992011-08-14 Andrew Jenner <andrew@codesourcery.com>
600 Bernd Schmidt <bernds@codesourcery.com>
601 Yao Qi <yao@codesourcery.com>
602
603 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
604 * solib-dsbt.c: New file. Support DSBT shared object.
605 * tic6x-linux-tdep.c: New file.
606 * tic6x-tdep.c: New file.
607 * tic6x-tdep.h: New file.
608
78d85199
YQ
6092011-08-14 Andrew Stubbs <ams@codesourcery.com>
610 Yao Qi <yao@codesourcery.com>
611
612 * remote.c (PACKET_qXfer_fdpic): New enum value.
613 (remote_protocol_features): Add qXfer:fdpic:read packet.
614 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
615 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
616 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
617
224bbe49
YQ
6182011-08-14 Yao Qi <yao@codesourcery.com>
619
620 Target description for tic6x.
621 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
622 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
623 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
624 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
625 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
626 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
627 * features/tic6x-c64xp-linux.xml: New.
628 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
629 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
630 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
631 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
632 * regformats/tic6x-c64xp.dat,
633 regformats/tic6x-c62x-linux.dat: Generated.
634 * regformats/tic6x-c64x-linux.dat,
635 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
636 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
637 features/tic6x-*.c files.
638 Add regformats/tic6x-*.dat files.
639
457e09f0
DE
6402011-08-12 Doug Evans <dje@google.com>
641
642 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
643 * python/py-symbol.c (sympy_get_type): New function.
644 (symbol_object_getset): Add "type".
645
d20c1c3f
PA
6462011-08-12 Pedro Alves <pedro@codesourcery.com>
647
648 PR tui/13073
649
650 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
651 empty name.
652 (tui_show_register_group): Don't store a byte buffer in the data
653 element's value.
654 (tui_register_format): Skip registers with an empty name.
655 (tui_get_register): Store a struct value in the data element's
656 value field instead of a byte buffer holding the raw register
657 contents. Account for optimized-out and unavailable registers
658 when comparing register contents.
659
9d8fa392
PA
6602011-08-09 Pedro Alves <pedro@codesourcery.com>
661
662 * printcmd.c (current_display_number): Update comment.
663 (disable_current_display_cleanup): Delete.
664 (do_one_display): Use make_cleanup_restore_integer. Gracefully
665 catch errors thrown while evaluating and printing the display.
666
401a70b8
TT
6672011-08-09 Tom Tromey <tromey@redhat.com>
668
669 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
670
7f86f058
PA
6712011-08-09 Pedro Alves <pedro@codesourcery.com>
672
94b71cca 673 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
674 * maint.c (maintenance_command): Ditto.
675 * somread.c (som_symtab_read): Ditto.
676 * solib.c (solib_find, solib_map_sections, update_solib_list)
677 (solib_add, info_sharedlibrary_command, solib_name_from_address)
678 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 679 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
680 * solib-irix.c (locate_base, disable_break, enable_break)
681 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
682 (irix_current_sos, irix_open_symbol_file_object)
683 (irix_special_symbol_handling): Ditto.
684 * solib-sunos.c (locate_base, first_link_map_member)
685 (sunos_current_sos, disable_break, enable_break)
686 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
687 Ditto.
688 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
689 (open_symbol_file_object, svr4_current_sos, enable_break)
690 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
691 Ditto.
692 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
693 (frv_current_sos, enable_break, frv_special_symbol_handling)
694 (frv_solib_create_inferior_hook): Ditto.
695 * solist.h (struct target_so_ops): Extend the comments of the
696 special_symbol_handling, current_sos and open_symbol_file_object
697 methods.
698
5e239b84
PM
6992011-08-09 Phil Muldoon <pmuldoon@redhat.com>
700
701 * python/lib/gdb/__init__.py: Auto-load files in command and
702 function directories.
703 * python/python.c (finish_python_initialization): Use
704 os.path.join.
705 * python/lib/gdb/command/pretty_printers.py: Self register
706 command.
707 * NEWS: Document auto-loading.
708
b6cede78
JK
7092011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
712 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
713 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
714
29d0bb3d
TT
7152011-08-08 Tom Tromey <tromey@redhat.com>
716
717 * breakpoint.c (clean_up_filters): Remove.
718 (catch_syscall_split_args): Use VEC_cleanup.
719
2f7fb8e4
JK
7202011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
721
722 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
723 (main): Uncomment "Demangling error\n".
724
d6c10e95
PP
7252011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
726
727 * solib-target.c (segment_attributes): Make them static.
728 (section_attributes, library_children, library_attributes): Likewise.
729 (library_list_children, library_list_attributes): Likesise.
730 (library_list_elements): Likewise.
731
af6e93b2
PA
7322011-08-05 Pedro Alves <pedro@codesourcery.com>
733
734 * exceptions.c (throw_exception): Don't disable the current
735 display.
736 * printcmd.c (disable_current_display_cleanup): New function.
737 (do_one_display): Install a cleanup to disable the current display
738 if doing the display throws.
739
6a1b1664
EZ
7402011-08-05 Eli Zaretskii <eliz@gnu.org>
741
742 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
743 initialization of the tp_new member to the corresponding
744 gdbpy_initialize_* function.
745 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
746 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
747 * python/py-function.c (gdbpy_initialize_functions): Likewise.
748 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
749 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
750
31a0ae49
JK
7512011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
754 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
755 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
756 references to current_uiout.
757
e0dd0826
PA
7582011-08-04 Pedro Alves <pedro@codesourcery.com>
759
760 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
761 (start_event_loop): Use TRY_CATCH instead of catch_errors.
762 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
763 * top.c (gdb_readline_wrapper): Adjust.
764 * tui/tui-interp.c (tui_command_loop):
765 (_initialize_tui_interp): Don't install it.
766
79a45e25
PA
7672011-08-04 Pedro Alves <pedro@codesourcery.com>
768
769 * ui-out.h (uiout): Rename to ...
770 (current_uiout): ... this.
771 * ui-out.c (uiout): Rename to ...
772 (current_uiout): ... this.
773 * ada-lang.c (print_it_exception, print_one_exception)
774 (print_mention_exception): Adjust.
775 * breakpoint.c (watchpoint_check): Adjust.
776 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
777 (default_collect_info, watchpoints_info, print_one_catch_fork)
778 (print_one_catch_vfork, print_one_catch_syscall)
779 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
780 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
781 (print_it_watchpoint, print_mention_watchpoint)
782 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
783 (print_it_exception_catchpoint, print_one_exception_catchpoint)
784 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
785 (bkpt_print_mention, momentary_bkpt_print_it)
786 (tracepoint_print_mention, update_static_tracepoint)
787 (tracepoints_info, save_breakpoints): Adjust.
788 * cli-out.c (field_separator): Adjust.
789 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
790 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
791 * frame.c (get_current_frame): Adjust.
792 * infcmd.c (run_command_1, print_return_value): Adjust.
793 * inferior.c (inferior_command, info_inferiors_command): Adjust.
794 * infrun.c (print_end_stepping_range_reason): Adjust.
795 (print_signal_exited_reason, print_exited_reason): Adjust.
796 (print_signal_received_reason, print_no_history_reason): Adjust.
797 * interps.c (interp_set): Adjust.
798 * osdata.c (info_osdata_command): Adjust.
799 * progspace.c (maintenance_info_program_spaces_command): Adjust.
800 * remote-fileio.c (remote_fileio_request): Adjust.
801 * remote.c (show_remote_cmd): Adjust.
802 * solib.c (info_sharedlibrary_command): Adjust.
803 * source.c (print_source_lines_base): Adjust.
804 * stack.c (print_stack_frame): Adjust.
805 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
806 * symfile-mem.c (add_vsyscall_page): Adjust.
807 * symfile.c (load_progress, generic_load)
808 (print_transfer_performance): Adjust.
809 * thread.c (info_threads_command, restore_selected_frame)
810 (thread_command): Adjust.
811 * top.c (make_cleanup_restore_ui_file): Adjust.
812 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
813 (print_one_static_tracepoint_marker): Adjust.
814 * cli/cli-cmds.c (print_disassembly): Adjust.
815 * cli/cli-decode.c (print_doc_line): Adjust.
816 * cli/cli-interp.c (safe_execute_command): Adjust.
817 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
818 (handle_redirections): Adjust.
819 * cli/cli-script.c (show_user_1): Adjust.
820 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
821 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
822 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
823 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
824 (mi_cmd_env_dir): Adjust.
825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
826 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
828 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
829 (list_args_or_locals): Adjust.
830 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
831 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
832 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
833 (mi_cmd_var_list_children, mi_cmd_var_info_type)
834 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
835 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
836 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
837 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
838 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
839 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
840 (list_available_thread_groups, mi_cmd_list_thread_groups)
841 (mi_cmd_data_list_register_names)
842 (mi_cmd_data_list_changed_registers)
843 (mi_cmd_data_list_register_values, get_register)
844 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
845 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
846 (mi_cmd_list_target_features, mi_cmd_add_inferior)
847 (mi_execute_command, mi_load_progress): Adjust.
848 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
849 * python/py-auto-load.c (print_script, info_auto_load_scripts):
850 Adjust.
851 * python/py-breakpoint.c (bppy_get_commands): Adjust.
852 * tui/tui-interp.c (tui_command_loop): Adjust.
853 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
854
f9679975
PA
8552011-08-04 Pedro Alves <pedro@codesourcery.com>
856
857 * exceptions.c (struct catcher): Remove saved_uiout field.
858 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
859 no longer save/resvore the global ui_out builder.
860 (catch_exceptions_with_msg): Save/override/restore the global
861 ui_out builder manually instead of relying on TRY_CATCH to do it.
862 (catch_errors): Save/restore the global ui_out builder manually
863 instead of relying on TRY_CATCH to do it.
864 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
865 parameter.
866 (TRY_CATCH): Adjust.
867 * cli/cli-interp.c (safe_execute_command): Save/override/restore
868 the global ui_out builder manually instead of relying on TRY_CATCH
869 to do it.
870
934709f0
PW
8712011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
872
873 * breakpoint.c (update_global_location_list): Ensure
874 invariant 'first loc marked not duplicated and inserted,
875 following locs marked duplicated/not inserted' is respected
876 for multiple locations at the same address.
877 (unduplicated_should_be_inserted) New function.
878 (swap_insertion) New function.
879
2421fe6f
JK
8802011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
881
882 * stack.c (print_frame_arguments_choices): Comment typo fix.
883
3fbb6ffa
TJB
8842011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
885
886 Revert:
887 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
888 * breakpoint.c (insert_bp_location): Remove disabled_breaks
889 argument. Update callers.
890
fbe12357
PP
8912011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
892
893 PR gdb/13045
894 * doublest.c (convert_doublest_to_floatformat): Pass correct
895 mantissa length to put_field.
896
b1d288d3
JK
8972011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
900 exception_print code path.
901 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
902 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
903 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
904
311b5970
JK
9052011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 Code cleanup.
908 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
909 Remove, merge them into ...
910 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
911 variable args and its initialization.
912 (struct print_args_args, print_args_stub): Remove, merge them into
913 print_frame.
914 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
915 them into ...
916 (do_gdb_disassembly): ... here. Remove variable args and its
917 initialization.
918 (print_frame): Remove variable args and its initialization, new
919 variable gdbarch and numargs (from print_args_stub), inline here
920 print_args_stub with a TRY_CATCH.
921 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
922 them into ...
923 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 924 New variable e, remove variable btargs and its initialization.
311b5970 925
484a26a8
TG
9262011-08-01 Tristan Gingold <gingold@adacore.com>
927
928 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
929
c30eee59
TJB
9302011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
931
932 * breakpoint.c (insert_bp_location): Document return value.
933 (insert_breakpoint_locations): Fix documentation.
934 (remove_breakpoints): Add documentation.
935
f116073b
TJB
9362011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
937
938 * breakpoint.c (insert_bp_location): Remove disabled_breaks
939 argument. Update callers.
940
65aa373f
JK
9412011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 * stack.c (print_frame_info): Comment typo fix.
944
a50242fb
SA
9452011-07-29 Sterling Augustine <saugustine@google.com>
946
947 * MAINTAINERS (Write After Approval): Add myself to the list.
948
267f6504
TT
9492011-07-29 Tom Tromey <tromey@redhat.com>
950
951 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
952 (library_list_start_segment): Update.
953 (library_list_start_section): Update.
954
00bd41d6
PM
9552011-07-28 Phil Muldoon <pmuldoon@redhat.com>
956
957 * varobj.c (value_get_print_value): Move hint check later into the
958 function. Comment function. Free thevalue before reusing it.
959
18a46dbe
JK
9602011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
961 Pedro Alves <pedro@codesourcery.com>
962
963 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
964 value_one.
965 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
966 Assert the result kind.
967 * value.h (value_one): Remove parameter lv.
968
bb7da2bf
JK
9692011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
970
971 Fix crash on lval_computed values.
972 * valops.c (value_zero): Use not_lval for lval_computed.
973
2d5213f8
TT
9742011-07-27 Tom Tromey <tromey@redhat.com>
975
976 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
977 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
978
11081198
JK
9792011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
982 "ptype" by their typedefs difference.
983
3c6e0cb3
JK
9842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
985
986 * dwarf2expr.c (ctx_no_read_reg): New function.
987 * dwarf2expr.h (ctx_no_read_reg): New declaration.
988 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
989 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
990 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
991
523f3620
JK
9922011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
995 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
996 file.
997 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
998 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
999 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1000 (ctx_no_get_base_type): Move the functions here.
1001 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1002 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1003 (ctx_no_get_base_type): New declarations.
1004
24d3216f
TT
10052011-07-27 Tom Tromey <tromey@redhat.com>
1006
1007 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1008 entries.
1009 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1010 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1011
5005c8a9
PP
10122011-07-26 Sterling Augustine <saugustine@google.com>
1013
1014 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1015 ULONGEST.
1016 (dump_bfd_file): Likewise.
1017
480a3f21
PW
10182011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1019
1020 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1021 (remote_hw_watchpoint_length_limit): New variable.
1022 (_initialize_remote) add set,show cmds for this new variable.
1023 * gdb.texinfo: document these new commands.
1024 * NEWS: Mention these new commands.
1025
efa80663
PA
10262011-07-26 Pedro Alves <pedro@codesourcery.com>
1027
1028 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1029 true for software watchpoints.
1030
dbdaa232 10312011-07-26 Joel Brobecker <brobecker@adacore.com>
1032
1033 GDB 7.3 released.
1034
cf2c3c16
TT
10352011-07-26 Tom Tromey <tromey@redhat.com>
1036
1037 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1038 * dwarf2read.c (read_indirect_string_at_offset): New function.
1039 (read_indirect_string): Use it.
1040 (dwarf_decode_macro_bytes): New function, taken from
1041 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1042 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1043 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1044 New functions.
1045 (struct dwarf2_per_objfile) <macro>: New field.
1046 (dwarf2_elf_names): Add .debug_macro.
1047 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1048 (dwarf2_locate_sections): Handle new section.
1049 (read_file_scope): Handle DW_AT_GNU_macros.
1050 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1051
1a532630
PP
10522011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1053
1054 * NEWS: Mention dcache configuration.
1055 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1056 (dcache_size, dcache_line_size): New variables.
1057 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1058 (struct dcache_block): Make it expandable.
1059 (struct dcache_struct): New field.
1060 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1061 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1062 (dcache_poke_byte, dcache_print_line): Adjust.
1063 (set_dcache_size, set_dcache_line_size): New functions.
1064 (set_dcache_command, show_dcache_command): New functions.
1065 (_initialize_dcache): Add new commands.
1066
2eff07b3
PP
10672011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1068
1069 * progspace.h (struct program_space): Add solib_add_generation.
1070 * infcmd.c (post_create_inferior): Only call solib_add if not
1071 already done.
1072 * solib.c (solib_add): Increment solib_add_generation.
1073
543305c9
JK
10742011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 Fix implicit pointer offsets.
1077 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1078 ptr.OFFSET.
1079
c0a91b2b
TT
10802011-07-25 Tom Tromey <tromey@redhat.com>
1081
1082 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1083 const.
1084 (ada_exception_sal): Make 'ops' const.
1085 (ada_decode_exception_location): Likewise.
1086 (ada_decode_assert_location): Likewise.
1087 (catch_assert_command): Update.
1088 (catch_ada_exception_command): Update.
1089 (create_ada_exception_catchpoint): Make 'ops' const.
1090 * breakpoint.c (set_raw_breakpoint_without_location)
1091 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1092 const.
1093 (create_internal_breakpoint): Update.
1094 (init_raw_breakpoint_without_location): Make 'ops' const.
1095 (init_raw_breakpoint, init_catchpoint)
1096 (create_fork_vfork_event_catchpoint)
1097 (create_syscall_event_catchpoint, init_breakpoint_sal)
1098 (create_breakpoint_sal, create_breakpoints_sal)
1099 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1100 * breakpoint.h (struct breakpoint) <ops>: Now const.
1101 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1102 const.
1103
6cb9b55b
PP
11042011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1105
1106 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1107
d9b3f62e
PA
11082011-07-25 Pedro Alves <pedro@codesourcery.com>
1109
1110 * breakpoint.h (print_recreate_thread): Declare.
1111 (struct breakpoint): Move step_count, pass_count,
1112 number_on_target, static_trace_marker_id,
1113 static_trace_marker_id_idx ...
1114 (struct tracepoint): ... to this new struct.
1115 (get_tracepoint, get_tracepoint_by_number_on_target)
1116 (get_tracepoint_by_number): Change return type to struct
1117 tracepoint pointer.
1118 * breakpoint.c (is_tracepoint_type): New, factored out from
1119 is_tracepoint.
1120 (is_tracepoint): Adjust.
1121 (print_one_breakpoint_location): Cast to struct tracepoint as
1122 necessary, and adjust.
1123 (print_recreate_catch_fork, print_recreate_catch_vfork)
1124 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1125 print_recreate_thread.
1126 (init_breakpoint_sal): New, factored out from
1127 create_breakpoint_sal.
1128 (create_breakpoint_sal): Reimplement.
1129 (create_breakpoint): Allocate a struct tracecepoint if the caller
1130 wanted a tracepoint. Use init_breakpoint_sal and
1131 install_breakpoint.
1132 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1133 (print_recreate_masked_watchpoint)
1134 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1135 (tracepoint_print_one_detail): Adjust.
1136 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1137 Dump the pass count here.
1138 (update_static_tracepoint): Adjust.
1139 (addr_string_to_sals): Adjust.
1140 (create_tracepoint_from_upload): Adjust. Change return type to
1141 struct tracepoint pointer.
1142 (trace_pass_set_count): Change parameter type to struct tracepoint
1143 pointer, and adjust.
1144 (trace_pass_command): Adjust.
1145 (get_tracepoint, get_tracepoint_by_number_on_target)
1146 (get_tracepoint_by_number): Change return type to struct
1147 tracepoint pointer, and adjust.
1148 (print_recreate_thread): New, factored out from save_breakpoints.
1149 (save_breakpoints): Don't print thread and task and passcount
1150 recreation here.
1151 * remote.c (remote_download_tracepoint): Adjust.
1152 * tracepoint.c (trace_actions_command, validate_actionline)
1153 (start_tracing, tfind_1, trace_find_tracepoint_command)
1154 (trace_dump_command): Adjust.
1155 (find_matching_tracepoint): Change return type to struct
1156 tracepoint pointer, and adjust.
1157 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1158 (tfile_trace_find, tfile_fetch_registers): Adjust.
1159 * tracepoint.h (create_tracepoint_from_upload): Change return type
1160 to struct tracepoint pointer.
1161 * ada-lang.c (print_recreate_exception): Call
1162 print_recreate_thread.
1163 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1164
3a5c3e22
PA
11652011-07-25 Pedro Alves <pedro@codesourcery.com>
1166
1167 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1168 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1169 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1170 watchpoint_thread, watchpoint_triggered ...
1171 (struct watchpoint): ... to this new struct.
1172 (is_watchpoint): Declare.
1173 (install_breakpoint): Add new `internal' parameter.
1174 * breakpoint.c (is_watchpoint): Delete declaration.
1175 (set_breakpoint_condition): Handle watchpoints.
1176 (is_watchpoint): Make public.
1177 (watchpoint_in_thread_scope): Change parameter type to struct
1178 watchpoint.
1179 (watchpoint_del_at_next_stop): Change parameter type to struct
1180 watchpoint. Remove assertion. Adjust.
1181 (update_watchpoint): Ditto.
1182 (insert_breakpoints, breakpoint_init_inferior)
1183 (watchpoints_triggered, watchpoint_check)
1184 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1185 (bpstat_stop_status, print_one_breakpoint_location)
1186 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1187 to struct watchpoint as necessary, and adjust.
1188 (install_breakpoint): Add `internal' argument. If true, don't
1189 mention the new breakpoint. Use set_breakpoint_number.
1190 (create_fork_vfork_event_catchpoint)
1191 (create_syscall_event_catchpoint): Adjust.
1192 (dtor_watchpoint): New.
1193 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1194 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1195 (print_it_watchpoint, print_mention_watchpoint)
1196 (print_recreate_watchpoint, insert_masked_watchpoint)
1197 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1198 (print_one_detail_masked_watchpoint)
1199 (print_mention_masked_watchpoint)
1200 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1201 necessary, and adjust.
1202 (watch_command_1): Allocate and initialize a struct watchpoint
1203 instead of a struct breakpoint. Use install_breakpoint.
1204 (catch_exec_command_1): Adjust.
1205 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1206 fields.
1207 (delete_breakpoint, enable_breakpoint_disp)
1208 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1209 as necessary, and adjust.
1210 (initialize_breakpoint_ops): Install dtor_watchpoint as
1211 watchpoints' dtor method.
1212 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1213 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1214 to struct watchpoint as necessary, and adjust.
1215
2060206e
PA
12162011-07-25 Pedro Alves <pedro@codesourcery.com>
1217
1218 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1219 the the base class ops table.
1220 (catch_exception_breakpoint_ops)
1221 (catch_exception_unhandled_breakpoint_ops)
1222 (catch_assert_breakpoint_ops): Don't statically initialize.
1223 (initialize_ada_catchpoint_ops): New.
1224 (_initialize_ada_language): Call it.
1225 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1226 (bkpt_breakpoint_ops): Forward declare.
1227 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1228 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1229 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1230 (masked_watchpoint_breakpoint_ops)
1231 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1232 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1233 base class ops table.
1234 (null_re_set, null_check_status, null_works_in_software_mode)
1235 (null_resources_needed, null_print_one_detail): Delete.
1236 (bkpt_dtor): Rename to ...
1237 (base_breakpoint_dtor): ... this. Make static.
1238 (bkpt_allocate_location): Rename to ...
1239 (base_breakpoint_allocate_location): ... this. Make static.
1240 (base_breakpoint_re_set): New.
1241 (internal_error_pure_virtual_called): New.
1242 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1243 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1244 (base_breakpoint_works_in_software_mode)
1245 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1246 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1247 (base_breakpoint_print_recreate): New functions.
1248 (base_breakpoint_ops): New global.
1249 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1250 (bkpt_breakpoint_hit): Make static.
1251 (bkpt_check_status): Delete.
1252 (bkpt_resources_needed): Make static.
1253 (bkpt_works_in_software_mode): Delete.
1254 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1255 static.
1256 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1257 (momentary_breakpoint_ops): Don't statically initialize.
1258 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1259 Delete.
1260 (tracepoint_insert_location, tracepoint_remove_location)
1261 (tracepoint_check_status, tracepoint_works_in_software_mode)
1262 (tracepoint_print_it): Delete.
1263 (tracepoint_breakpoint_ops): Don't statically initialize.
1264 (initialize_breakpoint_ops): New.
1265 (_initialize_breakpoint): Call it.
1266 * breakpoint.h (null_re_set, null_works_in_software_mode)
1267 (null_resources_needed, null_check_status, null_print_one_detail):
1268 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1269 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1270 (bkpt_check_status, bkpt_resources_needed)
1271 (bkpt_works_in_software_mode, bkpt_print_it)
1272 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1273 Delete declarations.
1274 (initialize_breakpoint_ops): Declare.
1275
001c8c33
PA
12762011-07-25 Pedro Alves <pedro@codesourcery.com>
1277
1278 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1279 (momentary_bkpt_print_it): Simplify.
1280
06edf0c0
PA
12812011-07-25 Pedro Alves <pedro@codesourcery.com>
1282
1283 Split internal, momentary and user breakpoints breakpoint_ops
1284 tables.
1285
1286 * breakpoint.c (internal_breakpoint_ops)
1287 (momentary_breakpoint_ops): Forward declare.
1288 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1289 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1290 (create_overlay_event_breakpoint)
1291 (create_std_terminate_master_breakpoint)
1292 (create_exception_master_breakpoint): Create breakpoints with
1293 internal_breakpoint_ops vtable.
1294 (set_longjmp_breakpoint): Create momentary breakpoints with
1295 momentary_breakpoint_ops vtable, using
1296 momentary_breakpoint_from_master.
1297 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1298 (create_solib_event_breakpoint): Create breakpoints with
1299 internal_breakpoint_ops vtable.
1300 (set_momentary_breakpoint): Create breakpoints with
1301 momentary_breakpoint_ops vtable.
1302 (momentary_breakpoint_from_master): New, factored out from
1303 clone_momentary_breakpoint.
1304 (clone_momentary_breakpoint): Adjust.
1305 (watch_command_1): Create scope breakpoints with
1306 momentary_breakpoint_ops vtable.
1307 (bkpt_re_set): Remove handling of internal and momentary
1308 breakpoints.
1309 (bkpt_print_mention, bkpt_print_recreate): New.
1310 (bkpt_breakpoint_ops): Adjust.
1311 (internal_bkpt_re_set, internal_bkpt_check_status)
1312 (internal_bkpt_print_it, internal_bkpt_print_mention)
1313 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1314 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1315 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1316 (momentary_bkpt_print_recreate): New.
1317 (momentary_breakpoint_ops): New.
1318
348d480f
PA
13192011-07-25 Pedro Alves <pedro@codesourcery.com>
1320
1321 Implement most breakpoint_ops methods for all breakpoint types,
1322 and move the default handlings to the proper callbacks.
1323
1324 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1325 works_in_software_mode method.
1326 (insert_bp_location): Go through breakpoint_ops->insert_location
1327 for software and hardware watchpoints.
1328 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1329 breakpoint_ops.
1330 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1331 for software and hardware watchpoints.
1332 (print_it_typical): Delete.
1333 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1334 method.
1335 (watchpoint_check): Adjust comment.
1336 (bpstat_check_location): Simply always call the breakpoint's
1337 breakpoint_hit method.
1338 (bpstat_stop_status): Always call the breakpoint's check_status
1339 method. Remove special cases for watchpoints and internal event
1340 breakpoints from here (moved to the check_status implementations).
1341 (print_one_breakpoint_location): Assume b->ops is never NULL.
1342 Remove static tracepoint marker id printing from here (moved to
1343 the print_one_detail callback implementation of tracepoints).
1344 (init_bp_location): Assert OPS is never NULL.
1345 (allocate_bp_location): Always call the breakpoint's
1346 allocate_location method, and remove the default code from here.
1347 (free_bp_location): Always call the location's dtor method, and
1348 remove the default code from here.
1349 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1350 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1351 parameter. Pass it down.
1352 (set_raw_breakpoint): Ditto.
1353 (print_it_catch_fork): Adjust to take a bpstat as argument.
1354 (catch_fork_breakpoint_ops): Install methods.
1355 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1356 (catch_vfork_breakpoint_ops): Install methods.
1357 (dtor_catch_syscall): Call the base dtor.
1358 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1359 (catch_syscall_breakpoint_ops): Install methods.
1360 (dtor_catch_exec): Call the base dtor.
1361 (print_it_catch_exec): Adjust to take a bpstat as argument.
1362 (catch_exec_breakpoint_ops): Install methods.
1363 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1364 the breakpoint's resources_needed method, and remove the default
1365 code from here.
1366 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1367 breakpoint_ops.
1368 (clone_momentary_breakpoint): Clone the original's ops.
1369 (mention): Always call the breakpoint's print_mention method, and
1370 remove the default code from here.
1371 (create_breakpoint_sal): Adjust to pass the ops to
1372 set_raw_breakpoint rather than setting it manually.
1373 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1374 ops to set_raw_breakpoint_without_location rather than setting it
1375 manually.
1376 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1377 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1378 (ranged_breakpoint_ops): Install methods.
1379 (break_range_command): Adjust to pass the ops to
1380 set_raw_breakpoint rather than setting it manually.
1381 (re_set_watchpoint, breakpoint_hit_watchpoint)
1382 (check_status_watchpoint, resources_needed_watchpoint)
1383 (works_in_software_mode_watchpoint, print_it_watchpoint)
1384 (print_mention_watchpoint, print_recreate_watchpoint): New
1385 functions.
1386 (watchpoint_breakpoint_ops): Install new methods.
1387 (print_it_masked_watchpoint): New function.
1388 (masked_watchpoint_breakpoint_ops): Install new methods.
1389 (watch_command_1): Adjust to pass the right breakpoint_ops to
1390 set_raw_breakpoint_without_location rather than setting it
1391 manually later. Record the current pspace.
1392 (print_it_exception_catchpoint): Adjust to take a bpstat as
1393 argument.
1394 (gnu_v3_exception_catchpoint_ops): Install new methods.
1395 (say_where): New function.
1396 (null_re_set, null_check_status, null_works_in_software_mode)
1397 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1398 New functions.
1399 (bp_location_ops): New global.
1400 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1401 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1402 (bkpt_check_status, bkpt_resources_needed)
1403 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1404 (bkpt_print_recreate): New functions.
1405 (bkpt_breakpoint_ops): New global.
1406 (tracepoint_re_set, tracepoint_insert_location)
1407 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1408 (tracepoint_check_status, tracepoint_works_in_software_mode)
1409 (tracepoint_print_it, tracepoint_print_one_detail)
1410 (tracepoint_print_mention, tracepoint_print_recreate): New
1411 functions.
1412 (tracepoint_breakpoint_ops): New global.
1413 (delete_breakpoint): Always call the breakpoint's dtor method, and
1414 remove the default handling from here.
1415 (breakpoint_re_set_default): Make static.
1416 (breakpoint_re_set_one): Always call the breakpoints re_set
1417 method, and remove the default handling from here.
1418 (trace_command, ftrace_command, strace_command)
1419 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1420 to create_breakpoint.
1421 (save_breakpoints): Always call the breakpoint's print_recreate
1422 method, and remove the default handling from here.
1423
1424 * ada-lang.c (dtor_exception): Call the base dtor.
1425 (re_set_exception): Call the base method.
1426 (print_it_exception, print_it_catch_exception): Adjust to take a
1427 bpstat as argument.
1428 (catch_exception_breakpoint_ops): Install methods.
1429 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1430 argument.
1431 (catch_exception_unhandled_breakpoint_ops): Install methods.
1432 (print_it_catch_assert): Adjust to take a bpstat as argument.
1433 (catch_assert_breakpoint_ops): Install methods.
1434
1435 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1436 to take a bpstat as argument.
1437 (enum print_stop_action): Add describing comments to each enum
1438 value.
1439 (breakpoint_re_set_default): Delete declaration.
1440 (null_re_set, null_works_in_software_mode, null_resources_needed)
1441 (null_check_status, null_print_one_detail): Declare.
1442 (bkpt_breakpoint_ops): Declare.
1443 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1444 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1445 (bkpt_check_status, bkpt_resources_needed)
1446 (bkpt_works_in_software_mode, bkpt_print_it)
1447 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1448 Declare.
1449
1450 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1451 bkpt_breakpoint_ops.
1452 * python/py-breakpoint.c (bppy_init): Ditto.
1453
be8f8133
PW
14542011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1455
1456 * MAINTAINERS (Write After Approval): Add myself to the list.
1457
3807f613
PP
14582011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1459
1460 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1461
1ced966e
PA
14622011-07-22 Pedro Alves <pedro@codesourcery.com>
1463
1464 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1465 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1466 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1467 adjust.
1468 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1469 (struct i386_debug_reg_state): New.
1470 (i386_init_dregs): New.
1471 (dr_mirror): New.
1472 (i386_cleanup_dregs): Use i386_init_dregs.
1473 (i386_show_dr): Add state parameter and adjust.
1474 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1475 the inferior here.
1476 (i386_remove_aligned_watchpoint): Likewise.
1477 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1478 (i386_update_inferior_debug_regs): New.
1479 (i386_insert_watchpoint): Work on a local mirror of the debug
1480 registers, and only update the inferior on success.
1481 (i386_remove_watchpoint): Ditto.
1482 (i386_region_ok_for_watchpoint): Adjust.
1483 (i386_stopped_data_address): Adjust.
1484 (i386_insert_hw_breakpoint): Adjust.
1485 (i386_remove_hw_breakpoint): Adjust.
1486
3543a589
TT
14872011-07-22 Tom Tromey <tromey@redhat.com>
1488
1489 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1490 from amd64_pseudo_register_read. Change arguments. Call
1491 mark_value_bytes_unavailable when needed.
1492 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1493 set_gdbarch_pseudo_register_read.
1494 * sentinel-frame.c (sentinel_frame_prev_register): Use
1495 regcache_cooked_read_value.
1496 * regcache.h (regcache_cooked_read_value): Declare.
1497 * regcache.c (regcache_cooked_read_value): New function.
1498 (regcache_cooked_read): Call
1499 gdbarch_pseudo_register_read_value if available.
1500 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1501 (i386_pseudo_register_read): Remove.
1502 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1503 i386_pseudo_register_read. Change arguments. Call
1504 mark_value_bytes_unavailable when needed.
1505 (i386_pseudo_register_read_value): New function.
1506 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1507 not set_gdbarch_pseudo_register_read.
1508 * gdbarch.sh (pseudo_register_read_value): New method.
1509 * gdbarch.c, gdbarch.h: Rebuild.
1510 * findvar.c (value_from_register): Call get_frame_register_value.
1511
95298e72
PM
15122011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1513
1514 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1515 get_prefix.
1516 (display_gdb_prompt): Likewise.
1517 (change_annotation_level): Likewise.
1518 (push_prompt): Likewise.
1519 (pop_prompt): Likewise.
1520 (handle_stop_sig): Use get_prompt with a level.
1521 * top.c (command_loop): Use get_prompt with a level.
1522 (set_async_annotation_level): Use set_prompt with a level.
1523 (get_prefix): New function.
1524 (set_prefix): Ditto.
1525 (set_suffix): Ditto.
1526 (get_suffix): Ditto.
1527 (get_prompt): Accept a level argument.
1528 (set_prompt): Accept a level argument. Free old prompts. Set
1529 new_async_prompt if level is 0.
1530 (init_main): Use set_prompt with a level. Do not set
1531 new_async_prompt.
1532 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1533 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1534 Modify set_prompt, get_prompt to account for levels.
1535 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1536 level.
1537 * python/python.c (before_prompt_hook): Use set_prompt.
1538
d26e3629
KY
15392011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1540
1541 * defs.h: Add guard against inclusion in gdbserver.
1542 (struct ptid, ptid_t): Move to common/ptid.h.
1543 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1544 xsnprintf, internal_error): Move to common/common-utils.h.
1545 (nomem): Delete.
1546 * gdb_assert.h: Move into common/ sub-directory.
1547 * gdb_locale.h: Ditto.
1548 * gdb_dirent.h: Ditto.
1549 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1550 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1551 Move into common/ptid.h.
1552 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1553 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1554 Change nomem to malloc_failure.
1555 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1556 * utils.c (nomem): Rename to malloc_failure.
1557 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1558 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1559 (gdb_buildargv): Change nomem to malloc_failure.
1560 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1561 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1562 ptid_is_pid): Move into common/ptid.c.
1563 (initialize_infrun): Delete initialization of null_ptid and
1564 minus_one_ptid.
1565 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1566 linux_common_xfer_osdata.
1567 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1568 common/ptid.c and common/buffer.c.
1569 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1570 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1571 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1572 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1573 rules.
1574 * common/gdb_assert.h: New.
1575 * common/gdb_dirent.h: New.
1576 * common/gdb_locale.h: New.
1577 * common/buffer.c: New.
1578 * common/buffer.h: New.
1579 * common/ptid.c: New.
1580 * common/ptid.h: New.
1581 * common/xml-utils.c: New.
1582 * common/xml-utils.h: New.
1583 * common/common-utils.c: New.
1584 * common/common-utils.h: New.
1585 * common/linux-osdata.c: New.
1586 * common/linux-osdata.h: New.
1587 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1588 * config/arm/linux.mh (NATDEPFILES): Ditto.
1589 * config/i386/linux.mh (NATDEPFILES): Ditto.
1590 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1591 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1592 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1593 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1594 * config/mips/linux.mh (NATDEPFILES): Ditto.
1595 * config/pa/linux.mh (NATDEPFILES): Ditto.
1596 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1597 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1598 * config/s390/s390.mh (NATDEPFILES): Ditto.
1599 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1600 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1601 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1602
edc84990 16032011-07-21 Matt Rice <ratmice@gmail.com>
1604
1605 * NEWS: Add info macros and info definitions commands.
1606
3a7bf607
PM
16072011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1608
1609 * NEWS: Document Python prompt substitution hook.
1610
9b158ba0 16112011-07-18 Matt Rice <ratmice@gmail.com>
1612
1613 PR macros/12999
1614 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1615 * macrotab.c (foreach_macro): Ditto.
1616 (foreach_macro_in_scope): Ditto.
1617 * macrocmd.c (print_macro_callback): New function.
1618 (info_macro_command): Move some code to print_macro_definition.
1619 (print_macro_definition): New function.
1620 (print_one_macro): Add new arguments to callback.
1621 (info_definitions_command): New function.
1622 (info_macros_command): Ditto.
1623 (_initialize_macrocmd): Add info macros and info definitions commands.
1624 * symtab.c (add_macro_name): Add new arguments to callback.
1625
d17b6f81
PM
16262011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1627 Tom Tromey <tromey@redhat.com>
1628
1629 * top.c (set_prompt): Rewrite to free previous prompt, free
1630 asynch_new_prompt and set both on new prompts.
1631 * event-top.c (display_gdb_prompt): Add prompt substitution
1632 logic.
1633 * python/python.c (before_prompt_hook): New function.
1634
1364323a 16352011-07-20 Matt Rice <ratmice@gmail.com>
1636
1637 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1638 arguments to store_unsigned_integer.
1639
8b70b953
TT
16402011-07-20 Tom Tromey <tromey@redhat.com>
1641
6c83ed52
TT
1642 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1643 in some declaration-only cases.
1644
16452011-07-18 Tom Tromey <tromey@redhat.com>
1646
8b70b953
TT
1647 PR symtab/12984:
1648 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1649 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1650 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1651 <debug_type_section>: New field.
1652 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1653 (load_cu): Use appropriate section.
1654 (create_signatured_type_table_from_index): Add 'section'
1655 argument.
1656 (dwarf2_read_index): Only allow a single .debug_types section.
1657 (dw2_get_file_names): Use appropriate section.
1658 (read_type_comp_unit_head): Add 'section' argument.
1659 (create_debug_types_hash_table): Loop over all .debug_types
1660 sections.
1661 (init_cu_die_reader): Use appropriate section.
1662 (process_psymtab_comp_unit, load_partial_comp_unit)
1663 (load_full_comp_unit, read_die_and_children, find_partial_die)
1664 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1665 (lookup_signatured_type_at_offset): Add 'section' argument.
1666 (read_signatured_type_at_offset): Add 'sect' argument.
1667 (read_signatured_type): Use appropriate section.
1668 (set_die_type, get_die_type_at_offset): Update.
1669 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1670 VEC.
1671 (write_psymtabs_to_index): Don't allow index with more than one
1672 .debug_types section.
1673
918dd910
JK
16742011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1675
1676 Fix crash if referenced CU is aged out.
1677 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1678 xfree of block.data.
1679 (indirect_pieced_value): New variable back_to, use to for xfree of
1680 baton.data.
1681 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1682 block.data.
1683 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1684 (load_cu): New function from ...
1685 (dw2_do_instantiate_symtab): ... the code here ...
1686 (process_full_comp_unit): ... and here.
1687 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1688 retval.data.
1689
0e37a63c
JK
16902011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1691
1692 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1693 type.
1694
7e324e48
GB
16952011-07-19 Gary Benson <gbenson@redhat.com>
1696
1697 * infrun.c (struct execution_control_state): New member
1698 stop_func_filled_in.
1699 (clear_stop_func, fill_in_stop_func): New functions.
1700 (handle_inferior_event): Call clear_stop_func rather than
1701 manipulating the execution control state directly.
1702 Call fill_in_stop_func lazily as required rather than
1703 directly calling find_pc_partial_function in all cases.
1704
d48323d8
TT
17052011-07-18 Tom Tromey <tromey@redhat.com>
1706
1707 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1708 checking for variable-sized array.
1709
40591b7d
JCD
17102011-07-18 Jean-Charles Delay <delay@adacore.com>
1711
1712 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1713 of supported languages.
1714 * varobj.c: Add top definitions and basic implementation of the
1715 following callbacks: ada_number_of_children, ada_name_of_variable,
1716 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1717 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1718 (languages): Register Ada-specific callbacks.
1719 (variable_language): Add the Ada case in the language setter switch.
1720
2e424e08
JK
17212011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1722
1723 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1724
9e8b7a03
JK
17252011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1726
1727 Code cleanup.
1728 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1729 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1730 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1731 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1732 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1733 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1734 (struct dwarf_expr_context_funcs): New, move here methods from ...
1735 (struct dwarf_expr_context): ... here. New fields funcs.
1736 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1737 (dwarf_expr_ctx_funcs): New.
1738 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1739 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1740 (needs_frame_ctx_funcs): New.
1741 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1742
2b1260ab
FM
17432011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1744
1745 * MAINTAINERS (Write After Approval): Add myself to the list.
1746
8bd90839
FM
17472011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1748
1749 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1750 that CIE pointer of an FDE really points to a CIE .
1751
953b98d1
HZ
17522011-07-15 Hui Zhu <teawater@gmail.com>
1753
1754 * remote.c (remote_get_trace_status): Add comments.
1755
c8f2448a
JK
17562011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 Code cleanup - constify struct lval_funcs.
1759 * dwarf2loc.c (pieced_value_funcs): Make it const.
1760 * infrun.c (siginfo_value_funcs): Likewise.
1761 * opencl-lang.c (opencl_value_funcs): Likewise.
1762 * valops.c (value_assign, value_ind): Make the funcs variable const.
1763 * value.c (struct value): Make location.computed.funcs target const.
1764 Rearrange the comments.
1765 (allocate_computed_value): Make the funcs parameter target const.
1766 (value_computed_funcs): Return the funcs target const.
1767 (value_free, value_copy, set_value_component_location): Make the funcs
1768 variable const.
1769 * value.h (allocate_computed_value): Make the funcs parameter target
1770 const.
1771 (value_computed_funcs): Return the funcs target const.
1772 * windows-tdep.c (tlb_value_funcs): Make it const.
1773
f652de6f
HZ
17742011-07-14 Hui Zhu <teawater@gmail.com>
1775
1776 * remote.c (remote_get_trace_status): Initialize p.
1777
67f41397
JK
17782011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1779
1780 Work around kgdb.
1781 * remote.c (remote_get_trace_status): New variable ex. Put
1782 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1783
d1b66e6d
TT
17842011-07-13 Tom Tromey <tromey@redhat.com>
1785
1786 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1787 value_from_contents for final conversion.
1788
1632a688
JK
17892011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 Code cleanup.
1792 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1793 Indent prototypes so they do not get into tags.
1794
a7035dbb
JK
17952011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1796
1797 Code cleanup making also optimized out values lazy.
1798 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1799 allocate_optimized_out_value. Twice.
1800 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1801 * findvar.c (read_var_value): Likewise.
1802 * value.c (allocate_optimized_out_value): New function.
1803 * value.h (allocate_optimized_out_value): New declaration.
1804
d07ed419
JK
18052011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1806
1807 Fix occasional crash of CTRL-C during DWARF read in.
1808 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1809
86d31898
TT
18102011-07-11 Tom Tromey <tromey@redhat.com>
1811
1812 * regcache.c (struct regcache_descr): Fix typo.
1813 * i387-tdep.c (i387_supply_xsave): Fix typo.
1814
2ab95328
TT
18152011-07-11 Tom Tromey <tromey@redhat.com>
1816
1817 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1818 (read_file_scope, read_type_unit_scope): Use it.
1819
04ad99e6
JK
18202011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1823 `int'.
1824
713389e0
PM
18252011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1826
1827 PR python/12438
1828 * python/python.c: Set gdbpy_should_print_stack default to off.
1829 (set_python): Deprecate maint set python print-stack to
1830 class_deprecate.
1831 (_initialize_python): Deprecate maint set/show python print-stack.
1832 Add new prefix command, python. Add new setting, print-backtrace.
1833 * NEWS: Document set python print-stack. Document default change.
1834
754eadd1
PM
18352011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1836
1837 * python/py-inferior.c (infpy_dealloc): New function.
1838 (inferior_to_inferior_object): Return a new object, or a
1839 new reference to the existing object.
1840 (find_thread_object): Cleanup references to inferior.
1841 (delete_thread_object): Ditto.
1842 * python/py-infthread.c (create_thread_object): Do not increment
1843 inferior reference count.
1844
5e44ecb3
TT
18452011-07-08 Tom Tromey <tromey@redhat.com>
1846
1847 * dwarf2loc.c (locexpr_regname): New function.
1848 (locexpr_describe_location_piece): Use it.
1849 (disassemble_dwarf_expression): Add per_cu argument. Use
1850 locexpr_regname.
1851 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1852 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1853 New cases.
1854 (locexpr_describe_location_1): Add per_cu argument.
1855 (locexpr_describe_location): Update.
1856 (loclist_describe_location): Update.
1857
e0e9434c
TT
18582011-07-08 Tom Tromey <tromey@redhat.com>
1859
1860 * dwarf2expr.c (execute_stack_op): Add QUIT.
1861
26afc0d7
HZ
18622011-07-07 Hui Zhu <teawater@gmail.com>
1863
1864 Revert:
1865 2011-07-06 Hui Zhu <teawater@gmail.com>
1866 * remote.c (remote_start_remote): Add TRY_CATCH for
1867 remote_get_trace_status.
1868 * tracepoint.c (disconnect_tracing): Ditto.
1869
a40a111f
AB
18702011-07-07 Andrew Burgess <aburgess@broadcom.com>
1871
1872 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1873 variables as signed, not unsigned.
1874
e2bd3b15
JB
18752011-07-06 Joel Brobecker <brobecker@adacore.com>
1876
1877 * jit.c (jit_inferior_init): Reformat forward declaration.
1878
e3d961fe 18792011-07-06 Matt Rice <ratmice@gmail.com>
1880
1881 * MAINTAINERS (Write After Approval): Add myself to the list.
1882
0f3428f0
HZ
18832011-07-06 Hui Zhu <teawater@gmail.com>
1884
1885 * remote.c (remote_start_remote): Add TRY_CATCH for
1886 remote_get_trace_status.
1887 * tracepoint.c (disconnect_tracing): Ditto.
1888
fc9f3a69
TT
18892011-07-05 Tom Tromey <tromey@redhat.com>
1890
1891 * symtab.c (operator_chars): Now static.
1892 * linespec.c (operator_chars): Don't declare.
1893
26e519b9
TJB
18942011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1895
1896 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1897
eb2a6f42
TT
18982011-07-05 Tom Tromey <tromey@redhat.com>
1899
1900 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1901 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1902 (TYPE_CPLUS_REALLY_JAVA): New macro.
1903 * dwarf2read.c (process_structure_scope): Set
1904 TYPE_CPLUS_REALLY_JAVA.
1905
21083d0f 19062011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
1907
1908 * ada-lang.c: Fix typos.
1909 * amd64-tdep.c: Likewise.
1910 * breakpoint.c: Likewise.
1911 * cli/cli-decode.c: Likewise.
1912 * findcmd.c: Likewise.
1913 * inline-frame.c: Likewise.
1914 * mi/mi-main.c: Likewise.
1915 * minsyms.c: Likewise.
1916 * monitor.c: Likewise.
1917 * monitor.h: Likewise.
1918 * prologue-value.c: Likewise.
1919 * reverse.c: Likewise.
1920 * s390-tdep.c: Likewise.
1921
3b2a0cf2
JB
19222011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1923
1924 * jit.c (jit_inferior_init): Forward declare.
1925 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1926
efae1d92
JB
19272011-07-04 Joel Brobecker <brobecker@adacore.com>
1928
1929 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1930
6040a59d
JB
19312011-07-04 Tristan Gingold <gingold@adacore.com>
1932
1933 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1934 (tcb_fieldno): Add activation_link field.
1935 (get_known_tasks_addr): Moved and rewritten.
1936 (get_tcb_types_info): Set activation_link field.
1937 (read_known_tasks_array): Add parameter. Rewritten.
1938 (read_known_tasks_list): New function.
1939 (read_known_tasks): New function.
1940 (ada_build_task_list): Call read_known_tasks instead of
1941 read_known_tasks_array.
1942 * ravenscar-thread.c: Add first_task_name constant.
1943 (has_ravenscar_runtime): Check for task list too.
1944
cb741e45
JB
19452011-07-04 Tristan Gingold <gingold@adacore.com>
1946
1947 * ada-tasks.c: Renames fieldno to actb_fieldno.
1948 (ada_get_task_number): Indentation.
1949 (get_tcb_types_info): Remove all parameters. Write directly
1950 the globals.
1951 (ptid_from_atcb_common): Adjust.
1952 (read_atcb): Adjust.
1953
7475b06c
TJB
19542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1955
1956 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1957
15230f37
TJB
19582011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1959
1960 * ui-out.c (ui_out_field_core_addr): Mention that the function
1961 description is in the header file.
1962 * ui-out.h (ui_out_field_core_addr): Document function.
1963
65743aba
TJB
19642011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1965
1966 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1967 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1968
c37a5aab
TJB
19692011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1970
1971 * symtab.c (expand_line_sal): Remove empty line.
1972
59adf69e
TS
19732011-07-04 Thomas Schwinge <thomas@schwinge.name>
1974
1975 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1976 same way as ELFOSABI_NONE.
1977 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1978
e5dd4106
TJB
19792011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1980
1981 * breakpoint.c: Fix typos in comments.
1982 * linespec.c: Likewise.
1983 * symtab.c: Likewise.
1984
d40102a1
JB
19852011-07-04 Joel Brobecker <brobecker@adacore.com>
1986
1987 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1988 section in separate object files.
1989
2f741504
JK
19902011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1991
1992 Fix false GCC warning.
1993 * linespec.c (decode_line_1): Initialize values.
1994
418c7cf7
JK
19952011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 * linespec.c (find_method): Accept the function type automatically only
1998 if it was specified with parameter types.
1999
3d50dd94
JK
20002011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2001
2002 Stop on first linespec terminator instead of eating what we can.
2003 * linespec.c (is_linespec_boundary): New function.
2004 (name_end): Remove function.
2005 (keep_name_info): New parameter on_boundary, replace the body.
2006 (decode_line_1): Provide the parameter to keep_name_info.
2007 (decode_compound): Likewise. Drop the trailing java return type
2008 handling. Twice.
2009
dcf9f4ab
JK
20102011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2011
2012 Fall back linespec to minimal symbols.
2013 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2014 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2015 (find_method, symbol_found): Change error to cplusplus_error.
2016
3f542ed1
JK
20172011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
bc68c4e5 2019 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 2020
900e11f9
JK
20212011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 Tom Tromey <tromey@redhat.com>
2023
2024 * dwarf2read.c (check_physname): New variable.
2025 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2026 (show_check_physname): New function.
2027 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2028
2301925d
JB
20292011-07-01 Joel Brobecker <brobecker@adacore.com>
2030
2031 * machoread.c (macho_symfile_read): Delete OBE comment.
2032
38947cca
JB
20332011-07-01 Joel Brobecker <brobecker@adacore.com>
2034
2035 * machoread.c (struct macho_oso_data): Delete.
2036 (current_oso): Delete.
2037 (macho_relocate_common_syms): New function, mostly extracted
2038 out of
2039 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2040 Remove code that sets and unset current_oso.
2041 (macho_symfile_relocate): Delete handling of common symbols,
2042 now moved to macho_relocate_common_syms.
2043
a7aa0d73
JB
20442011-07-01 Joel Brobecker <brobecker@adacore.com>
2045
2046 * darwin-nat.c (darwin_ptrace): Add documentation.
2047 Set errno to zero before calling ptrace. If ptrace returns
2048 -1 and errno is zero, then change then return zero.
2049 (darwin_kill_inferior): Issue a warning instead of triggering
2050 a failed assertion when the PT_KILL ptrace operations returned
2051 nonzero.
2052
5e9bc145
JB
20532011-07-01 Joel Brobecker <brobecker@adacore.com>
2054
2055 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2056 only when inf->private->no_ptrace.
2057
00eb2c4a
JB
20582011-07-01 Joel Brobecker <brobecker@adacore.com>
2059
2060 * ada-lang.c (print_it_exception): Print temporary catchpoints
2061 as "Temporary catchpoint".
2062 (print_mention_exception): Likewise.
2063
127c81bc
TT
20642011-07-01 Tom Tromey <tromey@redhat.com>
2065
2066 * jv-lang.c (java_language_defn): Use java_printchar,
2067 java_printstr.
2068 (java_get_encoding): New function.
2069 (java_emit_char): Use generic_emit_char.
2070 (java_printchar): New function.
2071 (java_printstr): Likewise.
2072
25552254
JB
20732011-07-01 Joel Brobecker <brobecker@adacore.com>
2074
2075 * ada-typeprint.c (print_record_type): If unable to decode
2076 the name of the parent type, use the encoded name.
2077
d2d43431
JB
20782011-07-01 Jean-Charles Delay <delay@adacore.com>
2079
2080 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2081 pointer to constrained packed array type output.
2082 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2083 packed array output.
2084
54ae186f
JB
20852011-07-01 Jean-Charles Delay <delay@adacore.com>
2086
2087 * ada-typeprint.c (print_array_type): removed if condition on show
2088 being negative for bounds printing.
2089
8f17729f
JB
20902011-07-01 Joel Brobecker <brobecker@adacore.com>
2091
2092 * ada-lang.c (ada_identical_enum_types_p): New function.
2093 (symbols_are_identical_enums): New function.
2094 (remove_extra_symbols): Do nothing if NSYMS < 2.
2095 Use symbols_are_identical_enums.
2096
f5aa6869
JB
20972011-07-01 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ada-valprint.c (ada_value_print): Handle typedefs.
2100
8f465ea7
JB
21012011-07-01 Joel Brobecker <brobecker@adacore.com>
2102
2103 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2104
828292f2
JB
21052011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2106
2107 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2108 (decode_constrained_packed_array): Likewise.
2109 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2110
18920c42
JB
21112011-07-01 Joel Brobecker <brobecker@adacore.com>
2112
2113 * ada-exp.y (convert_char_literal): Handle typedef types.
2114
c90092fe
JB
21152011-07-01 Joel Brobecker <brobecker@adacore.com>
2116
2117 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2118
f748fb40
TT
21192011-06-30 Tom Tromey <tromey@redhat.com>
2120
2121 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2122 * valops.c (find_overload_match): Call do_cleanups on early exit
2123 path.
2124 * solib.c (solib_find): Call do_cleanups on early exit path.
2125
3bb47e8b
TT
21262011-06-30 Tom Tromey <tromey@redhat.com>
2127
2128 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2129 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2130 return paths. Defer final do_cleanups until last return.
2131 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2132 early return.
2133
4727bad3
TT
21342011-06-30 Tom Tromey <tromey@redhat.com>
2135
2136 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2137
bb361dbf
AB
21382011-06-30 Andrew Burgess <aburgess@broadcom.com>
2139
2140 * MAINTAINERS (Write After Approval): Add myself to the list.
2141
e0d00bc7
JK
21422011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2143
2144 Disable epilogue unwinders on recent GCCs.
2145 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2146 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2147 * dwarf2read.c (process_full_comp_unit): Initialize
2148 EPILOGUE_UNWIND_VALID.
2149 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2150 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2151 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2152
4632c0d0
JK
21532011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2154
2155 Code cleanup - reformatting.
2156 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2157 (producer_is_gcc_ge_4): ... here, change the return value.
2158 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2159 interpretation.
2160
32019081
JK
21612011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2162
2163 Fix non-only rename list for Fortran modules import.
2164 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2165 cp_add_using_directive caller.
2166 (cp_add_using_directive): New parameter excludes, describe it. New
2167 variables ix and param. Compare if also excludes match. Allocate NEW
2168 with variable size, initialize EXCLUDES there.
2169 (cp_lookup_symbol_imports): New variable excludep, test
2170 current->EXCLUDES with it.
2171 * cp-support.h: Include vec.h.
2172 (struct using_direct): New field excludes, describe it.
2173 (DEF_VEC_P (const_char_ptr)): New.
2174 (cp_add_using_directive): New parameter excludes.
2175 * defs.h (const_char_ptr): New typedef.
2176 * dwarf2read.c (read_import_statement): New variables child_die,
2177 excludes and cleanups, read in excludes.
2178 (read_namespace): Adjust the cp_add_using_directive caller.
2179
70c622a3
JK
21802011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Code cleanup.
2183 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2184 negative comparisons.
2185
39c4d40a
TT
21862011-06-29 André Pönitz <andre.poenitz@nokia.com>
2187
2188 * mi/mi-main.c (mi_cmd_list_features): Emit
2189 breakpoint-notifications.
2190
3b2b8fea
TT
21912011-06-29 Tom Tromey <tromey@redhat.com>
2192
2193 PR fortran/10036:
2194 * valprint.h (generic_emit_char, generic_printstr): Declare.
2195 * valprint.c (wchar_printable, append_string_as_wide)
2196 (print_wchar): Move from c-lang.c.
2197 (generic_emit_char): New function; mostly taken from c_emit_char.
2198 (generic_printstr): New function; mostly taken from c_printstr.
2199 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2200 represented as arrays.
2201 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2202 type.
2203 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2204 identically to TYPE_CODE_INT.
2205 * f-lang.c (f_get_encoding): New function.
2206 (f_emit_char): Use generic_emit_char.
2207 (f_printchar): Replace comment.
2208 (f_printstr): Use generic_printstr.
2209 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2210 "character" types specially.
2211 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2212 for Fortran.
2213 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2214 Move to valprint.c
2215 (c_emit_char): Call generic_emit_char.
2216 (c_printstr): Call generic_printstr.
2217
168e6d44
GB
22182011-06-29 Gary Benson <gbenson@redhat.com>
2219
2220 * breakpoint.c (bpstat_what): Removed duplicated case.
2221
1c033f8c
TT
22222011-06-28 Tom Tromey <tromey@redhat.com>
2223
2224 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2225
5fe41fbf
TT
22262011-06-27 Tom Tromey <tromey@redhat.com>
2227
2228 * valops.c (find_overload_match): Call do_cleanups before early
2229 return.
2230 * top.c (execute_command): Call do_cleanups before early return.
2231 (command_loop): Likewise.
2232 * stack.c (backtrace_command): Make a null cleanup early. Don't
2233 conditionally call do_cleanups.
2234 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2235 TRY_CATCH.
2236 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2237 so cleanups are always run.
2238 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2239 * findcmd.c (parse_find_args): Call do_cleanups on early return
2240 path.
2241 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2242 Don't conditionally call do_cleanups.
2243 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2244 later.
2245
e26bd57d
EB
22462011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2247
2248 * MAINTAINERS (Write After Approval): Use default email address.
2249
6c3097fc
JB
22502011-06-27 Joel Brobecker <brobecker@adacore.com>
2251
2252 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2253
369c397b
JB
22542011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2255
2256 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2257 saved_regs_mask and copied_regs_mask fields.
2258 (sparc_record_save_insn): New prototype.
2259 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2260 (sparc_record_save_insn): New function.
2261 (sparc_analyze_prologue): Add head comment. Recognize store insns
2262 of call-saved registers. Use OFFSET consistently. Recognize flat
2263 frames and cache their settings.
2264 (sparc32_skip_prologue): Handle flat frames.
2265 (sparc_frame_cache): Add frame_offset to the base address.
2266 (sparc32_frame_cache): Adjust to new frame description.
2267 (sparc32_frame_prev_register): Likewise.
2268 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2269 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2270 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2271 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2272 frame by calling sparc_record_save_insn.
2273 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2274 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2275 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2276
b315ab21
TG
22772011-06-27 Tristan Gingold <gingold@adacore.com>
2278
2279 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2280 field by map_addr and map_len.
2281 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2282 (munmap_section_buffer): Likewise.
2283
ddd49eee
TT
22842011-06-24 Tom Tromey <tromey@redhat.com>
2285
2286 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2287 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2288 * python/python.c (gdbpy_parameter): Make 'arg' const.
2289 (execute_gdb_command): Likewise.
2290 (gdbpy_decode_line): Likewise. Copy it.
2291 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2292 (gdbpy_write): Make 'arg' const.
2293 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2294 const.
2295 (gdbpy_lookup_type): Likewise.
2296 * python/py-prettyprint.c (print_children): Make 'name' const.
2297 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2298 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2299 Py_ssize_t.
2300 * python/py-function.c (fnpy_init): Make 'name' const.
2301 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2302 (gdbpy_string_to_argv): Make 'input' const.
2303 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2304 it.
2305 * gdbtypes.h (lookup_typename): Update.
2306 * gdbtypes.c (lookup_typename): Make 'name' const.
2307 (lookup_struct): Likewise.
2308 (lookup_union): Likewise.
2309 (lookup_enum): Likewise.
2310
5998129b
TT
23112011-06-24 Tom Tromey <tromey@redhat.com>
2312
2313 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2314 gdb_thread_db.h. Move all common/ entries to be together.
2315 (TAGS): Don't depend on DEPFILES.
2316
6e586cc5
YQ
23172011-06-23 Yao Qi <yao@codesourcery.com>
2318
2319 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2320 * remote.c (remote_start_remote): ... here.
2321 * monitor.c (monitor_open): ... here.
2322
86c3c1fc
AB
23232011-06-23 Andrew Burgess <aburgess@broadcom.com>
2324
2325 * gdbtypes.c (append_composite_type_field_aligned): Fix
2326 calculation of bit position based on alignment.
2327
28010a5d
PA
23282011-06-22 Pedro Alves <pedro@codesourcery.com>
2329
2330 * breakpoint.c (bpstat_stop_status): Call the check_status
2331 breakpoint_ops method.
2332 (print_one_breakpoint_location): Also print the condition for Ada
2333 exception catchpoints.
2334 (allocate_bp_location): New, factored out from
2335 allocate_bp_location.
2336 (allocate_bp_location): Adjust. Call the owner breakpoint's
2337 allocate_location method, if there is one.
2338 (free_bp_location): Call the locations's dtor method, if there is
2339 one.
2340 (init_raw_breakpoint_without_location): New breakpoint_ops
2341 parameter. Use it.
2342 (set_raw_breakpoint_without_location): Adjust.
2343 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2344 (set_raw_breakpoint): Adjust.
2345 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2346 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2347 re_set and check_status methods.
2348 (init_catchpoint): Don't memset, initialize thread, addr_string
2349 and enable_state. Pass the ops down to init_raw_breakpoint.
2350 (install_catchpoint): Rename to ...
2351 (install_breakpoint): ... this, and make extern.
2352 (create_fork_vfork_event_catchpoint): Adjust.
2353 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2354 re_set and check_status methods.
2355 (create_syscall_event_catchpoint): Adjust.
2356 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2357 (masked_watchpoint_breakpoint_ops): Install NULL
2358 allocate_location, re_set and check_status methods.
2359 (catch_exec_command_1): Adjust.
2360 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2361 re_set and check_status methods.
2362 (create_ada_exception_breakpoint): Rename to ...
2363 (init_ada_exception_breakpoint): ... this. Add a struct
2364 breakpoint parameter, and delete the exp_string, cond_string and
2365 cond parameters. Use init_raw_breakpoint, and don't install or
2366 mention the breakpoint yet. Don't clear breakpoint fields that
2367 init_raw_breakpoint already clears.
2368 (re_set_breakpoint): Delete, split into ...
2369 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2370 functions.
2371 (breakpoint_re_set_one): Call the breakpoint's
2372 breakpoint_ops->re_set implementation, if there's one. Adjust.
2373 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2374 (struct bp_location_ops): New type.
2375 (struct bp_location): New field `ops'.
2376 (struct breakpoint_ops): New `allocate_location', `re_set' and
2377 `check_status' fields. Make `breakpoint_hit''s description match
2378 reality.
2379 (init_bp_location): Declare.
2380 (breakpoint_re_set_default): Declare.
2381 (create_ada_exception_breakpoint): Rename to ...
2382 (init_ada_exception_breakpoint): ... this. Add a struct
2383 breakpoint parameter, and delete the exp_string, cond_string and
2384 cond parameters.
2385 (install_breakpoint): Declare.
2386 * ada-lang.c: Include exceptions.h.
2387 <Ada exceptions description>: Update.
2388 (struct ada_catchpoint_location): New type.
2389 (ada_catchpoint_location_dtor): New function.
2390 (ada_catchpoint_location_ops): New global.
2391 (ada_catchpoint): New type.
2392 (create_excep_cond_exprs): New function.
2393 (dtor_exception, allocate_location_exception, re_set_exception)
2394 (should_stop_exception, check_status_exception): New functions.
2395 (print_one_exception, print_mention_exception)
2396 (print_recreate_exception): Adjust.
2397 (dtor_catch_exception, allocate_location_catch_exception)
2398 (re_set_catch_exception, check_status_catch_exception): New
2399 functions.
2400 (catch_exception_breakpoint_ops): Install them.
2401 (dtor_catch_exception_unhandled)
2402 (allocate_location_catch_exception_unhandled)
2403 (re_set_catch_exception_unhandled)
2404 (check_status_catch_exception_unhandled): New functions.
2405 (catch_exception_unhandled_breakpoint_ops): Install them.
2406 (dtor_catch_assert, allocate_location_catch_assert)
2407 (re_set_catch_assert, check_status_catch_assert): New functions.
2408 (catch_assert_breakpoint_ops): Install them.
2409 (ada_exception_catchpoint_p): Delete.
2410 (catch_ada_exception_command_split)
2411 (ada_exception_catchpoint_cond_string): Rename exp_string
2412 parameter to excep_string. Adjust.
2413 (ada_parse_catchpoint_condition): Delete.
2414 (ada_exception_sal): Rename the exp_string parameter to
2415 excep_string. Delete the cond_string and cond parameters.
2416 Adjust.
2417 (ada_decode_exception_location): Rename the exp_string parameter
2418 to excep_string. Delete the cond_string and cond parameters.
2419 Adjust.
2420 (create_ada_exception_catchpoint): New function.
2421 (catch_ada_exception_command, ada_decode_assert_location)
2422 (catch_assert_command): Adjust.
2423 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2424
9ac4176b
PA
24252011-06-22 Pedro Alves <pedro@codesourcery.com>
2426
2427 * ada-lang.c: Include arch-utils.h.
2428 (ada_decode_exception_location): Make static.
2429 (catch_ada_exception_command): Moved here from breakpoint.c.
2430 (ada_decode_assert_location): Make static.
2431 (catch_assert_command): Moved here from breakpoint.c.
2432 (_initialize_ada_lang): Install the exception and assert
2433 catchpoint commands here.
2434 * ada-lang.h (ada_decode_exception_location)
2435 (ada_decode_assert_location): Delete declarations.
2436 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2437 breakpoint.h.
2438 (create_ada_exception_breakpoint): Make extern.
2439 (catch_ada_exception_command, catch_assert_command): Moved to
2440 ada-lang.c.
2441 (add_catch_command): Make extern.
2442 (_initilize_breakpoint): Don't install the exception and assert
2443 catchpoint commands here.
2444 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2445 breakpoint.c
2446 (add_catch_command, create_ada_exception_breakpoint): Declare.
2447
c56053d2
PA
24482011-06-22 Pedro Alves <pedro@codesourcery.com>
2449
2450 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2451 the breakpoint to the breakpoint chain here.
2452 (set_raw_breakpoint_without_location): Add the breakpoint to the
2453 breakpoint chain here.
2454 (init_raw_breakpoint): Adjust comments.
2455 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2456 here.
2457 (init_catchpoint): Don't set the catchpoint's breakpoint number
2458 here.
2459 (install_catchpoint): New function.
2460 (create_fork_vfork_event_catchpoint)
2461 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2462 use install_catchpoint.
2463
d2f3fc74
PA
24642011-06-22 Pedro Alves <pedro@codesourcery.com>
2465
2466 * breakpoint.c (create_catchpoint_without_mention)
2467 (create_catchpoint): Delete.
2468
b4d90040
PA
24692011-06-22 Pedro Alves <pedro@codesourcery.com>
2470
2471 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2472 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2473 reference to exec_pathname.
2474 (struct exec_catchpoint): New type.
2475 (dtor_catch_exec): New function.
2476 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2477 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2478 (catch_exec_command_1): Adjust to use init_catchpoint.
2479 (delete_breakpoint): Remove reference to exec_pathname.
2480
be5c67c1
PA
24812011-06-22 Pedro Alves <pedro@codesourcery.com>
2482
2483 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2484 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2485 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2486 reference to syscalls_to_be_caught.
2487 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2488 NULL `dtor'.
2489 (struct syscall_catchpoint): New type.
2490 (dtor_catch_syscall): New function.
2491 (insert_catch_syscall, remove_catch_syscall)
2492 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2493 (print_recreate_catch_syscall): Adjust.
2494 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2495 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2496 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2497 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2498 (masked_watchpoint_breakpoint_ops)
2499 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2500 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2501 there is one. Remove references to syscalls_to_be_caught.
2502 (catching_syscall_number): Adjust.
2503 * ada-lang.c (catch_exception_breakpoint_ops)
2504 (catch_exception_unhandled_breakpoint_ops)
2505 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2506
e29a4733
PA
25072011-06-22 Pedro Alves <pedro@codesourcery.com>
2508
2509 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2510 field.
2511 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2512 reference to forked_inferior_pid.
2513 (struct fork_catchpoint): New type.
2514 (breakpoint_hit_catch_fork, print_it_catch_fork)
2515 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2516 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2517 (create_fork_vfork_event_catchpoint): Adjust to use
2518 init_catchpoint.
2519
346774a9
PA
25202011-06-22 Pedro Alves <pedro@codesourcery.com>
2521
2522 * breakpoint.c (add_to_breakpoint_chain)
2523 (init_raw_breakpoint_without_location): New functions, factored
2524 out from ...
2525 (set_raw_breakpoint_without_location): ... this one.
2526 (init_raw_breakpoint): New function, factored out from
2527 set_raw_breakpoint and adjusted to use
2528 init_raw_breakpoint_without_location.
2529 (set_raw_breakpoint): Adjust.
2530 (init_catchpoint): New function, factored out from
2531 create_catchpoint_without_mention and adjusted to use
2532 init_raw_breakpoint.
2533 (create_catchpoint_without_mention): Adjust.
2534
c38c4bc5
TT
25352011-06-22 Tom Tromey <tromey@redhat.com>
2536
2537 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2538 argument of 0 specially.
2539
b138ce37
YQ
25402011-06-22 Yao Qi <yao@codesourcery.com>
2541
2542 * infrun.c (handle_inferior_event): Remove write-only local variable
2543 `sw_single_step_trap_p'.
2544
03de6823
TT
25452011-06-20 Tom Tromey <tromey@redhat.com>
2546
2547 * symtab.c (lookup_language_this): End loop if block is NULL.
2548
66a17cb6
TT
25492011-06-17 Tom Tromey <tromey@redhat.com>
2550
2551 * valops.c (value_of_this): Use lookup_language_this.
2552 * symtab.h (lookup_language_this): Declare.
2553 * symtab.c (lookup_language_this): New function.
2554 (lookup_symbol_aux): Use lookup_language_this.
2555 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2556
7518bff5
TT
25572011-06-17 Tom Tromey <tromey@redhat.com>
2558
2559 * value.h (value_of_this): Update.
2560 (value_of_local): Remove.
2561 * valops.c (value_of_this): Rename from value_of_local. Change
2562 parameters.
2563 * p-exp.y (exp): Update.
2564 (variable): Likewise.
2565 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2566
aee28ec6
TT
25672011-06-17 Tom Tromey <tromey@redhat.com>
2568
2569 * valops.c (value_of_local): Complain if NAME is NULL.
2570 * std-operator.def (OP_OBJC_SELF): Remove.
2571 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2572 * objc-exp.y (name_not_typename): Use OP_THIS.
2573 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2574 name for "this".
2575 <OP_OBJC_SELF>: Remove.
2576 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2577
eed8f803
TG
25782011-06-16 Tristan Gingold <gingold@adacore.com>
2579
2580 * python/py-events.h (gdb_py_events): Make it extern.
2581 * python/py-evtregistry.c (gdb_py_events): Declare.
2582
864ac8a7
HZ
25832011-06-16 Hui Zhu <teawater@gmail.com>
2584
2585 * remote.c (remote_trace_set_readonly_regions): Add check for
2586 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2587 output warning.
2588
ef7e8358
UW
25892011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2590
2591 * arm-linux-tdep.c: Include "auxv.h".
2592 (AT_HWCAP): Define.
2593 (ARM_LINUX_SIZEOF_VFP): Define.
2594 (arm_linux_supply_vfp): New function.
2595 (arm_linux_collect_vfp): Likewise.
2596 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2597 (arm_linux_fpa_regset_sections): New variable.
2598 (arm_linux_vfp_regset_sections): Likewise.
2599 (arm_linux_core_read_description): New function.
2600 (arm_linux_init_abi): Install arm_linux_core_read_description and
2601 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2602 appropriate for the architecture.
2603 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2604 (tdesc_arm_with_m): Declare.
2605 (tdesc_arm_with_iwmmxt): Likewise.
2606 (tdesc_arm_with_vfpv2): Likewise.
2607 (tdesc_arm_with_vfpv3): Likewise.
2608 (tdesc_arm_with_neon): Likewise.
2609 * arm-linux-nat.c: Move features/*.c includes ...
2610 * arm-tdep.c: ... here.
2611 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2612 target description data structures ...
2613 * arm-tdep.c (_initialize_arm_tdep): ... here.
2614 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2615 HWCAP_VFPv3D16): Move definitions ...
2616 * arm-linux-tdep.h: ... here.
2617
c2fa21f1
HZ
26182011-06-15 Hui Zhu <teawater@gmail.com>
2619
2620 * remote.c (remote_trace_set_readonly_regions): Add a check for
2621 target_buf_size.
2622
dd707e8e
TT
26232011-06-14 Tom Tromey <tromey@redhat.com>
2624
2625 * coffread.c (coffread_objfile): Rename from current_objfile.
2626 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2627 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2628
86cc0029
TT
26292011-06-14 Tom Tromey <tromey@redhat.com>
2630
2631 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2632 (class_symtab): Remove.
2633 (jv_dynamics_progspace_key): New global.
2634 (jv_per_objfile_free): Reset program space data. Update assert.
2635 Don't clear globals.
2636 (get_dynamics_objfile): Use and set program space data.
2637 (get_java_class_symtab): Use get_dynamics_objfile.
2638 (add_class_symbol): Likewise.
2639 (java_link_class_type): Likewise.
2640 (java_object_type, jv_clear_object_type, set_java_object_type):
2641 Remove.
2642 (get_java_object_type): Update. Don't cache result.
2643 (is_object_type): Don't call set_java_object_type.
2644 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2645 initialize jv_dynamics_progspace_key.
2646
91a81f69
TT
26472011-06-14 Tom Tromey <tromey@redhat.com>
2648
2649 * symtab.h (current_objfile): Don't declare.
2650 * objfiles.h (current_objfile): Don't declare.
2651 * objfiles.c (current_objfile): Remove.
2652 * mdebugread.c (current_objfile): New file-scope global.
2653 * dbxread.c (current_objfile): New file-scope global.
2654 * coffread.c (current_objfile): New file-scope global.
2655
dc7eb48e
PA
26562011-06-13 Pedro Alves <pedro@codesourcery.com>
2657
2658 * top.h (line): Rename to ...
2659 (saved_command_line): ... this.
2660 (linesize): Rename to ...
2661 (saved_command_line_size): ... this.
2662 * top.c (line): Rename to ...
2663 (saved_command_line): ... this.
2664 (linesize): Rename to ...
2665 (saved_command_line_size): ... this.
2666 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2667 * event-top.c (command_line_handler): Adjust.
2668 * main.c (captured_main): Adjust.
2669
0d6c2135
MK
26702011-06-12 Mark Kettenis <kettenis@gnu.org>
2671
2672 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2673 get_frame_func instead of get_frame_pc to determine the code
2674 address used to construct the frame ID.
2675 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2676 (i386_epilogue_frame_this_id): Likewise.
2677 (i386_epilogue_frame_prev_register): New function.
2678 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2679 (i386_stack_tramp_frame_sniffer): Fix coding style.
2680 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2681 (i386_gdbarch_init): Fix comments.
2682
8bbdd3f4
MK
26832011-06-12 Mark Kettenis <kettenis@gnu.org>
2684
2685 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2686 instruction when walking back through the instruction stream.
2687
533a737e
JK
26882011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2691 fullname parameters order.
2692
44b13c5a
JK
26932011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Code cleanup.
2696 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2697 for fun.
2698 * psymtab.c (map_symbol_filenames_psymtab)
2699 (map_partial_symbol_filenames): Likewise.
2700 * psymtab.h: Include symfile.h.
2701 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2702 * symfile.h (symbol_filename_ftype): New.
2703 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2704 map_symbol_filenames, clarify more the naming in comment.
2705
0b5574da
DE
27062011-06-07 Doug Evans <dje@google.com>
2707
2708 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 2709 Look for ../../gdb, for fullname.exp.
0b5574da 2710
5be4dfca
JK
27112011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 Pedro Alves <pedro@codesourcery.com>
2713
2714 * cli/cli-cmds.c (shell_escape): Use waitpid.
2715 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2716
316a8b21
TG
27172011-06-07 Tristan Gingold <gingold@adacore.com>
2718
2719 * xcoffread.c (dwarf2_xcoff_names): New variable.
2720 (aix_process_linenos): Add a guard.
2721 (xcoff_symfile_finish): Free dwarf2.
2722 (xcoff_initial_scan): Add dwarf2 support.
2723
3dd5b83d
PA
27242011-06-06 Pedro Alves <pedro@codesourcery.com>
2725
2726 * infcall.c (run_inferior_call): Don't mask async. Instead force
2727 a synchronous wait, if the target can async.
2728
2729 * target.h (struct target_ops): Delete to_async_mask.
2730 (target_async_mask): Delete.
2731 * target.c (update_current_target): Delete references to to_async_mask.
2732 * linux-nat.c (linux_nat_async_mask_value): Delete.
2733 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2734 to linux_nat_async_mask_value.
2735 (linux_nat_async_mask): Delete.
2736 (linux_nat_async, linux_nat_close): Remove references to
2737 linux_nat_async_mask_value.
2738 * record.c (record_async_mask_value): Delete.
2739 (record_async): Remove references to record_async_mask_value.
2740 (record_async_mask): Delete.
2741 (record_can_async_p, record_is_async_p): Remove references to
2742 record_async_mask_value.
2743 (init_record_ops, init_record_core_ops): Remove references to
2744 record_async_mask.
2745 * remote.c (remote_async_mask_value): Delete.
2746 (init_remote_ops): Remove reference to remote_async_mask.
2747 (remote_can_async_p, remote_is_async_p): Remove references to
2748 remote_async_mask_value.
2749 (remote_async): Remove references to remote_async_mask_value.
2750 (remote_async_mask): Delete.
2751
2752 * infrun.c (fetch_inferior_event): Don't claim registers changed
2753 if the current thread is already not executing.
2754
64b9b334
JB
27552011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2756
2757 From Stephen Kitt <steve@sk2.org>
2758 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2759 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2760
325663dc
JB
27612011-06-03 Joel Brobecker <brobecker@adacore.com>
2762
2763 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2764 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2765
8cf64490
TT
27662011-06-03 Tom Tromey <tromey@redhat.com>
2767
2768 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2769 code fields.
2770 * python/py-exitedevent.c (create_exited_event_object): Change
2771 type of 'exit_code'. Optionally add exit_code attribute.
2772 (emit_exited_event): Change type of 'exit_code'.
2773 * python/py-event.h (emit_exited_event): Update.
2774 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2775 * infrun.c (handle_inferior_event): Set exit code fields on
2776 inferior.
2777 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2778 fields.
2779 * inferior.c (exit_inferior_1): Initialize new fields.
2780
8ddd9a20
TT
27812011-06-03 Tom Tromey <tromey@redhat.com>
2782
2783 * dwarf2expr.c (get_signed_type): New function.
2784 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2785
8dfd1e6d
KS
27862011-06-02 Keith Seitz <keiths@redhat.com>
2787
2788 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2789
65fdb766
PA
27902011-06-02 Pedro Alves <pedro@codesourcery.com>
2791
2792 * top.h (simplified_command_loop): Delete declaration.
2793
f4b8c29b
MF
27942011-06-01 Mike Frysinger <vapier@gentoo.org>
2795
2796 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2797 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2798
1706c199
YQ
27992011-06-01 Yao Qi <yao@codesourcery.com>
2800
2801 * objfiles.h (obj_section_addr): Update reference to objfile from
2802 `abfd' to `obfd'.
2803 (obj_section_endaddr): Likewise.
2804
d19cd713 28052011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
2806
2807 * MAINTAINERS: Update my email address and affiliation. Also
2808 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2809
e8eb7bc5
KS
28102010-05-31 Keith Seitz <keiths@redhat.com>
2811
2812 PR c++/12750
2813 * linespec.c (get_search_block): New function.
2814 (find_methods): Add FILE_SYMTATB parameter and use it and
2815 get_search_block to pass an appropriate block to
2816 lookup_symbol_in_namespace.
2817 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2818 Check if *ARGPTR starts with a filename first.
2819 If it does, call locate_first_half again to locate the next
2820 "first half" of the linespec.
2821 Pass FILE_SYMTATB to decode_objc and decode_compound.
2822 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2823 (locate_first_half): Stop on the first colon seen.
2824 (decode_compound): Add FILE_SYMTAB parameter.
2825 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2826 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2827 get_search_block with lookup_symbol.
2828 (find_method): Add FILE_SYMTAB parameter and pass it to
2829 find_methods.
2830 (decode_objc): Use get_search_block.
2831
2b1dbab0
KS
28322010-05-31 Keith Seitz <keiths@redhat.com>
2833
2834 PR symtab/12704
2835 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2836 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2837 and CP_ANONYMOUS_NAMESPACE_LEN.
2838 (cp_is_anonymous): Likewise.
2839 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2840 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2841 * dwarf2read.c (namespace_name): Likewise.
2842 (fixup_partial_die): Likewise.
2843 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2844 seen in the input, keep it.
2845
6d549500
PA
28462011-05-30 Pedro Alves <pedro@codesourcery.com>
2847
2848 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2849 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2850 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2851 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2852 * remote.c (_initialize_remote): Register
2853 async_remote_interrupt_twice directly as
2854 sigint_remote_twice_token event.
2855
395bff70
PA
28562011-05-30 Pedro Alves <pedro@codesourcery.com>
2857
2858 * target.h (enum inferior_event_type): Delete INF_ERROR.
2859 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2860
97224164
PA
28612011-05-30 Pedro Alves <pedro@codesourcery.com>
2862
2863 * interps.c (interp_set): Don't cancel continuations.
2864
07e78767
JK
28652011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2868
fa4cd53f
PA
28692011-05-30 Pedro Alves <pedro@codesourcery.com>
2870
2871 * continuations.h (continuation_ftype): Add `err' parameter.
2872 Document parameters.
2873 (do_all_continuations, do_all_continuations_thread)
2874 (do_all_intermediate_continuations)
2875 (do_all_intermediate_continuations_thread)
2876 (do_all_inferior_continuations): Add `err' parameter.
2877 * continuations.c (do_my_continuations_1, do_my_continuations)
2878 (do_all_inferior_continuations, do_all_continuations_ptid)
2879 (do_all_continuations_thread_callback)
2880 (do_all_continuations_thread, do_all_continuations)
2881 (do_all_intermediate_continuations_thread_callback)
2882 (do_all_intermediate_continuations_thread)
2883 (do_all_intermediate_continuations): Add `err' parameter, and pass
2884 it down all the way to the continuations proper.
2885 * inf-loop.c (inferior_event_handler): If fetching an inferior
2886 event throws an error, don't pop the target, and still call the
2887 continuations, but with `err' set. Adjust all other continuation
2888 calls.
2889 * breakpoint.c (until_break_command_continuation): Add `err'
2890 parameter.
2891 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2892 issue another step if `err' is set.
2893 (struct until_next_continuation_args): New.
2894 (until_next_continuation): Add `err' parameter. Adjust.
2895 (until_next_command): Adjust.
2896 (struct finish_command_continuation_args): Add `thread' field.
2897 (finish_command_continuation): Add `err' parameter. Handle it.
2898 (finish_forward): Adjust.
2899 (attach_command_continuation): Add `err' parameter. Handle it.
2900 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2901 cancel the continuations.
2902 * interps.c (interp_set): Adjust to cancel the continuations.
2903 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2904 continuations rather than discarding.
2905 (free_thread): Don't clear thread inferior resources here.
2906 (delete_thread_1): Do it here instead. And do it before removing
2907 the thread from the threads list. Tag the thread as exited before
2908 clearing thread inferior resources.
2909
c2949be0
JB
29102011-05-30 Joel Brobecker <brobecker@adacore.com>
2911
2912 * infcall.c (call_function_by_hand): Rephrase error message.
2913
619cebe8
PA
29142011-05-27 Pedro Alves <pedro@codesourcery.com>
2915
2916 * defs.h (struct thread_info, struct inferior): Delete forward
2917 declarations.
2918 * breakpoint.h (struct thread_info): New forward declaration.
2919 * observer.sh (struct inferior): New forward declaration.
2920 * python/python-internal.h (struct inferior): New forward
2921 declaration.
2922
be34f849
PA
29232011-05-27 Pedro Alves <pedro@codesourcery.com>
2924
2925 * defs.h (struct continuation, continuation_ftype)
2926 (continuation_free_arg_ftype, add_continuation)
2927 (do_all_continuations, do_all_continuations_thread)
2928 (discard_all_continuations, discard_all_continuations_thread)
2929 (add_intermediate_continuation, do_all_intermediate_continuations)
2930 (do_all_intermediate_continuations_thread)
2931 (discard_all_intermediate_continuations)
2932 (discard_all_intermediate_continuations_thread)
2933 (add_inferior_continuation, do_all_inferior_continuations)
2934 (discard_all_inferior_continuations): Move to ...
2935 * continuations.h: ... this new file.
2936 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2937 infcmd.c, inferior.c, infrun.c, interps.c: Include
2938 continuations.h.
2939
432b4d03
JK
29402011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2941 Doug Evans <dje@google.com>
2942
2943 Fix PR 10970, PR 12702.
2944 * linux-nat.c (linux_lwp_is_zombie): New function.
2945 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2946 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2947
b0f260d6
PA
29482011-05-27 Pedro Alves <pedro@codesourcery.com>
2949
2950 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2951 typedefs.
2952 (add_continuation, add_intermediate_continuation)
2953 (add_inferior_continuation): Use them.
2954 * continuations.c (struct continuation): Use them.
2955 (make_continuation_ftype): Delete.
2956 (make_continuation, add_inferior_continuation, add_continuation)
2957 (add_intermediate_continuation): Use continuation_ftype and
2958 continuation_free_arg_ftype. Rename parameters to shorter names.
2959
af1e9a32
PA
29602011-05-27 Pedro Alves <pedro@codesourcery.com>
2961
2962 * continuations.c (make_continuation): Make it return void.
2963 (do_my_continuations): Rename to ...
2964 (do_my_continuations_1): ... this. Remove old_chain parameter and
2965 adjust.
2966 (do_my_continuations): New.
2967 (discard_my_continuations): Rename to ...
2968 (discard_my_continuations_1): ... this. Remove old_chain
2969 parameter and adjust.
2970 (discard_my_continuations): New.
2971 (add_inferior_continuation): Simplify.
2972 (do_all_inferior_continuations): Reimplement on top
2973 do_my_continuations.
2974 (discard_all_inferior_continuations): Simplify.
2975 (add_continuation): Simplify.
2976 (do_all_continuations_ptid): Simplify.
2977 (discard_all_continuations_thread_callback): Simplify.
2978 (add_intermediate_continuation): Simplify.
2979 (discard_all_intermediate_continuations_thread_callback):
2980 Simplify.
2981
50c0c017
PA
29822011-05-27 Pedro Alves <pedro@codesourcery.com>
2983
2984 * utils.c (struct continuation, add_continuation)
2985 (add_inferior_continuation)
2986 (do_all_inferior_continuations, discard_all_inferior_continuations)
2987 (restore_thread_cleanup, do_all_continuations_ptid)
2988 (do_all_continuations_thread_callback)
2989 (do_all_continuations_thread, do_all_continuations)
2990 (discard_all_continuations_thread_callback)
2991 (discard_all_continuations_thread, discard_all_continuations)
2992 (add_intermediate_continuation)
2993 (do_all_intermediate_continuations_thread_callback)
2994 (do_all_intermediate_continuations_thread)
2995 (do_all_intermediate_continuations)
2996 (discard_all_intermediate_continuations_thread_callback)
2997 (discard_all_intermediate_continuations_thread)
2998 (discard_all_intermediate_continuations): Move to ...
2999 * continuations.c: ... this new file, and adjust to no longer
3000 implement continuations on top of cleanups.
3001 * Makefile.in (SFILES): Add continuations.c.
3002 (COMMON_OBS): Add continuations.o.
3003
d8b34453
PA
30042011-05-26 Pedro Alves <pedro@codesourcery.com>
3005
3006 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3007 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3008 Internal error on invalid values.
3009 * reverse.c: Don't handle EXEC_ERROR.
3010 * mi/mi-main.c: Don't handle EXEC_ERROR.
3011
32231432
PA
30122011-05-26 Pedro Alves <pedro@codesourcery.com>
3013
3014 * record.c: Include event-loop.h, inf-loop.h.
3015 (record_beneath_to_async): New global.
3016 (tmp_to_async): New global.
3017 (record_async_inferior_event_token): New global.
3018 (record_open_1): Don't error out if async is enabled.
3019 (record_open): Handle to_async. Create an async event source in
3020 the event loop.
3021 (record_close): Delete the async event source.
3022 (record_resumed): New global.
3023 (record_execution_dir): New global.
3024 (record_resume, record_core_resume): Set them. Register the
3025 target on the event loop.
3026 (record_wait): Rename to ...
3027 (record_wait_1): ... this. Add more debug output. Handle
3028 TARGET_WNOHANG, and the target beneath returning
3029 TARGET_WAITKIND_IGNORE.
3030 (record_wait): Reimplement on top of record_wait_1.
3031 (record_async_mask_value): New global.
3032 (record_async, record_async_mask, record_can_async_p)
3033 (record_is_async_p, record_execution_direction): New functions.
3034 (init_record_ops, init_record_core_ops): Install new methods.
3035 * infrun.c (fetch_inferior_event): Temporarily switch the global
3036 execution direction to the direction the target was going.
3037 (execution_direction): Change type to int.
3038 * target.c (default_execution_direction): New function.
3039 (update_current_target): Inherit and de_fault
3040 to_execution_direction.
3041 * target.h (struct target_ops) <to_execution_direction>: New
3042 field.
3043 (target_execution_direction): New macro.
3044 * inferior.h (execution_direction): Change type to int.
3045
949dc678
PA
30462011-05-26 Pedro Alves <pedro@codesourcery.com>
3047
3048 * infcall.c (call_function_by_hand): Don't allow calling functions
3049 in reverse execution mode.
3050
c13bd2b5
PA
30512011-05-26 Pedro Alves <pedro@codesourcery.com>
3052
3053 * infcmd.c (finish_command): Allow async finish in reverse.
3054
6938fd34
YQ
30552011-05-26 Yao Qi <yao@codesourcery.com>
3056
3057 * gdb_thread_db.h: Delete. Move to ...
3058 * common/gdb_thread_db.h: ... here.
3059
9da8c2a0
PA
30602011-05-26 Pedro Alves <pedro@codesourcery.com>
3061
3062 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3063 function's entry point instead of a manually managed momentary
3064 breakpoint, and only ever issue one proceed call.
3065 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3066 doing a reverse-finish, switch to stepi mode, to do another step.
3067 (insert_step_resume_breakpoint_at_sal): Make public.
3068 (normal_stop): No need to save function value return registers if
3069 going reverse.
3070 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3071
2c03e5be
PA
30722011-05-26 Pedro Alves <pedro@codesourcery.com>
3073
3074 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3075 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3076 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3077 at the end.
3078 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3079 step-resume breakpoints.
3080 (print_it_typical): Handle bp_hp_step_resume.
3081 (bpstat_what): Ditto.
3082 (bptype_string): Ditto.
3083 (print_one_breakpoint_location): Ditto.
3084 (allocate_bp_location): Ditto.
3085 (mention): Ditto.
3086 (breakpoint_re_set_one): Ditto.
3087 * infrun.c (handle_inferior_event): Adjust. Split
3088 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3089 BPSTAT_WHAT_HP_STEP_RESUME.
3090 (insert_step_resume_breakpoint_at_sal): Rename to ...
3091 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3092 parameter. Handle it.
3093 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3094 insert_step_resume_breakpoint_at_sal_1.
3095 (insert_step_resume_breakpoint_at_frame): Rename to ...
3096 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3097 set a high-priority step-resume breakpoint.
3098 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3099 (insert_step_resume_breakpoint_at_caller): Ditto.
3100
51be5b68
PA
31012011-05-26 Pedro Alves <pedro@codesourcery.com>
3102
3103 * breakpoint.c (iterate_over_related_breakpoints): New.
3104 (do_map_delete_breakpoint): New.
3105 (delete_command): Pass do_map_delete_breakpoint to
3106 map_breakpoint_numbers.
3107 (do_disable_breakpoint): New.
3108 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3109 breakpoints.
3110 (do_enable_breakpoint): Rename to ...
3111 (enable_breakpoint_disp): ... this.
3112 (enable_breakpoint): Adjust.
3113 (do_enable_breakpoint): New.
3114 (enable_once_breakpoint): Delete.
3115 (do_map_enable_breakpoint): New.
3116 (do_map_enable_once_breakpoint): New.
3117 (enable_once_command, enable_delete_command)
3118 (delete_trace_command): Iterate over the breakpoint's related
3119 breakpoints.
3120
4a1be8d2
PA
31212011-05-26 Pedro Alves <pedro@codesourcery.com>
3122
3123 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3124 for ALPHA_ZERO_REGNUM.
3125 (alpha_supply_int_regs): Explicitly supply zero as the value for
3126 ALPHA_ZERO_REGNUM in the register cache.
3127 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3128
59d70315
YQ
31292011-05-26 Yao Qi <yao@codesourcery.com>
3130
3131 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3132
251d32d9
TG
31332011-05-26 Tristan Gingold <gingold@adacore.com>
3134
3135 * symfile.h (struct dwarf2_section_names): New type.
3136 (struct dwarf2_debug_sections): New type.
3137 (dwarf2_has_info): Add parameter.
3138 * dwarf2read.c (dwarf2_elf_names): New variable.
3139 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3140 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3141 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3142 (dwarf2_has_info): Add names parameter. Pass names
3143 to dwarf2_locate_sections.
3144 (section_is_p): Rewrite using the names parameter.
3145 (dwarf2_locate_sections): Use section names from the names parameter.
3146 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3147 * elfread.c (read_psyms): Ditto.
3148 * machoread.c (macho_symfile_read): Ditto.
3149
652c71b4
AS
31502011-05-25 Andreas Schwab <schwab@redhat.com>
3151
3152 PR gdb/8677
3153 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3154
f17170e5
KS
31552011-05-24 Keith Seitz <keiths@redhat.com>
3156
3157 PR breakpoint/12803
3158 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3159 (decode_compound): Unconditionally call keep_name_info.
3160
cdac0397
PA
31612011-05-24 Pedro Alves <pedro@codesourcery.com>
3162
3163 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3164 scope, clear its command list.
3165 (map_breakpoint_numbers): Don't walk the related breakpoints list
3166 of each breakpoint.
3167
91d4fe3f
TT
31682011-05-24 Tom Tromey <tromey@redhat.com>
3169
3170 * MAINTAINERS: Move Jim Blandy to past maintainers.
3171
3017a003
TG
31722011-05-24 Tristan Gingold <gingold@adacore.com>
3173
3174 * symfile.h (enum dwarf2_section_enum): New type.
3175 (dwarf2_get_section_info): New prototype.
3176 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3177 section_name by sect. Use a switch to select the info.
3178 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3179 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3180
c91c8c16
PA
31812011-05-24 Pedro Alves <pedro@codesourcery.com>
3182
3183 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3184 shared library event breakpoint if there's no execution.
3185
77bc418a
TJB
31862011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3187
3188 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3189 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3190
c50491a7
TT
31912011-05-23 Tom Tromey <tromey@redhat.com>
3192
3193 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3194 NULL.
3195
6d64e6d4
DE
31962011-05-23 Doug Evans <dje@google.com>
3197
3198 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3199 entry for RuntimeError to doc string.
3200
2067c8d4
JG
32012011-05-23 Jerome Guitton <guitton@adacore.com>
3202
3203 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3204 sequence for probing loops.
3205
b136cd05
PA
32062011-05-23 Pedro Alves <pedro@codesourcery.com>
3207
3208 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3209 comment.
3210
22e74ef9
MK
32112011-05-21 Mark Kettenis <kettenis@gnu.org>
3212
3213 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3214 zero as the value for %g0 in the register cache.
3215 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3216 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3217
842951eb
PA
32182011-05-20 Pedro Alves <pedro@codesourcery.com>
3219
3220 * infrun.c (proceed): Set previous_inferior_ptid here.
3221 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3222 inferior_ptid, not null_ptid.
3223 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3224 (fetch_inferior_event): Nor here.
3225
46cf51e6
PA
32262011-05-20 Pedro Alves <pedro@codesourcery.com>
3227
3228 * inf-loop.c (inferior_event_handler): Only output a message if
3229 verbose.
3230
29ef4c46
LM
32312011-05-20 Luis Machado <lgustavo@codesourcery.com>
3232
3233 * MAINTAINERS: Update my e-mail address.
3234
f148b27e
PA
32352011-05-20 Pedro Alves <pedro@codesourcery.com>
3236
3237 * infrun.c (proceed): Switch the inferior event loop to
3238 INF_EXEC_COMPLETE if the target refused to resume from a
3239 vfork/fork.
3240
09cee04b
PA
32412011-05-20 Pedro Alves <pedro@codesourcery.com>
3242
3243 * infcmd.c: Include "inf-loop.h".
3244 (step_once): When stepping into an inline subroutine, pretend the
3245 target has run. If the target can async, switch the inferior
3246 event loop to INF_EXEC_COMPLETE.
3247 * inferior.h (user_visible_resume_ptid): Declare.
3248 * infrun.c (user_visible_resume_ptid): New function, factored out
3249 from `resume'.
3250 (resume): Use it.
3251 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3252 that the current thread is running. Merge async and sync
3253 branches.
3254
751b8ce1
PA
32552011-05-20 Pedro Alves <pedro@codesourcery.com>
3256
3257 * infcmd.c (step_1): Simplify synchronous case.
3258
e93a69ed
PA
32592011-05-20 Pedro Alves <pedro@codesourcery.com>
3260
3261 * tracepoint.c: Include exceptions.h.
3262 (TFILE_PID): Move higher in file.
3263 (tfile_open): Delay pushing the tfile target until we're assured
3264 the tfile header is present in the file. Wrap reading the initial
3265 newline-terminated lines in TRY_CATCH. Pop the target if the
3266 initial setup failed. Add the tfile's thread immediately
3267 aftwards, before any non-essential setup. Don't skip
3268 post_create_inferior if there are no traceframes present in the
3269 file.
3270 (tfile_close): Remove redundant check for null before xfree call.
3271 (tfile_thread_alive): New function.
3272 (init_tfile_ops): Register it as to_thread_alive callback.
3273
6823e2b1
PA
32742011-05-20 Pedro Alves <pedro@codesourcery.com>
3275
3276 * tracepoint.c (tfile_open): Delete #if 0'd code.
3277
b3c8eb43
JK
32782011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3279
3280 Fix -readnow for -gdwarf-4 unused type units.
3281 * dwarf2read.c (struct signatured_type): Remove the field offset.
3282 (create_signatured_type_table_from_index): Remove its initialization.
3283 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3284 instead. Add a complaint call.
3285 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3286 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3287 (lookup_signatured_type_at_offset, read_signatured_type)
3288 (write_one_signatured_type): Update the field for per_cu.
3289
310afc76
TT
32902011-05-19 Tom Tromey <tromey@redhat.com>
3291
3292 * python/py-inferior.c (python_inferior_exit): Use
3293 target_gdbarch.
3294 (python_on_resume): Likewise.
3295
cf6c5ffb
TT
32962011-05-19 Matt Rice <ratmice@gmail.com>
3297
3298 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3299
fb80a3c5
HZ
33002011-05-19 Hui Zhu <teawater@gmail.com>
3301
3302 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3303
3672b1be
HZ
33042011-05-19 Hui Zhu <teawater@gmail.com>
3305
3306 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3307
ff355380
TT
33082011-05-18 Tom Tromey <tromey@redhat.com>
3309
3310 * dwarf2read.c (dwarf2_add_field): Constify.
3311 * value.c (value_static_field): Constify.
3312 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3313 Now const.
3314 * ax-gdb.c (gen_static_field): Constify
3315
ed731959
JK
33162011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3317
3318 * linux-nat.c (kill_callback): Use SIGKILL first.
3319
967cff16
JB
33202011-05-18 Joel Brobecker <brobecker@adacore.com>
3321
3322 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3323
1d06ead6
TT
33242011-05-18 Tom Tromey <tromey@redhat.com>
3325
3326 * value.c (value_fn_field): Constify.
3327 * symtab.c (gdb_mangle_name): Constify.
3328 * stabsread.c (update_method_name_from_physname): Make 'physname'
3329 argument const.
3330 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3331 const. Use explicit fputc_filtered loop.
3332 (pascal_type_print_base): Constify.
3333 * p-lang.h (pascal_type_print_method_args): Update.
3334 * linespec.c (add_matching_methods): Constify.
3335 (add_constructors): Likewise.
3336 * jv-typeprint.c (java_type_print_base): Constify.
3337 * gdbtypes.h (struct cplus_struct_type)
3338 <fn_fieldlist.fn_field.physname>: Now const.
3339 * dwarf2read.c (compute_delayed_physnames): Constify.
3340 (dwarf2_add_member_fn): Likewise.
3341 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3342
0d9a9a5f
PA
33432011-05-18 Pedro Alves <pedro@codesourcery.com>
3344
3345 * infrun.c (resume): Mention which is the current thread, and its
3346 current PC in debug output.
3347 (prepare_to_proceed): Mention the thread switching in debug
3348 output.
3349
05386e9e
TT
33502011-05-18 Tom Tromey <tromey@redhat.com>
3351
3352 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3353 path check. Use xmalloc and cleanups.
3354 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3355
ee86786c
TT
33562011-05-17 Tom Tromey <tromey@redhat.com>
3357
3358 * cp-valprint.c (cp_print_value_fields): Catch errors from
3359 value_static_field.
3360
9ff3b74f
TT
33612011-05-17 Tom Tromey <tromey@redhat.com>
3362
3363 * dwarf2read.c (dwarf2_get_die_type): Call
3364 get_die_type_at_offset.
3365 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3366 get_base_type function.
3367
cd3da28e
PA
33682011-05-17 Tomas Martinec <fyzmat@gmail.com>
3369
3370 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3371 trap_expected.
3372
fd20d931
DE
33732011-05-16 Doug Evans <dje@google.com>
3374
3375 * python/py-auto-load.c (source_section_scripts): Mention objfile
3376 name in warning.
3377
75fc9810
DE
33782011-05-15 Doug Evans <dje@google.com>
3379
290351b8
DE
3380 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3381 (try_thread_db_load_from_pdir): Call it. If unable to find
3382 libthread_db in directory of libpthread, see if we're looking at
3383 the separate-debug-info copy.
3384
75fc9810
DE
3385 * python/py-autoload.c (print_script): Print "Missing" instead of
3386 "No" for missing scripts.
3387 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3388
9f7bc587
DE
33892011-05-13 Doug Evans <dje@google.com>
3390
3391 * ui-file.c (stdio_file_write_async_safe): Add comment.
3392
093cee7d
HZ
33932011-05-14 Hui Zhu <teawater@gmail.com>
3394
3395 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3396
dbaefcf7
DE
33972011-05-13 Doug Evans <dje@google.com>
3398
98a5dd13
DE
3399 Support $pdir and $sdir in libthread-db-search-path.
3400 * NEWS: Mention $sdir,$pdir.
3401 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3402 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3403 (try_thread_db_load_from_sdir): New function.
3404 (try_thread_db_load_from_dir): New function.
3405 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3406 system directories if search of libthread-db-search-path fails,
3407 that is now done via $sdir.
3408 (has_libpthread): New function.
3409 (thread_db_load): Remove search for libthread_db in directory of
3410 libpthread, that is now done via $pdir.
3411
dbaefcf7
DE
3412 * NEWS: Mention "info auto-load-scripts".
3413 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3414 script_not_found_warning_printed.
3415 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3416 all callers updated. Initialize script_not_found_warning_printed.
3417 (get_auto_load_pspace_data_for_loading): New function.
3418 (maybe_add_script): New function.
3419 (source_section_scripts): Simplify. Only print one warning regardless
3420 of the number of auto-load scripts not found.
3421 (clear_section_scripts): Clear script_not_found_warning_printed.
3422 (auto_load_objfile_script): Record script in hash table.
3423 (count_matching_scripts): New function.
3424 (maybe_print_script): Renamed from maybe_print_section_script, all
3425 callers updated. Rewrite to use ui_out_*.
3426 (info_auto_load_scripts): Renamed from
3427 maintenance_print_section_scripts, all callers updated.
3428 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3429 renamed as "info auto-load-scripts".
3430
9930639c
TT
34312011-05-13 Tom Tromey <tromey@redhat.com>
3432
3433 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3434 (read_sleb128): Likewise.
3435
06826322
TT
34362011-05-13 Tom Tromey <tromey@redhat.com>
3437
3438 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3439 offset display.
3440
01124a23
DE
34412011-05-13 Doug Evans <dje@google.com>
3442
3443 * linux-nat.c (debug_linux_nat_async): Delete.
3444 Replace all references to use debug_linux_nat instead.
3445 (show_debug_linux_nat_async): Delete.
3446 (sigchld_handler): Call ui_file_write_async_safe instead of
3447 fprintf_unfiltered.
3448 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3449 * ui-file.c (struct ui_file): New member to_write_async_safe.
3450 (null_file_write_async_safe): New function.
3451 (ui_file_write_async_safe): New function.
3452 (set_ui_file_write_async_safe): New function.
3453 (ui_file_new): Initialize to_write_async_safe.
3454 (stdio_file_write_async_safe): New function.
3455 (struct stdio_file): New member fd.
3456 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
3457 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3458 fileno.
01124a23
DE
3459 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3460 (set_ui_file_write_async_safe): Declare.
3461 (ui_file_write_async_safe): Declare.
3462
72fc29ff
TT
34632011-05-13 Tom Tromey <tromey@redhat.com>
3464
3465 * utils.c (do_value_free): New function.
3466 (make_cleanup_value_free): Likewise.
3467 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3468 freeing correctly.
3469 (dwarf2_loc_desc_needs_frame): Call
3470 make_cleanup_value_free_to_mark.
3471 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3472 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3473 value_free_to_mark.
3474 (new_dwarf_expr_context): Don't call value_mark.
3475 * dwarf2-frame.c (execute_stack_op): Call
3476 make_cleanup_value_free_to_mark.
3477 * defs.h (make_cleanup_value_free): Declare.
3478
028d0ed5
TJB
34792011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3480
3481 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3482 prepare_execute_command.
3483 * top.c (prepare_execute_command): Return cleanup.
3484 (execute_command): Use cleanup from prepare_execute_command.
3485 * top.h (prepare_execute_command): Change prototype to return
3486 cleanup.
3487 * defs.h (struct value): Add opaque declaration.
3488 (make_cleanup_value_free_to_mark): Add prototype.
3489 * utils.c (do_value_free_to_mark): New function.
3490 (make_cleanup_value_free_to_mark): Likewise.
3491
b087e0ed
TT
34922011-05-12 Tom Tromey <tromey@redhat.com>
3493
3494 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3495 cast left-hand-side to unsigned.
3496
8a9b8146
TT
34972011-05-12 Tom Tromey <tromey@redhat.com>
3498
3499 PR gdb/12617:
3500 * value.h (value_from_contents): Declare.
3501 * value.c (value_from_contents): New function.
3502 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3503 (dwarf2_get_die_type): New function.
3504 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3505 (allocate_piece_closure): Acquire reference to values.
3506 (read_pieced_value): Update for value-based expressions.
3507 (write_pieced_value): Likewise.
3508 (free_pieced_value_closure): Call value_free as needed.
3509 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3510 Update for value-based expressions.
3511 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3512 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3513 <get_base_type>: New field.
3514 (struct dwarf_expr_piece) <v.value>: Change type.
3515 <v.regno>: New field.
3516 (struct dwarf_expr_context) <mark>: New field.
3517 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3518 (dwarf_expr_pop, dwarf_expr_push): Remove.
3519 (dwarf_expr_push_address): Declare.
3520 * dwarf2expr.c (dwarf_arch_cookie): New global.
3521 (struct dwarf_gdbarch_types): New.
3522 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3523 functions.
3524 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3525 static.
3526 (dwarf_expr_push_address): New function.
3527 (dwarf_expr_pop): Now static.
3528 (dwarf_expr_fetch): Change return type.
3529 (dwarf_require_integral): New function.
3530 (dwarf_expr_fetch): Simplify.
3531 (add_piece): Update.
3532 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3533 functions.
3534 (execute_stack_op) <sign_ext>: Remove.
3535 Use values for DWARF stack.
3536 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3537 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3538 New cases.
3539 (_initialize_dwarf2expr): New function.
3540 (add_piece): Update.
3541 (new_dwarf_expr_context): Set new field.
3542 (free_dwarf_expr_context): Call value_free_to_mark.
3543 * dwarf2-frame.c (no_base_type): New function.
3544 (execute_stack_op): Set get_base_type field. Update.
3545
e8d28ef4
TT
35462011-05-12 Tom Tromey <tromey@redhat.com>
3547
3548 * dwarf2read.c (read_common_block): Fix formatting.
3549
d248b706
KY
35502011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3551
3552 * breakpoint.c (disable_breakpoint): Disable all locations
3553 associated with a tracepoint on target if a trace experiment is
3554 running.
3555 (disable_command): Disable a specific tracepoint location on target if
3556 a trace experiment is running.
3557 (do_enable_breakpoint): Enable all locations associated with a
3558 tracepoint on target if a trace experiment is running.
3559 (enable_command) Enable a specific tracepoint location on target if a
3560 trace experiment is running.
3561 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3562 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3563 to_disable_tracepoint.
3564 * target.h: Add declaration of struct bp_location.
3565 (struct target_ops): Add new functions
3566 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3567 to_disable_tracepoint to target operations.
3568 (target_supports_enable_disable_tracepoint): New macro.
3569 (target_enable_tracepoint): New macro.
3570 (target_disable_tracepoint): New macro.
3571 * remote.c (struct remote_state): Add new field.
3572 (remote_enable_disable_tracepoint_feature): New.
3573 (remote_protocol_features): Add new entry.
3574 (remote_supports_enable_disable_tracepoint): New.
3575 (remote_enable_tracepoint): New.
3576 (remote_disable_tracepoint): New.
3577 (init_remote_ops): Add remote_enable_tracepoint,
3578 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3579 to remote operations.
3580 * tracepoint.c (start_tracing): Allow tracing to start without any
3581 tracepoints enabled with just a warning if they can be re-enabled
3582 later.
3583 * NEWS: Add news item for the new behaviour of the enable and disable
3584 GDB commands when applied to tracepoints.
3585 Add news items for the new remote packets QTEnable and QTDisable.
3586
cc88a640
JK
35872011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3588
3589 * config.in: Regenerate.
3590 * configure: Regenerate.
3591 * configure.ac <--with-system-readline> (for readline_echoing_p):
3592 Remove the test.
3593 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3594 (tui_old_rl_echoing_p): ... here.
3595 (tui_setup_io): Rename extern declaration readline_echoing_p to
3596 _rl_echoing_p. Adjust assignments for the both renames.
3597
1f84b619
TJB
35982011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3599
3600 * symtab.c (lookup_symtab): Run cleanup before returning.
3601
74ac6d43
TT
36022011-05-11 Tom Tromey <tromey@redhat.com>
3603
3604 * dwarf2read.c (handle_data_member_location): New function.
3605 (dwarf2_add_field): Use it.
3606 (read_common_block): Likewise.
3607
5488dafb
JK
36082011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 Make addrs->SECTINDEX always defined.
3611 * symfile.c (relative_addr_info_to_section_offsets): Check for
3612 SECTINDEX -1, not for zero ADDR.
3613 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3614 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3615 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3616 on its validity.
3617
84e578fb
DE
36182011-05-10 Doug Evans <dje@google.com>
3619
2471d008
DE
3620 * linux-thread-db.c: Whitespace cleanup.
3621 (try_thread_db_load_1): Fix comment.
3622
84e578fb
DE
3623 * linux-thread-db.c (set_libthread_db_search_path): New function.
3624 (_initialize_thread_db): Add setter for libthread-db-search-path.
3625
673c2bbe
DE
36262011-05-09 Doug Evans <dje@google.com>
3627
478aac75
DE
3628 * NEWS: Mention --with-iconv-bin.
3629 * configure.ac: New option --with-iconv-bin.
3630 * configure: Regenerate.
3631 * config.in: Regenerate.
3632 * defs.h (relocate_gdb_directory): Declare.
3633 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3634 removed progname parameter, and exported. All callers updated.
3635 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3636
673c2bbe
DE
3637 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3638 adding missing call to restore_child_signals_mask.
3639
e4c8541f
PA
36402011-05-09 Pedro Alves <pedro@codesourcery.com>
3641
3642 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3643 parameter.
3644 * infrun.c (proceed, start_remote): Adjust.
3645 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3646 and adjust to not handle it.
3647 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3648 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3649 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3650 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3651 * windows-nat.c (do_initial_windows_stuff): Adjust.
3652 * infcmd.c (attach_command): Adjust.
3653 (notice_new_inferior): Adjust.
3654
a536c6d7
UW
36552011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3656
3657 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3658 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3659 * spu-tdep.c (op_selb): Use correct value.
3660
7845b013
UW
36612011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3662
3663 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3664 "parent" parameter to symbol_file_add_from_bfd call.
3665
9c06b0b4
TJB
36662011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3667 Thiago Jung Bauermann <bauerman@br.ibm.com>
3668
3669 Implement support for PowerPC BookE masked watchpoints.
3670 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3671 section.
3672 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3673 method. Initialize to NULL in all existing breakpoint_ops instances.
3674 (struct breakpoint) <hw_wp_mask>: New field.
3675 * breakpoint.c (is_masked_watchpoint): Add prototype.
3676 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3677 breakpoint's breakpoint_ops.works_in_software_mode if available.
3678 (watchpoints_triggered): Handle the case of a hardware masked
3679 watchpoint trigger.
3680 (watchpoint_check): Likewise.
3681 (works_in_software_mode_watchpoint): New function.
3682 (insert_masked_watchpoint, remove_masked_watchpoint)
3683 (resources_needed_masked_watchpoint)
3684 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3685 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3686 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3687 functions.
3688 (masked_watchpoint_breakpoint_ops): New structure.
3689 (watch_command_1): Check for the existence of the `mask' parameter.
3690 Set b->ops according to the type of hardware watchpoint being created.
3691 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3692 (ppc_linux_remove_mask_watchpoint)
3693 (ppc_linux_masked_watch_num_registers): New functions.
3694 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3695 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3696 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3697 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3698 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3699 (target_masked_watch_num_registers): New functions.
3700 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3701 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3702 methods.
3703 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3704 (target_masked_watch_num_registers): Add prototypes.
3705
8be455d7
JK
37062011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 PR 12573
3709 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3710 (producer_is_gcc_ge_4_0): New function.
3711 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3712 symtab->language code.
3713 (var_decode_location): Set cu->has_loclist.
3714 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3715 skip. Intialize force_skip from locations_valid. Move the prologue
3716 skipping code into two passes.
3717 * symtab.h (struct symtab): Make the primary field a bitfield. New
3718 field locations_valid.
3719
d8228535
JK
37202011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3723 (classify_inner_name): Call cp_lookup_nested_type with
3724 yylval.tsym.type.
3725 * cp-namespace.c (cp_lookup_nested_type): New variable
3726 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3727 type_name_no_tag_or_error with saved_parent_type.
3728 * dwarf2read.c (load_partial_dies): Read in any children of
3729 DW_TAG_typedef with complaint in such case.
3730 * gdbtypes.c (type_name_no_tag_or_error): New function.
3731 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3732 * valops.c (destructor_name_p): New comment for parameter type. Remove
3733 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3734 * value.h (destructor_name_p): Remove type const.
3735
1976171a
JK
37362011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3737
3738 * symtab.c (compare_symbol_name): New function.
3739 (completion_list_add_name, expand_partial_symbol_name): Call it,
3740 remove the variable ncmp.
3741 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3742 gdb_assert it.
3743
a9634178
TJB
37442011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3745
3746 Demote to sw watchpoint only in update_watchpoint.
3747 * breakpoint.c (update_watchpoint): Change between software and
3748 hardware watchpoint for all kinds of watchpoints, not just
3749 read/write ones. Determine b->exact value here instead of
3750 in watch_command_1. Error out if there are not enough resources
3751 for a read or access hardware watchpoint.
3752 (watch_command_1): Remove logic of checking whether there are
3753 enough resources available, since update_watchpoint will do that
3754 work now. Don't set b->exact here. Catch exceptions thrown by
3755 update_watchpoint and delete the watchpoint.
3756 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3757 Use target_exact_watchpoints instead.
3758 (delete_breakpoint): Notify observers only if deleted watchpoint
3759 has a breakpoint number assigned to it.
3760
4c67c798
JJ
37612011-05-05 Janis Johnson <janisjo@codesourcery.com>
3762
3763 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3764
a3fcb948
JG
37652011-05-05 Jerome Guitton <guitton@adacore.com>
3766
3767 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3768 New functions.
3769 (i386_stack_tramp_frame_unwind): New static global.
3770 (i386_match_pattern): New function, extracted from i386_match_insn.
3771 (i386_match_insn): Use i386_match_pattern.
3772 (i386_match_insn_block): New function.
3773 (i386_tramp_chain_in_reg_insns)
3774 (i386_tramp_chain_on_stack_insns): New static variables.
3775 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3776 of unwinders.
3777
4d393d60
JM
37782011-05-04 Joseph Myers <joseph@codesourcery.com>
3779
3780 * configure.host (xscale*): Don't handle target.
3781 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3782 handle targets.
3783
f70bd40b
YQ
37842011-05-04 Yao Qi <yao@codesourcery.com>
3785
3786 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3787
dd3295ee
JB
37882011-05-03 Joel Brobecker <brobecker@adacore.com>
3789
3790 Revert:
3791 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3792 | * elfread.c (elf_symtab_read): Stop memory leak.
3793
90375a0e
PM
37942011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3795
3796 * nto-tdep.c (nto_target): Replace deprecated call to
3797 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3798
d07205c2
JK
37992011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3800
3801 Fix false GCC warning.
3802 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3803
1e718ff1
TJB
38042011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3805
3806 * breakpoint.c (update_watchpoint): Move code to change
3807 the enable state of breakpoint from here ...
3808 (do_enable_breakpoint): ... to here.
3809
35bef4fd
TT
38102011-04-26 Andrew Gontarek <andrewg@cray.com>
3811
78290264
PP
3812 * valprint.c (val_print_array_elements): Fixed poor performance
3813 of printing very large arrays with repeat_count_threshold set
3814 to unlimited. New comment.
35bef4fd 3815
38a714bb
TT
38162011-04-29 Tom Tromey <tromey@redhat.com>
3817
3818 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3819 (mi_parse): Likewise.
3820 * breakpoint.c (break_range_command): Use sizeof char*, not
3821 char**.
3822 (create_breakpoint): Likewise.
3823 (parse_breakpoint_sals): Likewise.
3824
eb73ad13
PA
38252011-04-29 Pedro Alves <pedro@codesourcery.com>
3826
3827 * linux-nat.c (linux_child_remove_fork_catchpoint)
3828 (linux_child_remove_vfork_catchpoint)
3829 (linux_child_remove_exec_catchpoint): New functions.
3830 (linux_target_install_ops): Install them.
3831
d65aec65
PM
38322011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3833
3834 PR mi/12531
3835
3836 * varobj.c (install_default_visualizer): Do not install a
3837 visualizer if the varobj is CPLUS_FAKE_CHILD.
3838 (construct_visualizer): Likewise.
3839
165195f4
JK
38402011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3841
3842 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3843 case insensitive comparison.
3844
30852783
UW
38452011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3846
3847 * infrun.c (proceed): Revert previous change.
3848 (resume): Instead, handle the case of signal delivery while stepping
3849 off a breakpoint location here, and only if software single-stepping
3850 is used. Handle nested signals.
3851
7ff120b4
YQ
38522011-04-28 Yao Qi <yao@codesourcery.com>
3853
3854 * arm-tdep.c (copy_unmodified): Rename to ...
3855 (arm_copy_unmodified): .. this. New.
3856 (copy_preload): Move common part to ...
3857 (install_preload): .. this. New.
3858 (arm_copy_preload): New.
3859 (copy_preload_reg): Move common part to ...
3860 (install_preload_reg): ... this. New.
3861 (arm_copy_preload_reg): New.
3862 (copy_b_bl_blx): Move common part to ...
3863 (install_b_bl_blx): .. this. New.
3864 (arm_copy_b_bl_blx): New.
3865 (copy_bx_blx_reg): Move common part to ...
3866 (install_bx_blx_reg): ... this. New.
3867 (arm_copy_bx_blx_reg): New.
3868 (copy_alu_reg): Move common part to ...
3869 (install_alu_reg): ... this. New.
3870 (arm_copy_alu_reg): New.
3871 (copy_alu_shifted_reg): Move common part to ...
3872 (install_alu_shifted_reg): ... this. New.
3873 (copy_ldr_str_ldrb_strb): Move common part to ...
3874 (install_ldr_str_ldrb_strb): ... this. New.
3875 (arm_copy_ldr_str_ldrb_strb): New.
3876 (copy_copro_load_store): Move some common part to ...
3877 (install_copy_copro_load_store): ... this. New.
3878 (arm_copy_copro_load_store): New.
3879 (copy_svc): Delete.
3880 (arm_copy_svc): Renamed from copy_svc.
3881 (copy_undef): Delete.
3882 (arm_copy_undef): Renamed from copy_undef.
3883 (decode_ext_reg_ld_st): Delete.
3884 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3885 (decode_svc_copro): Delete.
3886 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3887 (copy_copro_load_store, copy_alu_imm): update callers.
3888 (copy_extra_ld_st, copy_block_xfer): Likewise.
3889 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3890 (decode_miscellaneous, decode_dp_misc): Likewise.
3891 (decode_ld_st_word_ubyte, decode_media): Likewise.
3892 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3893 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3894 (decode_unconditional, decode_miscellaneous): Likewise.
3895 (decode_media, decode_b_bl_ldmstm): Likewise.
3896 (arm_process_displaced_insn): Likewise..
3897 (decode_misc_memhint_neon): Delete.
3898 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3899 (decode_miscellaneous): Delete.
3900 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3901 (decode_dp_misc): Delete.
3902 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3903 (decode_ld_st_word_ubyte): Delete.
3904 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3905 (decode_media): Delete.
3906 (arm_decode_media): Renamed from decode_media.
3907 (decode_b_bl_ldmstm): Delete.
3908 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3909 (decode_ext_reg_ld_st): Delete.
3910 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3911 (decode_unconditional): Delete.
3912 (arm_decode_unconditional): Renamed from decode_unconditional.
3913
559a7a62
JK
39142011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 Case insensitive lookups implementation.
3917 * dwarf2read.c: Include ctype.h.
3918 (struct mapped_index): New field version.
3919 (mapped_index_string_hash): New parameter index_version. New comment
3920 for it. Call tolower appropriately.
3921 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3922 Choose the right index version for mapped_index_string_hash.
3923 (dwarf2_read_index): Support also the index version 5. Initialize the
3924 new struct mapped_index field version.
3925 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3926 (find_slot): Explain the version needs. Pass INT_MAX for the new
3927 parameter.
3928 (write_psymtabs_to_index): Produce version 5.
3929 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3930 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3931 * psymtab.c (lookup_partial_symbol): Find the
3932 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3933 entries.
3934 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3935 NAME lowercasing.
3936 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3937 (completion_list_add_name): New variable ncmp, initialize it, use it.
3938 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3939 * utils.c (strcmp_iw): Support case_sensitive_off.
3940 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3941 New function comment part. New variables saved_string1,
3942 saved_string2 and case_pass. Add a proper second pass.
3943
681bf369
JK
39442011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3945
3946 Replace re_comp/re_exec by regcomp/regexec.
3947 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3948 (search_symbols_name_matches): Use them, use regexec.
3949 (search_symbols): New variable retval_chain, adjust the use of
3950 old_chain against it. Replace re_comp by regcomp. Use the new struct
3951 search_symbols_data fields, use regexec instead of re_exec.
3952
b11b1f88
JK
39532011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 Format the code for the next patch.
3956 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3957 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3958 New variables c1 and c2.
3959
2484c66b
UW
39602011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3961
3962 * infrun.c (proceed): Do not single-step into signal delivery
3963 when stepping off a breakpoint location.
3964 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3965 (insert_step_resume_breakpoint_at_caller): Likewise.
3966 (insert_step_resume_breakpoint_at_sal): Likewise.
3967 (insert_longjmp_resume_breakpoint): Likewise.
3968
47423772
YQ
39692011-04-27 Yao Qi <yao@codesourcery.com>
3970
3971 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3972
13bdd2e7
JB
39732011-04-27 Joel Brobecker <brobecker@adacore.com>
3974
3975 * procfs.c (procfs_pass_signals): Fix advance declaration.
3976
2455069d
UW
39772011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3978
3979 * target.h (struct target_ops): Remove to_notice_signals;
3980 add to_pass_signals.
3981 (target_notice_signals): Remove.
3982 (target_pass_signals): Add prototype.
3983 * target.c (update_current_target): Remove to_notice_signals;
3984 mention to_pass_signals.
3985 (target_pass_signals): New function.
3986 (debug_to_notice_signals): Remove.
3987 (setup_target_debug): Do not install debug_to_notice_signals.
3988
3989 * infrun.c (signal_pass): New global.
3990 (resume): Call target_pass_signals.
3991 (handle_inferior_event): Report all signals while stepping over
3992 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3993 are re-inserted when stepping over a signal handler.
3994 (signal_cache_update): New function.
3995 (signal_stop_update): Call it.
3996 (signal_print_update): Likewise.
3997 (signal_pass_update): Likewise.
3998 (handle_command): Call signal_cache_update and target_pass_signals
3999 instead of target_notice_signals.
4000 (_initialize_infrun): Initialize signal_pass.
4001
4002 * linux-nat.c (pass_mask): New global.
4003 (linux_nat_pass_signals): New function.
4004 (linux_nat_create_inferior): Report all signals initially.
4005 (linux_nat_attach): Likewise.
4006 (linux_nat_resume): Use pass_mask to decide whether to directly
4007 handle an inferior signal.
4008 (linux_nat_wait_1): Likewise.
4009 (linux_nat_add_target): Install to_pass_signals callback.
4010
4011 * nto-procfs.c (notice_signals): Remove.
4012 (procfs_resume): Do not call notice_signals.
4013 (procfs_notice_signals): Remove.
4014 (procfs_pass_signals): New function.
4015 (init_procfs_ops): Install to_pass_signals callback instead of
4016 to_notice_signals callback.
4017 (_initialize_procfs): Report all signals initially.
4018
4019 * procfs.c (procfs_notice_signals): Remove.
4020 (procfs_pass_signals): New function.
4021 (procfs_target): Install to_pass_signals callback instead of
4022 to_notice_signals callback.
4023 (register_gdb_signals): Remove.
4024 (procfs_debug_inferior): Report all signals initially.
4025 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4026
4027 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4028 parameters; use them instead of calling signal_..._state routines.
4029 (remote_notice_signals): Remove.
4030 (remote_start_remote): Report all signals initially.
4031 (remote_resume): Do not call remote_pass_signals.
4032 (_initialize_remote): Install to_pass_signals callback instead of
4033 to_notice_signals callback.
4034
46c6471b
PA
40352011-04-27 Pedro Alves <pedro@codesourcery.com>
4036
4037 * breakpoint.c (user_settable_breakpoint): Delete.
4038 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4039 (delete_command): Check user_breakpoint_p instead of looking at
4040 the breakpoint's type.
4041 (disable_command): Ditto.
4042 (enable_command): Ditto.
4043 (delete_trace_command): Use user_breakpoint_p instead of looking
4044 at the breakpoint number directly. When checking if there are
4045 user visible tracepoints, in order to know whether to ask the user
4046 for confirmation, check whether the breakpoint is actually a
4047 tracepoint.
4048
f6d90398
VP
40492011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4050
4051 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4052 compilation.
4053
8d3788bd
VP
40542011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4055
4056 MI breakpoint notifications.
4057
f33edef8
PP
4058 * annotate.c (breakpoint_changed): Adjust parameter type.
4059 * breakpoint.c (set_breakpoint_condition): Adjust to change
4060 in breakpoint_modified type.
4061 (breakpoint_set_commands): Likewise.
4062 (do_map_commands_command): Likewise.
4063 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4064 changed after bumping hit count.
4065 (bpstat_stop_status): Likewise.
4066 (print_one_breakpoint_location): Don't wrap in tuple here.
4067 (print_one_breakpoint): Always print individual locations.
4068 For locations, use unnamed tuple.
4069 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4070 has changed.
4071 (create_catchpoint, create_syscall_event_catchpoint): Call
4072 breakpoint_created obsever.
4073 (mention): Don't call breakpoint_created observer.
4074 (create_breakpoint_sal): Call breakpoint_created observer.
4075 (create_breakpoint, watch_command_1): Likewise.
4076 (create_ada_exception_breakpoint): Likewise.
4077 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4078 (locations_are_equal): New.
4079 (update_breakpoint_locations): If locations were changed, notify.
4080 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4081 Call breakpoint_modified observer.
4082
4083 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4084 (mi_cmd_break_insert): Don't set observers for modify and delete.
4085 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4086 (mi_breakpoint_created, mi_breakpoint_deleted)
4087 (mi_breakpoint_modified): New.
4088 (mi_interpreter_init): Hook the above.
4089 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4090 while -break-* commands are executing.
4091 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4092 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4093 (mi_redirect): New.
4094 (mi_ui_out_impl): Hook in mi_redirect.
4095 (mi_field_skip): True to the name, skip the field, don't output
4096 a field with an empty value.
4097
4098 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4099 (gdbpy_breakpoint_deleted): Adjust.
4100 * tui/tui-hooks.c (tui_event_create_breakpoint)
4101 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 4102
a8f42b45
UW
41032011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4104
4105 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4106 (procfs_remove_hw_watchpoint): Likewise.
4107
57e12211
TT
41082011-04-26 Michael Walle <michael@walle.cc>
4109
4110 * remote.c (remote_start_remote): Ack packet after sending the
4111 interrupt sequence.
4112
af96c192
YQ
41132011-04-26 Yao Qi <yao@codesourcery.com>
4114
f33edef8
PP
4115 * linux-nat.c: Move common macros to ...
4116 Include linux-ptrace.h.
4117 * common/linux-ptrace.h: ... here. New.
af96c192 4118
3e03848b
JK
41192011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4122 !objfile_has_partial_symbols. New comment.
4123 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4124 SYM_READ_PSYMBOLS is not present. Extend the comment.
4125 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4126
1ae0d051
JK
41272011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 * defs.h (ENUM_BITFIELD): Remove.
4130
03f2bd59
JK
41312011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4132 Eli Zaretskii <eliz@gnu.org>
4133
4134 * NEWS: Document the new gdbserver --once option.
4135
4161fbb0
JZ
41362011-04-21 Jie Zhang <jzhang918@gmail.com>
4137
4138 * MAINTAINERS: Update my email address.
4139
bcb28afc
PM
41402011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4141
4142 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4143 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4144 function call if __STDC_ISO_10646__ macro is defined.
4145 (intermediate_encoding): New prototype.
4146 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4147 to generate compile time error for unsupported gdb_wchar_t size.
4148 (ENDIAN_SUFFIX): New macro.
4149 (intermediate_encoding): New function.
4150
7b08b9eb
JK
41512011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4152
4153 * ada-lang.c (struct add_partial_datum): Update the comment for
4154 expand_partial_symbol_name.
4155 (ada_add_partial_symbol_completions): Rename to ...
4156 (ada_expand_partial_symbol_name): ... here, change return type, update
4157 function comment, call symbol_completion_match instead of
4158 symbol_completion_add.
4159 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4160 and ada_expand_partial_symbol_name.
4161 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4162 FILE_MATCHER.
4163 (dw2_map_symbol_names): Remove.
4164 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4165 * psymtab.c (map_symbol_names_psymtab): Remove.
4166 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4167 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4168 order.
4169 (psym_functions): Unlist map_symbol_names_psymtab.
4170 (map_partial_symbol_names): Rename to ...
4171 (expand_partial_symbol_names): ... here, change the FUN type, call
4172 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4173 * psymtab.h (map_partial_symbol_names): Rename to ...
4174 (expand_partial_symbol_names): ... here, change the FUN type.
4175 * symfile.h (struct quick_symbol_functions): Update the description of
4176 expand_symtabs_matching. Remove map_symbol_names.
4177 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4178 (struct add_name_data): Update the comment for
4179 expand_partial_symbol_name.
4180 (add_partial_symbol_name): Rename to ...
4181 (expand_partial_symbol_name): ... here. Replace
4182 completion_list_add_name call by strncmp.
4183 (default_make_symbol_completion_list_break_on): Use now
4184 expand_partial_symbol_names and expand_partial_symbol_name.
4185 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4186
90476074
TT
41872011-04-20 Tom Tromey <tromey@redhat.com>
4188
4189 * dwarf2read.c (save_gdb_index_command): Replace format
4190 documentation with a pointer to the manual.
4191
c21236dc
PA
41922011-04-20 Pedro Alves <pedro@codesourcery.com>
4193
4194 * regcache.c: Include remote.h.
4195 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4196 (regcache_dump): Handle regcache_dump_remote.
4197 (maintenance_print_remote_registers): New function.
4198 (_initialize_regcache): Install "maint print remote-registers"
4199 command.
4200 * remote.c (map_regcache_remote_table): New function, factored out
4201 from ...
4202 (init_remote_state): ... here.
4203 (remote_register_number_and_offset): New.
4204 * remote.h (remote_register_number_and_offset): Declare.
4205
b78974c3
PA
42062011-04-20 Pedro Alves <pedro@codesourcery.com>
4207
4208 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4209 null_ptid, assume and allow a NULL address space, instead of
4210 asking the target for the ptid's address space.
4211 * infrun.c (ptid_is_pid): Remove assertion.
4212
7a9dd1b2
TT
42132011-04-19 Tom Tromey <tromey@redhat.com>
4214
4215 * windows-tdep.c (windows_xfer_shared_library):
4216 * windows-nat.c (get_module_name, windows_make_so):
4217 * v850-tdep.c (v850_handle_pushm):
4218 * utils.c (null_cleanup, gdb_realpath):
4219 * ui-out.c (get_next_header):
4220 * tracepoint.c (clear_traceframe_info):
4221 * symtab.c (lookup_symtab):
4222 * serial.h (struct serial_ops):
4223 * mipsread.c (read_alphacoff_dynamic_symtab):
4224 * infcmd.c (print_return_value):
4225 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4226 * f-exp.y (parse_number):
4227 * exceptions.c (catch_exceptions):
4228 * dummy-frame.c (dummy_frame_this_id):
4229 * defs.h (struct cleanup):
4230 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4231 * arm-tdep.c (arm_push_dummy_call):
4232 * amd64-tdep.h (amd64_collect_xsave):
4233 * amd64-tdep.c (amd64_collect_xsave):
4234 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4235 * README (typing): Remove duplicate words.
4236 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4237 * infrun.c (siginfo_value_read): Fix typo.
4238 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4239 * top.c (source_line_number): Add comma.
4240
9941e0c5
MK
42412011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4242
4243 * thread.c (any_live_thread_of_process): Prioritize threads
4244 that are not executing.
4245 * gdbthread.h (any_live_thread_of_process): Update comment
4246 as per above change.
4247
ed4b0e6a
AS
42482011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4249
4250 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4251 (scan_xcoff_symtab): Likewise.
4252
9b13a2db
PM
42532011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4254
4255 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4256 inside if clause.
4257
1c6e1b0d
PM
42582011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4259 Pedro Alves <pedro@codesourcery.com>
4260
4261 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4262 variables to simplify code and avoid == operator at end of
4263 line as this is against GNU coding standards.
4264
74de0234
PM
42652011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4266
4267 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4268 lm_name to name_lm to avoid conflict with lm_name function.
4269
b23518f0
PM
42702011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4271
4272 ARI fixes: Use only lowercase function name for static functions.
4273 * nto-tdep.c (LM_ADDR): Rename to...
4274 (lm_addr): New function name.
4275 (nto_relocate_section_addresses): Adapt to change above.
4276 * solib-sunos.c (LM_ADDR): Rename to...
4277 (lm_addr): New function name.
4278 (LM_NEXT): Rename to...
4279 (lm_next): New function name.
4280 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4281 function name changes above.
4282 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4283 (lm_addr_from_link_map): New function name.
4284 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4285 (has_lm_dynamic_from_link_map): New function name.
4286 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4287 (lm_dynamic_from_link_map): New function name.
4288 (LM_ADDR_CHECK): Rename to...
4289 (lm_addr_check): New function name.
4290 (LM_NEXT): Rename to...
4291 (lm_next): New function name.
4292 (LM_PREV): Rename to...
4293 (lm_prev): New function name.
4294 (LM_NAME): Rename to...
4295 (lm_name): New function name.
4296 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4297 (ignore_first_link_map_entry): New function name.
4298 (svr4_keep_data_in_core): Adapt to function name changes above.
4299 (svr4_current_sos): Likewise.
4300 (enable_break): Likewise.
4301 (svr4_relocate_section_addresses): Likewise.
4302
1448a0a2
PM
43032011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4304
4305 ARI cleanup.
4306 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4307 sprintf. Simplify code and avoid loosing memory.
4308 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4309 (call0_frame_cache): Remove && operator from end of line.
4310
02835898
JK
43112011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4312
4313 Fix libraries displacement if they change whether they were prelinked.
4314 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4315 does not match. Comment why.
4316
9a845ea2
JK
43172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4318
4319 * corelow.c: Include wrapper.h.
4320 (core_open): Call now gdb_target_find_new_threads.
4321 * wrapper.c: Include target.h.
4322 (gdb_target_find_new_threads): New.
4323 * wrapper.h (gdb_target_find_new_threads): New declaration.
4324
254f582e
JK
43252011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4326
4327 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4328 even if !TARGET_HAS_EXECUTION.
4329
63524580
JK
43302011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4331
4332 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4333 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4334 bfd_get_synthetic_symtab.
4335 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4336 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4337 parameter parent, remove the call to add_separate_debug_objfile.
4338 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4339 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4340 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4341 parent, new comment for it, call add_separate_debug_objfile for it.
4342 (symbol_file_add_separate): Pass objfile as the parameter parent,
4343 remove the call to add_separate_debug_objfile.
4344 (symbol_file_add_from_bfd): New parameter parent, pass it.
4345 (symbol_file_add): Pass NULL to the new parameter parent.
4346 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4347
90359a16
JK
43482011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4349
4350 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4351 BSF_SYNTHETIC.
4352
626e7282
JK
43532011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4354
4355 Fix Python access to inlined frames.
4356 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4357 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4358
cf31e6f9
TT
43592011-04-15 Tom Tromey <tromey@redhat.com>
4360
4361 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4362
c8d895f1
GB
43632011-04-15 Gary Benson <gbenson@redhat.com>
4364
4365 * MAINTAINERS: Add myself to write-after-approval section.
4366
56a9aa1d
MF
43672011-04-14 Mike Frysinger <vapier@gentoo.org>
4368
4369 * remote-sim.c (sim_command_completer): New function.
4370 (_initialize_remote_sim): Set completer to sim_command_completer.
4371
ba770c9c
TJB
43722011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4373
4374 * breakpoint.c (print_exception_catchpoint): Rename to ...
4375 (print_it_exception_catchpoint): ... this.
4376 (gnu_v3_exception_catchpoint_ops): Update with new name
4377 for print_it_exception_catchpoint.
4378
51bf2553
EBM
43792011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4380
4381 * MAINTAINERS: Add myself for write after approval privileges.
4382
d242658c
MP
43832011-04-13 Marek Polacek <mpolacek@redhat.com>
4384
4385 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4386
4a4106ca
TJB
43872011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4388
4389 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4390
26063d49
TJB
43912011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4392
4393 * breakpoint.c (save_breakpoints): Verify whether
4394 breakpoint_ops.print_recreate is defined before calling it.
4395
7782b183
GB
43962011-04-11 Gary Benson <gbenson@redhat.com>
4397
4398 Fix failure with --enable-maintainer-mode.
4399 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4400
e8930875
JK
44012011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4402
4403 Code cleanup.
4404 * symtab.c (search_symbols): Reorder the KIND description in the
4405 function comment. Remove the unused 4th element of types, types2,
4406 types3 and types4. New gdb_assert on KIND.
4407 (symtab_symbol_info): Remove the unused 4th element of classnames.
4408 New gdb_assert on KIND.
4409 * symtab.h (enum search_domain): New warning in the enum comment.
4410 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4411 TYPES_DOMAIN.
4412
b4f2f049
JK
44132011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4414
4415 Fix crash of gdb save-index on a STABS file.
4416 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4417 PSYMTABS_ADDRMAP.
4418
60d5a603
JK
44192011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4422 * dwarf2read.c: Include ctype.h.
4423 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4424 functions.
4425 (dwarf2_add_field): Fix new_field->accessibility by calling
4426 dwarf2_default_access_attribute. Restructure setting accessibility
4427 vs. virtuality.
4428 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4429 is_private and is_protected by calling
4430 dwarf2_default_access_attribute.
4431
e0f68161
KB
44322011-04-08 Kevin Buettner <kevinb@redhat.com>
4433
4434 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4435 to the initialization.
4436
2e1aae43
SE
44372011-04-08 Steve Ellcey <sje@cup.hp.com>
4438
4439 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4440 initalization.
4441
c6ca3dab
PM
44422011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4443
4444 Remove support for old Cygwin 1.5 versions.
4445 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4446 function on old Cygwin version.
4447 * windows-nat.c: Remove cygwin version check and always define
4448 __USEWIDE for Cygwin compilation.
4449
bd18283a
YQ
44502011-04-07 Yao Qi <yao@codesourcery.com>
4451
4452 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4453 and TO.
4454 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4455 (arm_copy_svc): Remove parameters INSN and TO.
4456 (decode_svc_copro): Update caller.
4457 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4458 from function pointer `copy_svc_os'.
4459
8c8dba6d
YQ
44602011-04-07 Yao Qi <yao@codesourcery.com>
4461
4462 * arm-tdep.c (cleanup_branch): Set a correct return address in
4463 LR for ARM and Thumb.
4464
59d7bcaf
JK
44652011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4466
4467 Code cleanup.
4468 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4469 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4470 in the function comment, a new note on values compatibility.
4471 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4472 * symtab.h (SYMBOL_HASH_NEXT): New.
4473
e7db58ea
TJB
44742011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4475
4476 * ppc-linux-nat.c (check_condition): Add len output parameter.
4477 Set it based on the memory region referenced in the condition
4478 expression. Update all callers.
4479
9f743ef6
JK
44802011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4481
4482 Fix crash regression on systems featuring .gdb_index.
4483 * objfiles.c (free_objfile): Move the
4484 forget_cached_source_info_for_objfile call earlier. Comment it.
4485 Extend the comment for objfile_free_data.
4486
9182c5bc
JK
44872011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4488
4489 Fix regression of displaying the debug format.
4490 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4491 subfile.
4492
04bd08de
TT
44932011-04-04 Tom Tromey <tromey@redhat.com>
4494
4495 * cli/cli-interp.c (struct captured_execute_command_args):
4496 Remove.
4497 (do_captured_execute_command): Remove.
4498 (safe_execute_command): Use TRY_CATCH.
4499 * cli/cli-script.c (struct wrapped_read_command_file_args):
4500 Remove.
4501 (wrapped_read_command_file): Remove.
4502 (script_from_file): Use TRY_CATCH.
4503 * exceptions.c (catch_exception): Remove.
4504 * exceptions.h (catch_exception): Remove.
4505 (deprecated_throw_reason): Update comment.
4506 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4507 argument to 'context'.
4508 (mi_execute_command): Use TRY_CATCH.
4509 * remote.c (struct start_remote_args): Remove.
4510 (remote_start_remote): Update; change arguments.
4511 (remote_open_1): Use TRY_CATCH.
4512
58438ac1
TT
45132011-04-04 Tom Tromey <tromey@redhat.com>
4514
4515 * tracepoint.c (scope_info): Update.
4516 * symtab.c (decode_line_spec): Update.
4517 * python/python.c (gdbpy_decode_line): Update.
4518 * linespec.h (decode_line_1): Update.
4519 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4520 (decode_compound, find_method, symtab_from_filename)
4521 (decode_variable): Likewise.
4522 * cli/cli-cmds.c (edit_command): Update.
4523 (list_command): Update.
4524 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4525 argument.
4526 (create_breakpoint): Update.
4527 (until_break_command): Update.
4528 (addr_string_to_sals): Update.
4529 (decode_line_spec_1): Update.
4530
b78a6381
TT
45312011-04-04 Tom Tromey <tromey@redhat.com>
4532
4533 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4534 (do_captured_parse_breakpoint): Remove.
4535 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4536 Use TRY_CATCH directly.
4537
00174a86
TT
45382011-04-04 Tom Tromey <tromey@redhat.com>
4539
4540 * symtab.h (free_symtab): Remove.
4541 (forget_cached_source_info_for_objfile): Declare.
4542 * symmisc.c (free_symtab): Remove.
4543 * source.c (forget_cached_source_info_for_objfile): New function.
4544 (forget_cached_source_info): Use it.
4545 * objfiles.c (free_objfile): Simplify check before calling
4546 clear_current_source_symtab_and_line. Call
4547 forget_cached_source_info_for_objfile.
4548
30cc903e
TT
45492011-04-04 Tom Tromey <tromey@redhat.com>
4550
4551 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4552 (new_symtab): Don't set `free_code' on symtab.
4553 (new_linetable): Properly handle size==0.
4554 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4555 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4556 free_func.
4557 * jv-lang.c (struct jv_per_objfile_data): New.
4558 (jv_per_objfile_free): Free the data.
4559 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4560 (get_java_class_symtab): Set the `dict' field on the
4561 jv_per_objfile_data.
4562 (free_class_block): Remove.
4563 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4564 the symtab.
4565
0c2e6019
TT
45662011-04-04 Tom Tromey <tromey@redhat.com>
4567
4568 * symfile.c (reread_symbols): Update.
4569 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4570 field.
4571 * objfiles.c (allocate_objfile): Update.
4572 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4573 declare.
4574 * cp-namespace.c (lookup_symbol_file): Don't call
4575 lookup_possible_namespace_symbol.
4576 (initialize_namespace_symtab, get_possible_namespace_block)
4577 (free_namespace_block, cp_check_possible_namespace_symbols)
4578 (check_possible_namespace_symbols_loop)
4579 (check_one_possible_namespace_symbol)
4580 (lookup_possible_namespace_symbol): Remove.
4581 (maintenance_cplus_namespace): Replace with notice.
4582 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4583
554d387d
TT
45842011-04-04 Tom Tromey <tromey@redhat.com>
4585
4586 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4587 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4588 * symmisc.c (free_symtab): Don't free debugformat.
4589 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4590 (record_debugformat, record_producer): Document.
4591 * buildsym.c (end_symtab): Don't save debugformat and producer
4592 names on obstack.
4593 (end_symtab): Don't free debugformat and producer fields.
4594 (record_debugformat): Don't call xstrdup.
4595 (record_producer): Likewise.
4596
d4d4db8a
TT
45972011-04-04 Tom Tromey <tromey@redhat.com>
4598
4599 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4600 (source_line_charpos, source_charpos_line): Remove.
4601
8903c50d
TT
46022011-04-04 Tom Tromey <tromey@redhat.com>
4603
4604 * symtab.h (domain_enum): Split in two...
4605 (enum search_domain): New.
4606 (search_symbols): Update.
4607 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4608 redundant declarations.
4609 (search_symbols): Change 'kind' argument to search_domain.
4610 Update.
4611 (print_symbol_info): Likewise.
4612 (symtab_symbol_info): Likewise.
4613 * symfile.h (struct quick_symbol_functions)
4614 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4615 <expand_symtabs_matching>: Likewise.
4616 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4617 (expand_symtabs_matching_via_partial): Update.
4618 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4619 (dw2_expand_symtabs_for_function): Update.
4620 * block.h: Moved anonymous enum...
4621 * defs.h (enum block_enum): ... here. Now named.
4622
d9351f5f 46232011-04-03 Joel Brobecker <brobecker@adacore.com>
4624
4625 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4626 * version.in: Bump version to 7.3.50.20110403-cvs.
4627
d6e00af6
JB
46282011-04-03 Joel Brobecker <brobecker@adacore.com>
4629
4630 * NEWS: Create a new section for the next release branch.
4631 Rename the section of the current branch, now that it has
4632 been cut.
4633
2b9e5ea6
UW
46342011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4635
4636 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4637 for "fpscr" in target description.
4638
0cf03b49
JK
46392011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4642 initialize it. Delay HASH initialization. Strip the part after open
4643 parenthesis for languages with qualifiers. Call do_cleanups.
4644
5d901a73
TT
46452011-04-01 Tom Tromey <tromey@redhat.com>
4646
4647 * utils.c (report_command_stats): Don't print `-' for negative
4648 number.
4649
b0dd7688
JB
46502011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4651
4652 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4653 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4654 typedefs.
4655
956a9fb9
JB
46562011-04-01 Joel Brobecker <brobecker@adacore.com>
4657
4658 * breakpoint.h (bpdisp_text): Add declaration.
4659 * breakpoint.c (bpdisp_text): Make non-static.
4660 * ada-lang.c: #include "mi/mi-common.h".
4661 (print_it_exception): Rewrite to improve GDB/MI output.
4662
3352110b
PA
46632011-04-01 Pedro Alves <pedro@codesourcery.com>
4664
4665 * arm-tdep.h (struct address_space): Add forward declaration.
4666
18819fa6
UW
46672011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4668
4669 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4670 * arm-tdep.c (arm_override_mode): New global.
4671 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4672 execution mode heuristics.
4673 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4674 second single-step breakpoint if needed, using
4675 arm_insert_single_step_breakpoint.
4676 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4677 ARM execution mode, do not call thumb_get_next_pc_raw.
4678 (arm_get_next_pc): Encode execution mode in return value. Call
4679 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4680 (arm_insert_single_step_breakpoint): New function.
4681 (arm_software_single_step): Call it.
4682 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4683 argument to return execution mode of sigreturn target.
4684 (arm_linux_syscall_next_pc): Use it.
4685 (arm_linux_copy_svc): Update call.
4686 (arm_linux_software_single_step): Call
4687 arm_insert_single_step_breakpoint.
4688
a6e293d1
JK
46892011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4690
4691 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4692 the comment.
4693
a4c8e806
TT
46942011-03-31 Tom Tromey <tromey@redhat.com>
4695
4696 * varobj.c (update_dynamic_varobj_children): Properly handle
4697 errors from iterator.
4698
df5c6c50
JK
46992011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4700
4701 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4702 struct linkage name twice.
4703
1dae3efc
TT
47042011-03-31 Tom Tromey <tromey@redhat.com>
4705
4706 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4707 missing ">" to message.
4708
f4f7ab05
TT
47092011-03-31 Tom Tromey <tromey@redhat.com>
4710
4711 * varobj.c (instantiate_pretty_printer): Remove duplicate
4712 'return'.
4713
fcf250e2
UW
47142011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4715
4716 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4717 if neither saved value nor register available (e.g. signal frame).
4718
ee6436e3
TJB
47192011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4720
4721 * macroexp.c (expand): Avoid uninitialized variable
4722 compiler warning.
4723
423f41a5
TJB
47242011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4725
4726 * breakpoint.c (break_range_command): Fix typo in comment.
4727
f1310107
TJB
47282011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4729 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4730
4731 Implement support for PowerPC BookE ranged breakpoints.
4732 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4733 * breakpoint.h (struct bp_target_info) <length>: New member
4734 variable.
4735 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4736 instead of struct breakpoint as argument, and also add ASPACE
4737 and BP_ADDR arguments. Update all callers.
4738 (struct breakpoint_ops) <print_one_detail>: New method.
4739 (struct breakpoint) <addr_string_range_end>: New member variable.
4740 * breakpoint.c (breakpoint_location_address_match): Add function
4741 prototype.
4742 (insert_bp_location): Set bl->target_info.length.
4743 (breakpoint_here_p): Call breakpoint_location_address_match.
4744 (moribund_breakpoint_here_p): Likewise.
4745 (regular_breakpoint_inserted_here_p): Likewise.
4746 (breakpoint_thread_match): Likewise.
4747 (bpstat_stop_status): Likewise.
4748 (bpstat_check_location): Move call to
4749 breakpoint_ops.breakpoint_hit to the top.
4750 (print_one_breakpoint_location): Call
4751 breakpoint_ops.print_one_detail if available.
4752 (breakpoint_address_match_range): New function.
4753 (breakpoint_location_address_match): Likewise.
4754 (breakpoint_locations_match): Compare the length field of the
4755 locations too.
4756 (hw_breakpoint_used_count): Count resources used by all locations
4757 in a breakpoint, and use breakpoint_ops.resources_needed if
4758 available.
4759 (breakpoint_hit_ranged_breakpoint): New function.
4760 (resources_needed_ranged_breakpoint): Likewise.
4761 (print_it_ranged_breakpoint): Likewise.
4762 (print_one_ranged_breakpoint): Likewise.
4763 (print_one_detail_ranged_breakpoint): Likewise.
4764 (print_mention_ranged_breakpoint): Likewise.
4765 (print_recreate_ranged_breakpoint): Likewise.
4766 (ranged_breakpoint_ops): New structure.
4767 (find_breakpoint_range_end): New function.
4768 (break_range_command): Likewise.
4769 (delete_breakpoint): Free addr_string_range_end.
4770 (update_breakpoint_locations): Add SALS_END argument. Update
4771 all callers. Calculate breakpoint length if a non-zero SALS_END
4772 is given. Call breakpoint_locations_match instead of
4773 breakpoint_address_match.
4774 (reset_breakpoint): Find SaL of the end of the range if B is a
4775 ranged breakpoint.
4776 (_initialize_breakpoint): Register break-range command.
4777 * defs.h (print_core_address): Add function prototype.
4778 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4779 function.
4780 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4781 (ppc_linux_remove_hw_breakpoint): Likewise.
4782 (_initialize_ppc_linux_nat): Initialize
4783 to_ranged_break_num_registers.
4784 * target.c (update_current_target): Add comment about
4785 to_ranged_break_num_registers.
4786 (target_ranged_break_num_registers): New function.
4787 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4788 New method.
4789 (target_ranged_break_num_registers): Add function prototype.
4790 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4791 * utils.c (print_core_address): ... here.
4792
02d20e4a
UW
47932011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4794
4795 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4796 variable compiler warning.
4797
ef23e705
TJB
47982011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4799
4800 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4801 code from here ...
4802 (re_set_breakpoint): ... to here ...
4803 (addr_string_to_sals): ... and here.
4804
311e6ab3
PM
48052011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4806
4807 * Makefile.in (SFILES): Add missing C sources.
4808 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4809 Add missing headers.
4810
acd1d99c
MF
48112011-03-29 Mike Frysinger <vapier@gentoo.org>
4812
4813 * .gitignore: New file.
4814
66ee2731
MF
48152011-03-29 Mike Frysinger <vapier@gentoo.org>
4816
4817 * NEWS: Mention new cfi device simulation.
4818
53832f31
TT
48192011-03-29 Tom Tromey <tromey@redhat.com>
4820
4821 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4822 otherwise anonymous types.
4823 (dwarf2_name): Likewise.
4824 * valops.c (value_struct_elt_for_reference): Refine artificial
4825 type logic. Call error if j==-1.
4826
09b58708
JK
48272011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4828
4829 Fix false GCC warning.
4830 * infcall.c (find_function_addr): Initialize funaddr.
4831
6023c606
PM
48322011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4833
4834 Fix mingw compilation with --enable-targets=all.
4835 * remote-mips.c (gdb_usleep.h): Include header.
4836 (mips_enter_debug): Use gdb_usleep instead of sleep.
4837
0e30163f
JK
48382011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4839
4840 Support resolution of STT_GNU_IFUNC via breakpoints.
4841 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4842 bp_gnu_ifunc_resolver_return.
4843 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4844 the loop. Support bp_gnu_ifunc_resolver and
4845 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4846 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4847 breakpoints.
4848 (bptype_string, print_one_breakpoint_location): Support
4849 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4850 (user_settable_breakpoint): Return true also for
4851 bp_gnu_ifunc_resolver.
4852 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4853 bp_gnu_ifunc_resolver_return.
4854 (set_breakpoint_location_function): New parameter explicit_loc,
4855 describe it. Call find_pc_partial_function_gnu_ifunc with new
4856 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4857 EXPLICIT_LOC is not set.
4858 (set_raw_breakpoint): Set EXPLICIT_LOC for
4859 set_breakpoint_location_function.
4860 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4861 set_breakpoint_location_function.
4862 (mention): Support bp_gnu_ifunc_resolver and
4863 bp_gnu_ifunc_resolver_return.
4864 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4865 set_breakpoint_location_function.
4866 (update_breakpoint_locations): Remove static.
4867 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4868 bp_gnu_ifunc_resolver_return.
4869 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4870 bp_gnu_ifunc_resolver_return.
4871 (update_breakpoint_locations): New declaration.
4872 * elfread.c: Include gdbthread.h and regcache.h.
4873 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4874 functions.
4875 (elf_gnu_ifunc_fns): Install them.
4876 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4877 (stub_gnu_ifunc_resolver_return_stop): New functions.
4878 (stub_gnu_ifunc_fns): Install them.
4879 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4880 and gnu_ifunc_resolver_return_stop.
4881 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4882
07be84bf
JK
48832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 STT_GNU_IFUNC reader implementation.
4886 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4887 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4888 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4889 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4890 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4891 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4892 (elf_gnu_ifunc_resolve_addr): New.
4893 (elf_symfile_read): Call elf_rel_plt_read.
4894 (elf_gnu_ifunc_fns): New.
4895 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4896 Install elf_gnu_ifunc_fns.
4897 * infcall.c (find_function_return_type): New function.
4898 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4899 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4900 (stub_gnu_ifunc_resolve_name): New functions.
4901 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4902 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4903 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4904
300f8e10
JK
49052011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 Code cleanup for later STT_GNU_IFUNC support.
4908 * infcall.c (find_function_addr): Remove variable code, use explicit
4909 dereferences for it. Move VALUE_TYPE initialization later.
4910
11c81455
JK
49112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4914 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4915 (clear_pc_function_cache): Clear it.
4916 (find_pc_partial_function): Rename to ...
4917 (find_pc_partial_function_gnu_ifunc): ... this function. New
4918 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4919 (find_pc_partial_function): New wrapper for this function.
4920 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4921
0875794a
JK
49222011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4923
4924 GDB internal type support for STT_GNU_IFUNC.
4925 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4926 (elf_symtab_read): Set mst_text_gnu_ifunc for
4927 BSF_GNU_INDIRECT_FUNCTION.
4928 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4929 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4930 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4931 nodebug_got_plt_symbol.
4932 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4933 (TYPE_GNU_IFUNC): New.
4934 (struct main_type): New field flag_gnu_ifunc.
4935 (struct builtin_type): New field builtin_func_func.
4936 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4937 nodebug_got_plt_symbol.
4938 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4939 (in_gnu_ifunc_stub): New.
4940 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4941 mst_text_gnu_ifunc.
4942 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4943 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4944 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4945 in_gnu_ifunc_stub.
4946 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4947 * symtab.c (search_symbols): Likewise.
4948 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4949 and mst_slot_got_plt.
4950 (in_gnu_ifunc_stub): New declaration.
4951
d0fb5eae
JK
49522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4953
4954 Support a ring of related breakpoints.
4955 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4956 other functions, add gdb_assert.
4957 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4958 watchpoint_del_at_next_stop.
4959 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4960 (bpstat_stop_status): Handle ring in related_breakpoint.
4961 (set_raw_breakpoint_without_location): Initialize ring in
4962 related_breakpoint.
4963 (delete_breakpoint): Handle ring in related_breakpoint, use
4964 watchpoint_del_at_next_stop.
4965 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4966
9cded63f
TT
49672011-03-28 Tom Tromey <tromey@redhat.com>
4968
4969 PR symtab/12441:
4970 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4971 with `language_minimal'.
4972
467d42c4
UW
49732011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4974
4975 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4976 instead of checking for STT_ARM_TFUNC symbol type.
4977
62853458
TT
49782011-03-25 Tom Tromey <tromey@redhat.com>
4979
4980 * linespec.c (symbol_found): Restore line-based result for
4981 non-LOC_LABEL symbols.
4982
a7417d46
KT
49832011-03-25 Kai Tietz <ktietz@redhat.com>
4984
4985 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4986 instead of strcmp for comparison.
4987 (tui_source_is_displayed): Likewise.
4988 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4989
55f1336d
TT
49902011-03-24 Mark Wielaard <mjw@redhat.com>
4991
f33edef8
PP
4992 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4993 complaint.
4994 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4995 (find_partial_die_in_comp_unit): Likewise in comment.
4996 (read_attribute_value): Likewise.
4997 (lookup_die_type): Likewise.
4998 (dwarf_form_name): Likewise.
4999 (dump_die_shallow): Likewise.
5000 (follow_die_ref_or_sig): Likewise.
55f1336d 5001
9ef07c8c
TT
50022011-03-24 Tom Tromey <tromey@redhat.com>
5003
5004 PR breakpoints/11816:
5005 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5006 (decode_compound): Update.
5007 (find_function_symbol): New function.
5008 (decode_dollar): Update.
5009 (decode_label): Add 'function_symbol' parameter. Handle
5010 function-relative labels.
5011 (decode_variable): Update.
5012 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5013 not its line. Set `special_display' and canonical name for
5014 labels.
5015
56435ebe
TT
50162011-03-24 Tom Tromey <tromey@redhat.com>
5017
5018 * linespec.h (struct linespec_result) <special_display>: New
5019 field.
5020 * breakpoint.h (struct breakpoint) <display_canonical>: New
5021 field.
5022 * breakpoint.c (print_breakpoint_location): Respect
5023 display_canonical.
5024 (create_breakpoint_sal): Add 'display_canonical' parameter.
5025 (create_breakpoints_sal): Update.
5026 (create_breakpoint): Update.
5027
7efd8fc2
TT
50282011-03-24 Tom Tromey <tromey@redhat.com>
5029
5030 * symtab.c (decode_line_spec): Update.
5031 * linespec.c (build_canonical_line_spec): Change type of
5032 'canonical'.
5033 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5034 (find_method, decode_all_digits, decode_dollar, decode_label)
5035 (symbol_found): Likewise.
5036 (init_linespec_result): New function.
5037 * breakpoint.c (struct captured_parse_breakpoint_args)
5038 <canonical_p>: New field, replaces addr_string_p.
5039 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5040 'addr_string'.
5041 (parse_breakpoint_sals): Likewise.
5042 (do_captured_parse_breakpoint): Update.
5043 (create_breakpoint): Use struct linespec_result.
5044 (until_break_command): Update.
5045 (breakpoint_re_set_one): Update.
5046 (decode_line_spec_1): Update.
5047 * linespec.h (struct linespec_result): New.
5048 (init_linespec_result): Declare.
5049
788c8b10
PA
50502011-03-23 Pedro Alves <pedro@codesourcery.com>
5051
5052 * regcache.c (regcache_raw_read): If the target didn't supply a
5053 given raw register, mark it as unavailable.
5054
0ba1096a
KT
50552011-03-23 Kai Tietz <ktietz@redhat.com>
5056
5057 * breakpoint.c (clear_command): Use filename_cmp
5058 instead of strcmp for comparison.
5059 * buildsym.c (watch_main_source_file_lossage): Likewise.
5060 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5061 checking just for slash.
5062 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5063 strrchr and filename_cmp instead of strcmp for filenames.
5064 (add_old_header_file): Use filename_cmp
5065 instead of strcmp for comparison.
5066 * exec.c (exec_set_section_address): Likewise.
5067 * macrotab.c (macro_lookup_inclusion): Likewise.
5068 (macro_lookup_inclusion): Likewise.
5069 * elfread.c (_initialize_elfread): Likewise.
5070 (elfstab_offset_sections): Likewise.
5071 (elfstab_offset_sections): Use lbasename instead of
5072 strrchr.
5073 * mdebugread.c (parse_partial_symbols): Likewise.
5074 (arse_partial_symbols): Use filename_(n)cmp instead of
5075 str(n)cmp for comparison.
5076 * minsyms.c (lookup_minimal_symbol): Likewise.
5077 * psymtab.c (read_psymtabs_with_filename): Likewise.
5078 * solib.c (solib_read_symbols): Likewise.
5079 (reload_shared_libraries_1): Likewise.
5080 * symmisc.c (maintenance_print_symbols): Likewise.
5081 * symfile.c (separate_debug_file_exists): Likewise.
5082 (reread_symbols): Likewise.
5083 (find_separate_debug_file_by_debuglink): Likewise.
5084 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5085 * source.c (add_path): Likewise.
5086 * symtab.c (filename_seen): Likewise.
5087 (file_matches): Likewise.
5088 (print_symbol_info): Likewise.
5089 (maybe_add_partial_symtab_filename): Likewise.
5090 (make_source_files_completion_list): Likewise.
5091 * xml-syscall.c (init_sysinfo): Likewise.
5092 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5093 IS_DIR_SEPARATOR for checking for trailing path separator.
5094
dd90784c
JK
50952011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5098 label abort_expression.
5099 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5100 DWARF_VALUE_OPTIMIZED_OUT.
5101
3167638f
JK
51022011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 Code cleanup.
5105 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5106 to linkage_name. Invert its value. Update the function comment.
5107 (c_type_print_varspec_suffix): Invert it at the caller.
5108 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5109
ce406537
PA
51102011-03-22 Pedro Alves <pedro@codesourcery.com>
5111
5112 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5113 errors when reading the `stop_pc'.
5114 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5115 get_frame_pc.
5116
da5d4055
PM
51172011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5118
5119 * NEWS: Document gdb.Write stream keyword.
5120
29e0eb9c
JK
51212011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5122
5123 Revert:
5124 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5125 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5126 (dwarf2_add_field): Fix new_field->accessibility for
5127 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5128
05775840
PM
51292011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5130
f33edef8 5131 PR python/12183
05775840
PM
5132
5133 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5134 other error classes. Do not print stack trace.
5135
a0cb7835
JK
51362011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5139 (dwarf2_add_field): Fix new_field->accessibility for
5140 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5141
d19f7eee
UW
51422011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5143
5144 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5145 encountering a load via a non-SP register.
5146
4a2fbb50
UW
51472011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5148
5149 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5150 field in returned unwinder.
5151
3489610d
JB
51522012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5153
5154 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5155
8c1a34e7
JB
51562012-03-21 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5159 of xmalloc.
5160
8fbca658
PA
51612012-03-18 Pedro Alves <pedro@codesourcery.com>
5162
5163 * frame.c (frame_unwind_register): Throw an error if unwinding the
5164 register failed.
5165 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5166 an unwind stop reason.
5167 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5168 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5169 UNWIND_UNAVAILABLE>: New.
5170 * inline-frame.c (inline_frame_unwind): Install
5171 default_frame_unwind_stop_reason.
5172 * frame-unwind.c: Include "exceptions.h".
5173 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5174 (default_frame_unwind_stop_reason): New.
5175 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5176 (default_frame_unwind_stop_reason): Declare.
5177 (struct frame_unwind) <stop_reason>: New function pointer.
5178
5179 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5180 * dwarf2-frame.c: Include exceptions.h.
5181 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5182 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5183 computing the CFA. If such an error was thrown, set
5184 unavailable_retaddr.
5185 (dwarf2_frame_unwind_stop_reason): New.
5186 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5187 unavailable.
5188 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5189 (dwarf2_signal_frame_unwind): Ditto.
5190
5191 * amd64-tdep.c: Include "exceptions.h".
5192 (struct amd64_frame_cache): New field "base_p".
5193 (amd64_init_frame_cache): Clear it.
5194 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5195 Avoid reading registers with functions that throw if the register
5196 is not necessary to compute the frame base.
5197 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5198 swallowing NOT_AVAILABLE_ERROR.
5199 (amd64_frame_unwind_stop_reason): New.
5200 (amd64_frame_this_id): Don't build a frame id if the frame base
5201 was unavailable.
5202 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5203 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5204 base_p if the frame base was computable.
5205 (amd64_sigtramp_frame_unwind_stop_reason): New.
5206 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5207 frame base was unavailable.
5208 (amd64_sigtramp_frame_unwind): Install
5209 amd64_sigtramp_frame_unwind_stop_reason.
5210 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5211 base_p if the frame base was computable.
5212 (amd64_epilogue_frame_unwind_stop_reason): New.
5213 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5214 frame base was unavailable.
5215 (amd64_epilogue_frame_unwind): Install
5216 amd64_epilogue_frame_unwind_stop_reason.
5217 * i386-tdep.c: Include "exceptions.h".
5218 (struct i386_frame_cache): New field "base_p".
5219 (i386_init_frame_cache): Clear it.
5220 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5221 Avoid reading registers with functions that throw if the register
5222 is not necessary to compute the frame base.
5223 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5224 swallowing NOT_AVAILABLE_ERROR.
5225 (i386_frame_unwind_stop_reason): New.
5226 (i386_frame_this_id): Don't build a frame id if the frame base was
5227 unavailable.
5228 (i386_frame_prev_register): Handle unavailable SP.
5229 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5230 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5231 base_p if the frame base was computable.
5232 (i386_epilogue_frame_unwind_stop_reason): New.
5233 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5234 base was unavailable.
5235 (i386_epilogue_frame_unwind): Install
5236 i386_epilogue_frame_unwind_stop_reason.
5237 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5238 base_p if the frame base was computable.
5239 (i386_sigtramp_frame_unwind_stop_reason): New.
5240 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5241 base was unavailable.
5242 (i386_sigtramp_frame_unwind): Install
5243 i386_sigtramp_frame_unwind_stop_reason.
5244 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5245 type's size, not the register's.
5246 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5247
5248 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5249 default_frame_unwind_stop_reason.
5250 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5251 (alpha_heuristic_frame_unwind): Ditto.
5252 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5253 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5254 * avr-tdep.c (avr_frame_unwind): Ditto.
5255 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5256 Ditto.
5257 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5258 * frv-tdep.c (frv_frame_unwind): Ditto.
5259 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5260 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5261 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5262 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5263 (hppa_stub_frame_unwind): Ditto.
5264 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5265 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5266 (ia64_libunwind_frame_unwind)
5267 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5268 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5269 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5270 * m32c-tdep.c (m32c_unwind): Ditto.
5271 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5272 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5273 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5274 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5275 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5276 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5277 * mep-tdep.c (mep_frame_unwind): Ditto.
5278 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5279 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5280 (mips_stub_frame_unwind): Ditto.
5281 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5282 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5283 * mt-tdep.c (mt_frame_unwind): Ditto.
5284 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5285 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5286 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5287 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5288 (s390_sigtramp_frame_unwind): Ditto.
5289 * score-tdep.c (score_prologue_unwind): Ditto.
5290 * sh-tdep.c (sh_frame_unwind): Ditto.
5291 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5292 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5293 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5294 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5295 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5296 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5297 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5298 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5299 (sparc64obsd_trapframe_unwind): Ditto.
5300 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5301 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5302 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5303 * v850-tdep.c (v850_frame_unwind): Ditto.
5304 * vax-tdep.c (vax_frame_unwind): Ditto.
5305 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5306 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5307 * xtensa-tdep.c (xtensa_unwind): Ditto.
5308
f23d1b92
PA
53092011-03-18 Pedro Alves <pedro@codesourcery.com>
5310
5311 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5312 there's always a frame. Use get_frame_pc_if_available instead of
5313 get_frame_pc, and if there's no PC available, don't look up a
5314 symtab.
5315
1d4f5741
PA
53162011-03-18 Pedro Alves <pedro@codesourcery.com>
5317
5318 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5319 unavailable PC.
5320
dba09041
PA
53212011-03-18 Pedro Alves <pedro@codesourcery.com>
5322
5323 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5324 gracefully.
5325
9a26e44c
PA
53262011-03-18 Pedro Alves <pedro@codesourcery.com>
5327
5328 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5329 * frame.c (frame_unwind_caller_pc_if_available): New.
5330 * stack.c (frame_info): Handle unavailable PC.
5331
53322011-03-18 Pedro Alves <pedro@codesourcery.com>
5333
5334 * frame.c (frame_unwind_pc): Rename to ...
5335 (frame_unwind_pc_if_available): ... this. New `pc' output
5336 parameter. Change return type to int. Gracefully handle
5337 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5338 happened, or 1 otherwise.
5339 (frame_unwind_pc): Reimplement on top of
5340 frame_unwind_pc_if_available.
5341 (get_frame_func): Rename to ...
5342 (get_frame_func_if_available): New `pc' output parameter. Change
5343 return type to int. Gracefully handle the PC not being available.
5344 (get_frame_func): Reimplement on top of
5345 get_frame_func_if_available.
5346 (select_frame): Handle the PC being unavailable.
5347 (get_prev_frame): Handle the PC being unavailable.
5348 (get_frame_pc_if_available): New.
5349 (get_frame_address_in_block_if_available): New.
5350 (find_frame_sal): Handle the frame PC not being available.
5351 * frame.h (get_frame_pc_if_available): Declare.
5352 (get_frame_address_in_block_if_available): Declare.
5353 (get_frame_func_if_available): Declare.
5354 * stack.c (print_frame_info): Handle the PC being unavailable.
5355 (find_frame_funname): Ditto.
5356 (print_frame): Handle the PC being unavailable.
5357 (get_frame_language): Ditto.
5358 * blockframe.c (get_frame_block): Ditto.
5359 * macroscope.c (default_macro_scope): Ditto.
5360 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5361
53622011-03-18 Pedro Alves <pedro@codesourcery.com>
5363
5364 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5365 NOT_AVAILABLE_ERROR when evaluating the location expression.
5366
53672011-03-18 Pedro Alves <pedro@codesourcery.com>
5368
5369 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5370 returning that the register piece is unavailable/optimized out.
5371 (write_pieced_value): Handle get_frame_register_bytes returning
5372 that the register piece is unavailable/optimized out when doing a
5373 read-modify write of a bitfield.
5374 * findvar.c (value_from_register): Handle get_frame_register_bytes
5375 returning that the register piece is unavailable/optimized out.
5376 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5377 and `unavailablep'. Throw error on bad debug info. Use
5378 frame_register instead of frame_register_read, to fill in the new
5379 arguments.
5380 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5381 and `unavailablep'.
5382 * valops.c: (value_assign): Adjust, and handle
5383 get_frame_register_bytes failing.
5384 * spu-tdep.c: Include exceptions.h.
5385 (spu_software_single_step): Adjust, and handle
5386 get_frame_register_bytes failing.
5387 (spu_get_longjmp_target): Ditto.
5388 * gdbarch.sh (register_to_value): Change to return int. New
5389 parameters `optimizedp' and `unavailablep'.
5390 * gdbarch.h, gdbarch.c: Regenerate.
5391 * i386-tdep.c (i386_register_to_value): Adjust to new
5392 gdbarch_register_to_value interface.
5393 * i387-tdep.c (i387_register_to_value): Ditto.
5394 * i387-tdep.h (i387_register_to_value): Ditto.
5395 * alpha-tdep.c (alpha_register_to_value): Ditto.
5396 * ia64-tdep.c (ia64_register_to_value): Ditto.
5397 * m68k-tdep.c (m68k_register_to_value): Ditto.
5398 * mips-tdep.c (mips_register_to_value): Ditto.
5399 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5400
0fdb4f18
PA
54012011-03-18 Pedro Alves <pedro@codesourcery.com>
5402
5403 * findvar.c (value_of_register): Mark the value as unavailable, if
5404 the register is unavailable.
5405 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5406 (frame_register): New `unavailablep' parameter.
5407 (frame_register_read): Update comment.
5408 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5409 Set it if the register is unavailable. If the register is
5410 unavailable, clear the output buffer.
5411 (frame_register): New `unavailablep' parameter. Pass it down.
5412 (frame_unwind_register): Adjust.
5413 (put_frame_register): Adjust.
5414 (frame_register_read): Adjust. Also return false if the register
5415 is not available.
5416 (frame_register_unwind_location): Adjust.
5417 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5418 is unavailable, mark the value accordingly.
5419 * stack.c (frame_info): Handle unavailable registers.
5420
e69aa73e
PA
54212011-03-18 Pedro Alves <pedro@codesourcery.com>
5422
5423 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5424 simplify, using regcache_cooked_read.
5425
05d1431c
PA
54262011-03-18 Pedro Alves <pedro@codesourcery.com>
5427
5428 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5429 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5430 (regcache_raw_read_unsigned, regcache_raw_read_part)
5431 (regcache_cooked_read, regcache_cooked_read_signed)
5432 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5433 (regcache_cooked_read_ftype): Change return to enum
5434 register_status.
5435 * regcache.c: Include exceptions.h
5436 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5437 (do_cooked_read): Change return to enum register_status. Always
5438 forward to regcache_cooked_read.
5439 (regcache_raw_read): Change return to enum register_status. If
5440 the register is not REG_VALID, memset the buffer. Return the
5441 register's status.
5442 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5443 return the register's status.
5444 (regcache_raw_read_unsigned): Ditto.
5445 (regcache_cooked_read): Change return to enum register_status.
5446 Assert that with read-only regcaches, the register's status must
5447 be known. If the regcache is read-only, and the register is not
5448 REG_VALID, memset the buffer. Return the register's status.
5449 (regcache_cooked_read_signed): Change return to enum
5450 register_status. Handle non-REG_VALID registers and return the
5451 register's status.
5452 (regcache_cooked_read_unsigned): Change return to enum
5453 register_status. Handle non-REG_VALID registers and return the
5454 register's status.
5455 (regcache_xfer_part, regcache_raw_read_part)
5456 (regcache_cooked_read_part): Change return to enum
5457 register_status. Return the register's status.
5458 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5459 unavailable.
5460 (regcache_dump): Handle unavailable cooked registers.
5461 * frame.c (do_frame_register_read): Adjust interface to match
5462 regcache_cooked_read_ftype.
5463 * gdbarch.sh (pseudo_register_read): Change return to enum
5464 register_status.
5465 * gdbarch.h, gdbarch.c: Regenerate.
5466
5467 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5468 register_status.
5469 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5470 register_status. If reading a raw register indicates the raw
5471 register is not valid, return the raw register's status,
5472 otherwise, return REG_VALID.
5473 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5474 register_status. Handle non-REG_VALID raw registers and return
5475 the register's status.
5476 * arm-tdep.c (arm_neon_quad_read)
5477 (arm_pseudo_read): Change return to enum register_status. Handle
5478 non-REG_VALID raw registers and return the register's status.
5479 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5480 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5481 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5482 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5483 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5484 register_status.
5485 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5486 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5487 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5488 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5489 (m32c_pseudo_register_read): Change return to enum
5490 register_status. Adjust.
5491 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5492 enum register_status. Return the register's status.
5493 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5494 register_status. Return the register's status.
5495 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5496 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5497 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5498 * rs6000-tdep.c (move_ev_register_func): New typedef.
5499 (e500_move_ev_register): Use it. Change return to enum
5500 register_status. Return the register's status.
5501 (do_regcache_raw_read): New function.
5502 (do_regcache_raw_write): New function.
5503 (e500_pseudo_register_read): Change return to enum
5504 register_status. Return the register's status. Use
5505 do_regcache_raw_read.
5506 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5507 (dfp_pseudo_register_read): Change return to enum register_status.
5508 Return the register's status.
5509 (vsx_pseudo_register_read): Ditto.
5510 (efpr_pseudo_register_read): Ditto.
5511 (rs6000_pseudo_register_read): Ditto.
5512 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5513 register_status. Return the register's status.
5514 * sh64-tdep.c (pseudo_register_read_portions): New function.
5515 (sh64_pseudo_register_read): Change return to enum
5516 register_status. Use pseudo_register_read_portions. Return the
5517 register's status.
5518 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5519 register_status. Return the register's status.
5520 * sh-tdep.c (pseudo_register_read_portions): New function.
5521 (sh_pseudo_register_read): Change return to enum register_status.
5522 Use pseudo_register_read_portions. Return the register's status.
5523 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5524 enum register_status. Return the register's status.
5525 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5526 * spu-tdep.c (spu_pseudo_register_read_spu)
5527 (spu_pseudo_register_read): Ditto.
5528 * xtensa-tdep.c (xtensa_register_read_masked)
5529 (xtensa_pseudo_register_read): Ditto.
5530 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5531
e10abd8f
PM
55322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5533
5534 * python/py-value.c (valpy_getitem): Fix formatting of error function
5535 call.
5536
7ea6d463
PM
55372011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5538
5539 ARI fixes: Add missing internationalization markups throughout
5540 C source files.
5541 * darwin-nat-info.c: Ditto.
5542 * record.c: Ditto.
5543 * remote.c: Ditto.
5544 * mi/mi-main.c: Ditto.
5545
001083c6
PM
55462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5547
5548 ARI fixes: Add missing internationalization markups throughout
5549 yacc files.
5550 * c-exp.y: Ditto.
5551 * cp-name-parser.y: Ditto.
5552 * f-exp.y: Ditto.
5553 * m2-exp.y: Ditto.
5554 * objc-exp.y: Ditto.
5555 * p-exp.y: Ditto.
5556
4f1cdeec
PM
55572011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5558
5559 ARI fixes: Messages should have no trailing new lines.
5560 * darwin-nat.c (mach_check_error): Remove trailing new line from
5561 warning function call message.
5562 * record.c (bfdcore_read): Idem for error call.
5563
28e698f1
PM
55642011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5565
5566 * common/signals.c (target_signal_from_host): Add _ markup to error
5567 function call message.
5568 (target_signal_to_host): Add _ markup and remove trailing new line
5569 from warning call message.
5570 (target_signal_from_command): Add _ markup to error function call
5571 message.
5572
99c3dc11
PM
55732011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5574
f33edef8 5575 PR python/12149
99c3dc11
PM
5576
5577 * python/python.c (gdbpy_write): Accept a stream argument and
5578 operate to the appropriate stream.
5579 (gdbpy_flush): Likewise.
5580 (_initialize_python): Add stream constants.
5581 (finish_python_initialization): Add GdbOutputErrorFile class.
5582
c20800be
KY
55832011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5584
5585 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5586
f4a1794a
KY
55872011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5588
5589 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
5590 to store_signed_integer. Add debug message when relocating CALL
5591 instructions. Fix formatting of debug message.
5592 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 5593
d4862372
JB
55942011-03-17 Joel Brobecker <brobecker@gnat.com>
5595
5596 * target.h (struct target_ops): Remove to_lookup_symbol field.
5597 (target_lookup_symbol): Delete macro.
5598 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5599 (update_current_target, setup_target_debug): Remove handling
5600 of to_lookup_symbol target_ops field.
5601 * ada-tasks.c (get_known_tasks_addr): Remove use of
5602 target_lookup_symbol.
5603 * coffread.c (coff_symtab_read): Likewise.
5604 * dbxread.c (read_dbx_symtab): Ditto.
5605
d645e32e
JB
56062011-03-17 Joel Brobecker <brobecker@gnat.com>
5607
5608 PR gdb/12116:
5609 * configure.ac: Add getthrds declaration check.
5610 * configure, config.in: Regenerate.
5611 * aix-thread.c (getthrds): Declare only if not already declared
5612 in procinfo.h. More declaration out of get_signaled_thread to
5613 global scope.
5614
29703da4
PM
56152011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5616
5617 * python/py-symtab.c: Populate symtab_object_methods,
5618 sal_object_methods.
5619 (stpy_is_valid): New function.
5620 (salpy_is_valid): Ditto.
5621 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5622 (sympy_is_valid): New function.
5623 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5624 (objfpy_is_valid): New function.
5625 * python/py-inferior.c: Populate inferior_object_methods.
5626 (infpy_is_valid): New function.
5627 * python/py-infthread.c: Populate thread_object_methods.
5628 (thpy_is_valid): New function.
5629 * python/py-block.c: Declare block_object_methods. Populate. Declare
5630 block_iterator_object_methods. Populate.
5631 (blpy_is_valid): New function.
5632 (blpy_iter_is_valid): Ditto.
5633
c00f8484
KS
56342011-03-16 Keith Seitz <keiths@redhat.com>
5635
5636 * linespec.c (find_methods): Canonicalize NAME before looking
5637 up the symbol.
5638 (name_end): New function.
5639 (keep_name_info): New function.
5640 (decode_line_1): Use keep_name_info.
5641 (decode_compound): Likewise.
5642 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5643 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5644
5645 PR c++/12273
5646 * linespec.c (locate_first_half): Keep overload information, too.
5647 (decode_compound): Use a string to represent break characters
5648 to escape the loop.
5649 If P points to a break character, do not increment it.
5650 For C++ and Java, keep overload information and relevant keywords.
5651 If we cannot find a symbol, search the minimal symbols.
5652
5653 PR c++/11734
5654 * linespec.c (decode_compound): Rename SAVED_ARG to
5655 THE_REAL_SAVED_ARG.
5656 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5657 single-quotes.
5658 Pass a valid block to lookup_symbol.
5659 (lookup_prefix_sym): Likewise.
5660 (find_method): Construct search name based on SYM_CLASS instead
5661 of SAVED_ARG.
5662 * psymtab.c (lookup_partial_symbol): Add language parameter.
5663 (lookup_symbol_aux_psymtabs): Likewise.
5664 Don't assume that the psymtab we found was the right one. Search
5665 for the desired symbol in the symtab to be certain.
5666 (psymtab_search_name): New function.
5667 (lookup_partial_symbol): Use psymtab_search_name.
5668 Add language parameter.
5669 (read_symtabs_for_function): Add language parameter and pass to
5670 lookup_partial_symbol.
5671 (find_symbol_file_from_partial): Likewise.
5672
c91513d8
PP
56732011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5674
5675 PR gdb/12528
5676 * dwarf2read.c (noop_record_line): New function.
5677 (dwarf_decode_lines): Ignore line tables for GCd functions.
5678
b37520b6
PM
56792011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5680
5681 Fix ARI warnings about new lines at the end of messages, which
5682 are unneeded as there is a new line added at the end of the message
5683 automatically.
5684 * darwin-nat.c (darwin_stop_inferior): Ditto.
5685 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5686 * dfp.c (decimal_to_number): Ditto.
5687 * exec.c (print_section_info): Ditto.
5688 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5689 * osdata.c (get_osdata): Ditto.
5690 * record.c (bfdcore_write): Ditto.
5691 * remote-mips.c (mips_readchar): Ditto.
5692 * remote.c (read_ptid): Ditto.
5693 * ser-mingw.c (ser_windows_raw): Ditto.
5694 * tracepoint.c (add_local_symbols): Ditto.
5695 * windows-nat.c (fake_create_process): Ditto.
5696
b08ee6a2
TT
56972011-03-16 Tom Tromey <tromey@redhat.com>
5698
5699 * tracepoint.c (stop_tracing): Don't declare.
5700 * event-top.c (after_char_processing_hook): Add `(void)'.
5701
9a6f1302
PM
57022011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5703
5704 * NEWS: Add Parameter sub-classing description.
5705
7ceb86b1
KT
57062011-03-16 Kai Tietz <ktietz@redhat.com>
5707
5708 * MAINTAINERS: Update my e-mail address.
5709
efeff6cf
AT
57102011-03-15 Andreas Tobler <andreast@fgznet.ch>
5711
5712 * MAINTAINERS: Add myself for write after approval privileges.
5713
681c238c
MS
57142011-03-15 Michael Snyder <msnyder@vmware.com>
5715
f3df5b08
MS
5716 * frame.c (find_frame_sal): Assert sym is not null.
5717
13f6513c
MS
5718 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5719
50412521
MS
5720 * objc-lang.c (selectors_info): Check strchr for null result.
5721
681c238c
MS
5722 * stabsread.c (define_symbol): Guard against bad stabstring input.
5723
6ced1581
PM
57242011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5725
5726 Remove trailing spaces and tabulations from pascal language
5727 support sources.
5728 p-exp.y: Ditto.
5729 p-lang.c: Ditto.
5730 p-lang.h: Ditto.
5731 p-valprint.c: Ditto.
5732
9373cf26
JK
57332011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5734
5735 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5736 than LOW. Comment it.
5737 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5738 HIGHPC not strictly higher than LOWPC.
5739
9a1edae6
PM
57402011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5741
5742 Fix formatting of function declarations returning a pointer in
5743 previous commit.
5744 * varobj.c (varobj_add_child): Ditto.
5745 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5746 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5747
24e9cda0
UW
57482011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5749
5750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5751 for the "generic" vector ABI used with GCC 4.3 and later.
5752 (ppc64_sysv_abi_return_value): Likewise.
5753
57542011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
5755
5756 * infcall.c (call_function_by_hand): Function return value is
5757 always a non_lval, even when using struct_return.
5758
c9174737
PA
57592011-03-15 Pedro Alves <pedro@codesourcery.com>
5760
5761 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5762 (map_display_numbers): New.
5763 (do_delete_display): New.
5764 (undisplay_command): Use map_display_numbers.
5765 (do_enable_disable_display): New.
5766 (enable_disable_display_command): New function.
5767 (enable_display): Delete.
5768 (enable_display_command): New.
5769 (disable_display_command): Reimplement.
5770 (_initialize_printcmd): Adjust "enable display" command to use
5771 `enable_display_command' as callback.
5772
350c6c65
PM
57732011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5774
5775 * NEWS: Add Python breakpoint 'stop' operation.
5776
824446ad
PM
57772011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5778
5779 * NEWS: Delete duplicate entry. Fix typo.
5780
2021ad3a
PM
57812011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5782
5783 Fix ARI warning about function names in first column.
5784 Put prototype declaration on same line as return type.
5785 * objc-exp.y: Ditto.
5786 * p-exp.y: Ditto.
5787 * python/py-stopevent.h: Ditto.
5788 For long function names, split parameters to
5789 allow function name on same line as return type.
5790 * solib-pa64.c: Ditto.
5791 * varobj.c: Ditto.
5792 * varobj.h: Ditto.
5793 For long function declaration, use single line.
5794 * hppa-tdep.h: Ditto.
5795 * inferior.h: Ditto.
5796
7371cf6d
PM
57972011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5798
5799 * python/python.h: Declare gdbpy_should_stop and
5800 gdbpy_breakpoint_has_py_cond.
5801 * python/python.c: Add python.h to includes. Remove python.h from
5802 HAVE_PYTHON definition
5803 (gdbpy_should_stop): New dummy function.
5804 (gdbpy_breakpoint_has_py_cond): New dummy function.
5805 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5806 sub-classing capabilities.
5807 (gdbpy_should_stop): New function.
5808 (gdbpy_breakpoint_has_py_cond): New function.
5809 (local_setattro): New function.
5810 * breakpoint.c (condition_command): Add check for Python 'stop'
5811 operation.
5812 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5813 operation function as part of stop/continue tests.
5814
37b50a69
TT
58152011-03-14 Tom Tromey <tromey@redhat.com>
5816
5817 PR gdb/12576:
5818 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5819 (needs_frame_dwarf_call): Likewise.
5820
eeae04df
PM
58212011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5822
5823 Fix ARI warning about functions without parameters that do not
5824 use (void).
5825 * breakpoint.c (all_tracepoints): Replace () by (void).
5826 * f-exp.y (match_string_literal): Ditto.
5827 (yylex): Ditto.
5828 * m2-exp.y (yylex): Ditto.
5829 * mep-tdep.c (current_me_module): Ditto.
5830 (current_options): Ditto.
5831 (current_cop_data_bus_width): Ditto.
5832 (current_cr_names): Ditto.
5833 (current_cr_is_float): Ditto.
5834 (current_ccr_names): Ditto.
5835 * objc-exp.y (yylex): Ditto.
5836 * p-exp.y (yylex): Ditto.
5837 * remote.c (send_interrupt_sequence): Ditto.
5838 * tracepoint.c (current_trace_status): Ditto.
5839 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5840 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5841
6dc3565d
MS
58422011-03-11 Michael Snyder <msnyder@vmware.com>
5843
1427fe5e
MS
5844 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5845 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5846 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5847 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5848 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5849
60bc018f
MS
5850 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5851 (delete_async_event_handler): Ditto.
5852
f3be5b64
MS
5853 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5854
4c2d5724
MS
5855 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5856
6dc3565d
MS
5857 * top.c (set_verbose): Assert showcmd was found.
5858
4e6ca6d5
MG
58592011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5860
5861 * xtensa-tdep.c (warning_once): Correct style issues.
5862
815a83e4
YQ
58632011-03-11 Yao Qi <yao@codesourcery.com>
5864
5865 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5866
f2eb0bc8
AS
58672011-03-11 Andreas Schwab <schwab@redhat.com>
5868
5869 * common/aclocal.m4: Remove.
5870
b801de47
MG
58712011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5872
5873 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5874 (xtensa_write_register, xtensa_read_register): Likewise.
5875 (xtensa_hextochar): Removed.
5876 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5877
dbab50de
MG
58782011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5879
5880 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 5881 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
5882 (xtensa_alloc_frame_cache): Add initialization for new fields.
5883 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5884 (warning_once): New function.
5885 (xtensa_insn_kind): New item c0opc_and.
5886 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
5887 (call0_track_op): Change arguments. New local variable litbase.
5888 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5889 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5890 in the prologue.
dbab50de 5891 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 5892 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
5893 Add the variety of updates to handle extended prologues, which now can
5894 conduct dynamic stack adjustments.
5895 (call0_frame_cache): Likewise.
5896 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5897 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5898
b2c04452
MS
58992011-03-10 Michael Snyder <msnyder@vmware.com>
5900
f8f67713
MS
5901 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5902 (cmd_qtframe): Ditto.
5903 (cmd_qtbuffer): Ditto.
5904 (cmd_bigqtbuffer): Ditto.
5905
197f0a60
TT
59062011-03-10 Tom Tromey <tromey@redhat.com>
5907
5908 * tracepoint.c (trace_actions_command): Update.
5909 * thread.c (thread_apply_command): Update.
5910 * reverse.c (delete_bookmark_command): Update.
5911 (bookmarks_info): Update.
5912 * printcmd.c (undisplay_command): Update.
5913 * memattr.c (mem_enable_command): Update.
5914 (mem_disable_command): Update.
5915 (mem_delete_command): Update.
5916 * inferior.c (detach_inferior_command): Update.
5917 (kill_inferior_command): Update.
5918 (remove_inferior_command): Update.
5919 * cli/cli-utils.h (struct get_number_or_range_state): New.
5920 (init_number_or_range): Declare.
5921 (get_number_or_range): Update.
5922 * cli/cli-utils.c (init_number_or_range): New function.
5923 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5924 static variables.
5925 (number_is_in_list): Update.
5926 * breakpoint.h (get_tracepoint_by_number): Update.
5927 * breakpoint.c (map_breakpoint_numbers): Update for change to
5928 get_number_or_range.
5929 (find_location_by_number): Use get_number, not
5930 get_number_or_range.
5931 (trace_pass_set_count): New function.
5932 (trace_pass_command): Update for change to get_number_or_range.
5933 Rework loop logic.
5934 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5935 'state' parameter.
5936
ecec24e6
PM
59372011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5938
5939 * python/py-param.c (add_setshow_generic): Add set/show callback
5940 parameters. Register Python object context.
5941 (get_show_value): New function.
5942 (get_set_value): New function.
5943 (call_doc_function): New function.
5944 (get_doc_string): Move behind get_show_value/get_set_value.
5945
6d6c6b1f
JK
59462011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5947
5948 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5949
68d6df83
MG
59502011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5951
dbab50de 5952 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
5953 (xtensa_write_register): Likewise.
5954 (xtensa_hextochar): Add comment and update to match coding conventions.
5955 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5956 (execute_l32e, execute_s32e, execute_code): Update comments.
5957 (xtensa_exception_handler_t): Update to match coding conventions.
5958 (xtensa_insn_kind): Likewise.
5959
85c9d6a6
MS
59602011-03-09 Michael Snyder <msnyder@vmware.com>
5961
5962 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5963
91495617
PA
59642011-03-09 Pedro Alves <pedro@codesourcery.com>
5965
5966 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5967
eb8c0621
TT
59682011-03-09 Tom Tromey <tromey@redhat.com>
5969
5970 * thread.c (restore_selected_frame): Handle frame_level == -1.
5971 (make_cleanup_restore_current_thread): Use
5972 get_selected_frame_if_set.
5973 * frame.h (get_selected_frame_if_set): Declare.
5974 * frame.c (get_selected_frame_if_set): New function.
5975
9f37bbcc
PA
59762011-03-09 Pedro Alves <pedro@codesourcery.com>
5977
5978 * cli/cli-cmds.c (shell_escape): Use lbasename.
5979 * coffread.c (coff_start_symtab): Constify parameter.
5980 (complete_symtab): Constify `name' parameter.
5981 (coff_symtab_read): Constify `filestring' local.
5982 (coff_getfilename): Constify return and `result' local.
5983 Use lbasename.
5984 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5985 * linux-fork.c (info_checkpoints_command): Use lbasename.
5986 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5987 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5988 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5989 * procfs.c (procfs_make_note_section): Use lbasename.
5990 * tui/tui-io.c (printable_part): Constity return and parameter.
5991 Use lbasename.
5992 (print_filename): Constify parameters, and local `s'.
5993 (tui_rl_display_match_list): Constify local `temp'.
5994
f8de3c55
JK
59952011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5996
5997 Revert:
5998 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5999 Fix DWARF-3+ DW_AT_accessibility default assumption.
6000 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6001 cu->header.version >= 3.
6002
d9837b00
YQ
60032011-03-09 Yao Qi <yao@codesourcery.com>
6004
6005 * common/Makefile.in: Remove.
6006 * common/configure: Remove.
6007 * common/configure.ac: Remove.
6008
e637a4f5
YQ
60092011-03-09 Yao Qi <yao@codesourcery.com>
6010
6011 Revert:
6012 2011-02-11 Yao Qi <yao@codesourcery.com>
6013
6014 * common/Makefile.in: Add copyright header.
6015
6016 2011-02-11 Yao Qi <yao@codesourcery.com>
6017
6018 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6019 libcommon.a.
6020 * configure.ac: Add common to sub dir.
6021 * configure: Regenerate.
6022
f976a05d
MG
60232011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6024
6025 * xtensa-tdep.c (call0_ret): New function.
6026 (xtensa_skip_prologue): Speed up analysis.
6027
57041825
MG
60282011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6029
6030 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6031 while executing MI command -data-list-changed-registers.
6032
08b9c608
MG
60332011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6034
6035 * xtensa-tdep.c (xtensa_read_register): New function.
6036 (xtensa_write_register): New function.
6037 (xtensa_find_register_by_name): New function.
6038 (xtensa_windowed_frame_cache): Update comments in type description.
6039 (xtensa_frame_cache): Likewise.
6040 (xtensa_window_interrupt_insn): New function.
6041 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6042 (xtensa_insn_kind): Add new instructions.
6043 (rwx_special_register): New function.
6044 (call0_classify_opcode): Add new instructions to the analysis.
6045 (a0_saved, a7_saved, a11_saved): New variables.
6046 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6047 (execute_l32e): New function.
6048 (execute_s32e): New function.
6049 (xtensa_exception_handler_t): New type.
6050 (execute_code): New function.
6051 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6052 analysis for Xtensa Window Exception handlers.
6053
4d1acb11
MG
60542011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6055
98689b25
MG
6056 * xtensa-tdep.c (TX_PS): New.
6057 (windowing_enabled): Update to count for Call0 ABI.
6058 (xtensa_hextochar): New.
6059 (xtensa_init_reggroups): Make algorithm generic.
6060 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6061
60622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6063
6064 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 6065
d3f323f3
MS
60662011-03-08 Michael Snyder <msnyder@vmware.com>
6067
3dcabaa8
MS
6068 * i386-tdep.c (i386_follow_jump): Check return value of
6069 target_read_memory.
6070 (i386_analyze_struct_return): Ditto.
6071 (i386_skip_probe): Ditto.
6072 (i386_match_insn): Ditto.
6073 (i386_skip_noop): Ditto.
6074 (i386_analyze_frame_setup): Ditto.
6075 (i386_analyze_register_saves): Ditto.
6076 (i386_skip_prologue): Ditto.
6077 (i386_skip_main_prologue): Ditto.
6078
13b3fd9b
MS
6079 * target.c (read_whatever_is_readable): Fix memory leak.
6080
d3f323f3
MS
6081 * i386-tdep.c (i386_process_record): Document fall through.
6082
421d5c74
JK
60832011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 Fix DWARF-3+ DW_AT_accessibility default assumption.
6086 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6087 cu->header.version >= 3.
6088
63154eca
PA
60892011-03-08 Pedro Alves <pedro@codesourcery.com>
6090
6091 * remote.c (remote_check_symbols): Skip if the target has no
6092 execution.
6093
f1a507a1
JB
60942011-03-08 Joel Brobecker <brobecker@adacore.com>
6095
6096 * target.c (read_whatever_is_readable): Reformat comment,
6097 with a minor typo fix. Minor reformatting of the code.
6098
36073a92
YQ
60992011-03-08 Yao Qi <yao@codesourcery.com>
6100
6101 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6102 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6103 Use cached result instead of calling displaced_in_arm_mode again.
6104 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6105 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6106 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6107 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6108 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6109 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6110 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6111 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6112 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6113 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6114 (arm_catch_kernel_helper_return): Likewise.
6115 * gdb/arm-tdep.h : Update function declarations.
6116
d3f323f3 61172011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 6118
e0e40094
MS
6119 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6120
0b2381f5
MS
6121 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6122
0350914a
MS
6123 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6124
69feea6f
MS
6125 * elfread.c (elf_symtab_read): Stop memory leak.
6126
e6040cbd
MS
6127 * main.c (captured_main): Fix memory leak.
6128
052874e8
AS
61292011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6130
6131 * ada-lang.c (compare_names): Call is_name_suffix with string1
6132 instead of string2.
6133
b11896a5
TT
61342011-03-07 Tom Tromey <tromey@redhat.com>
6135
6136 * xcoffread.c (xcoff_sym_fns): Update.
6137 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6138 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6139 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6140 (symbol_file_add_with_addrs_or_offsets): Likewise.
6141 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6142 * somread.c (som_sym_fns): Update.
6143 * psymtab.h (require_partial_symbols): Declare.
6144 * psymtab.c (require_partial_symbols): New function.
6145 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6146 (ALL_OBJFILE_PSYMTABS): Undef.
6147 (ALL_PSYMTABS): Move from psympriv.h.
6148 (lookup_partial_symtab, find_pc_sect_psymtab)
6149 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6150 (find_last_source_symtab_from_partial)
6151 (forget_cached_source_info_partial)
6152 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6153 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6154 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6155 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6156 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6157 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6158 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6159 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6160 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6161 psymtabs.
6162 * mipsread.c (ecoff_sym_fns): Update.
6163 * machoread.c (macho_sym_fns): Update.
6164 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6165 (read_psyms): New function.
6166 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6167 (elf_sym_fns_lazy_psyms): New global.
6168 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6169 dwarf2_build_psymtabs.
6170 * dbxread.c (aout_sym_fns): Update.
6171 * coffread.c (coff_sym_fns): Update.
6172
fda326dd
TT
61732011-03-07 Tom Tromey <tromey@redhat.com>
6174
6175 * infrun.c (print_exited_reason): Include inferior id and pid in
6176 message.
6177
aeaec162
TT
61782011-03-07 Tom Tromey <tromey@redhat.com>
6179
6180 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6181 parameter.
6182 (target_has_execution_1): Update.
6183 (target_has_execution_current): Declare.
6184 (target_has_execution): Call target_has_execution_current.
6185 (default_child_has_execution): Update.
6186 * target.c (default_child_has_execution): Add 'the_ptid'
6187 parameter.
6188 (target_has_execution_1): Likewise.
6189 (target_has_execution_current): New function.
6190 (add_target): Update.
6191 (init_dummy_target): Update.
6192 * remote-m32r-sdi.c (m32r_has_execution): New function.
6193 (init_m32r_ops): Use it.
6194 * record.c (record_core_has_execution): Now static. Add
6195 'the_ptid' parameter.
6196 * inferior.c (have_live_inferiors): Don't save current thread.
6197 Use target_has_execution_1.
6198
08e14083
YQ
61992011-03-07 Yao Qi <yao@codesourcery.com>
6200
6201 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6202
c05d19c5
JB
62032011-03-07 Joel Brobecker <brobecker@adacore.com>
6204
6205 * elfread.c (elf_symtab_read): Minor reformatting.
6206
3e6ef9e4
JB
62072011-03-07 Joel Brobecker <brobecker@adacore.com>
6208
6209 * objc-lang.c (selectors_info): Minor reformatting.
6210
dbb8534f
JB
62112011-03-07 Joel Brobecker <brobecker@adacore.com>
6212
6213 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6214
dd70cc93
JB
62152011-03-07 Joel Brobecker <brobecker@adacore.com>
6216 Michael Snyder <msnyder@vmware.com>
6217
6218 * ada-valprint.c (ada_val_print_array): Move the declaration of
6219 "byte_order" and "elttype" inside the block where these variables
6220 are actually used. Remove some special handling for the case
6221 where "elttype" and "eltlen" are null. Replace by a comment
6222 and a couple of assertion checks.
6223
b27cf2b3
MS
62242011-03-05 Michael Snyder <msnyder@vmware.com>
6225
6226 * source.c (add_path): Replace semicolon at end of block.
6227 * dwarf2expr.c (execute_stack_op): Ditto.
6228
5387a0c6
MF
62292011-03-05 Mike Frysinger <vapier@gentoo.org>
6230
6231 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6232 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6233 (bfin-*-*): Likewise.
6234
e3aa49af
MS
62352011-03-05 Michael Snyder <msnyder@vmware.com>
6236
82ae4854
MS
6237 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6238 * mdebugread.c (parse_symbol): Ditto.
6239 * parse.c (parse_exp_in_context): Ditto.
6240 * source.c (add_path): Ditto.
6241 * utils.c (gnu_debuglink_crc32): Ditto.
6242 * varobj.c (variable_language): Ditto.
6243
e3aa49af
MS
6244 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6245
154f592e
MS
62462011-03-04 Michael Snyder <msnyder@vmware.com>
6247
da3ecdc6
MS
6248 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6249
9cc89665
MS
6250 * symfile.c (simple_overlay_update): Check for null return value
6251 from lookup_minimal_symbol.
6252
154f592e
MS
6253 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6254
63ffa6ee
TJB
62552011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6256
6257 * eval.c (parse_and_eval_address_1): Remove function.
6258 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6259 instead of parse_and_eval_address_1.
6260 * value.h (parse_and_eval_address_1): Remove prototype.
6261
a17d146e
MS
62622011-03-04 Michael Snyder <msnyder@vmware.com>
6263
6264 * remote.c (putpkt_binary): Document that case stmt falls through.
6265
1a6a67de
TJB
62662011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6267
6268 * breakpointc (print_it_typical): Move NULL check from here...
6269 (print_bp_stop_message): ... to here.
6270
488919c4
MS
62712011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6272
6273 * breakpoint.c (enable_command): Use break instead of continue,
6274 and fill in a missing break.
6275 (disable_command): Ditto.
6276
1e182ce8
UW
62772011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6278
6279 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6280 (terminal_save_ours): Remove misleading comment.
6281 (inflow_inferior_data_cleanup): Free ttystate.
6282 (inflow_inferior_exit): Likewise.
6283 (copy_terminal_info): Copy ttystate.
6284
6285 * serial.c (serial_copy_tty_state): New function.
6286 * serial.h (serial_copy_tty_state): Add prototype.
6287 (struct serial_ops): Add copy_tty_state callback.
6288 * ser-base.c (ser_base_copy_tty_state): New function.
6289 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6290 * ser-go32.c (dos_copy_tty_state): New function.
6291 (dos_ops): Install copy_tty_state callback.
6292 * ser-mingw.c (_initialize_ser_windows): Likewise.
6293 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6294 * ser-unix.c (hardwire_copy_tty_state): New function.
6295 (_initialize_ser_hardwire): Install it.
6296
b2c5f112
MS
62972011-03-04 Michael Snyder <msnyder@vmware.com>
6298
2abae994
MS
6299 * breakpoint.c (create_breakpoint): Add missing break statement.
6300
7f5936f9
MS
6301 Reverting this patch:
6302 * infcall.c (call_function_by_hand): Add break statements for lint.
6303
b2c5f112
MS
6304 Reverting this patch:
6305 * cli/cli-script.c (script_from_file): Add break for lint.
6306
42b1321c
MS
63072011-03-04 Michael Snyder <msnyder@vmware.com>
6308
6309 * solib.c (reload_shared_libraries_1): Close memory leak.
6310
3e2a0cee
TT
63112011-03-03 Tom Tromey <tromey@redhat.com>
6312
6313 PR gdb/12538:
6314 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6315 DW_STRING is NULL.
6316
58397cb7
MS
63172011-03-03 Michael Snyder <msnyder@vmware.com>
6318
2e3fd767
MS
6319 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6320 fields of struct 'st' to zero.
6321
58397cb7
MS
6322 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6323 sal.pspace before calling set_current_source_symtab_and_line.
6324
ced54c8f
YQ
63252011-03-03 Yao Qi <yao@codesourcery.com>
6326
6327 * Makefile.in (configure-common): Remove. Let Makefile
6328 in dir common to rebuild itself.
6329 (common/Makefile): Likewise.
6330
3351ea09
JB
63312011-03-03 Joel Brobecker <brobecker@adacore.com>
6332
6333 * utils.c (parse_escape): Add i18n markup in error message.
6334
bf9f652a
YQ
63352011-03-03 Yao Qi <yao@codesourcery.com>
6336
6337 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6338 ARM_PC_REGNUM.
6339 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6340 (displaced_write_reg, displaced_read_reg): Likewise.
6341 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6342 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6343 (cleanup_branch): Replace magic number 14 and 15 with
6344 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6345
d42de051
MS
63462011-03-02 Michael Snyder <msnyder@vmware.com>
6347
240f9570
MS
6348 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6349
10dd8b54
MS
6350 * cli/cli-script.c (script_from_file): Add break for lint.
6351
b98bd911
MS
6352 * mdebugread.c (parse_partial_symbols): Fix indent.
6353
3494b66d
MS
6354 * target-descriptions.c (tdesc_gdb_type): No need to call
6355 xstrdup, callee saves a copy.
6356
daac021a
MS
6357 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6358
c38d16a7
MS
6359 * infcall.c (call_function_by_hand): Add break statements for lint.
6360
905b671b
MS
6361 * utils.c (parse_escape): Escape the escape char.
6362
f2eb0bc8 6363 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
6364 PyList_Append fails.
6365 (gdbpy_inferiors): Error out if build_inferior_list fails.
6366
8c6a60d1
MS
6367 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6368 a function call.
6369
d42de051
MS
6370 * record.c (record_restore): Move printf to before error return.
6371
4db71c0b
YQ
63722011-03-02 Yao Qi <yao@codesourcery.com>
6373
6374 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6375 is_thumb and insn_size.
6376 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6377 on both ARM and Thumb mode.
6378 (arm_process_displaced_insn): Set is_thumb and insn_size.
6379 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6380 (arm_displaced_step_fixup): Likewise.
6381
a9dc8dcc
MS
63822011-03-01 Michael Snyder <msnyder@vmware.com>
6383
53624a93
MS
6384 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6385
77766669
MS
6386 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6387
62d5b8da
MS
6388 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6389
5e9e105f
MS
6390 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6391
dc19db01
MS
6392 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6393 with xmalloc.
6394
5ce64950
MS
6395 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6396 which shadows function parameter.
6397
a0aa2878
MS
6398 * tracepoint.c (create_tsv_from_upload): Superfluous call
6399 to xstrdup. Callee already calls xstrdup.
6400
e325fb69
MS
6401 * linespec.c (decode_line_1): Remove unnecessary null check.
6402
21cbba77
MS
6403 * tracepoint.c (scope_info): Fix mem leak, remove underused
6404 variable.
6405
63360adc
MS
6406 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6407 superfluous null check.
6408
18ea20ac 6409 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 6410 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 6411
d014929c
MS
6412 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6413
6e9130cf
MS
6414 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6415 be null.
6416
5f01dbc0
MS
6417 * linespec.c (decode_line_1): Check for null before dereference.
6418
d684ab85
MS
6419 * reverse.c (record_restore): Move null-check to before pointer
6420 dereference.
6421
bfffb7e3
MS
6422 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6423
a9dc8dcc
MS
6424 * objc-lang.c (selectors_info): Add explanitory comment.
6425 (classes_info): Ditto.
6426
478fd957
UW
64272011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6428
6429 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6430 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6431 versions of the trampoline. Handle Thumb vs. ARM addresses.
6432 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6433 (arm_linux_init_abi): Install it.
6434 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6435 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6436
0480cefa
MS
64372011-02-28 Michael Snyder <msnyder@vmware.com>
6438
ac50ab3b
MS
6439 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6440 a little bigger, to avoid possibility of an overflow.
6441
f63fbe86
MS
6442 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6443 buffers a little bigger, to avoid possibility of an overflow.
6444
9e91a352
MS
6445 * coffread.c (coff_getfilename): Add check to avoid overflow.
6446
f2eb0bc8 6447 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
6448 avoid overflow.
6449 (classes_info): Error out on too long REGEXP.
6450
098ab512
MS
6451 * infrun.c (handle_inferior_event): Remove unused function call.
6452
bcbd1de9
MS
6453 * fork-child.c (fork_inferior): Remove ifdef'd code and
6454 unused variable.
6455
2e456570
MS
6456 * linux-thread-db.c (attach_thread): Discard unused value.
6457
14571dad
MS
6458 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6459
a9cbf802
MS
6460 * remote.c (remote_get_noisy_reply): Discard unused value.
6461 (remote_vcont_resume): Ditto.
6462 (remote_stop_ns): Ditto.
6463
5715d26e
MS
6464 * linespec.c (decode_objc): Delete unused variable.
6465
4a9bca80
MS
6466 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6467
f47fb265
MS
6468 * dwarf2read.c (add_partial_symbol): Discard unused values.
6469 (read_base_type): Delete unused variable.
6470
e81cff30
MS
6471 * dbxread.c (read_dbx_symtab): Discard unused value.
6472
262acaeb
MS
6473 * eval.c (evaluate_subexp_standard): Delete unused variable,
6474 and discard unused values.
6475
df983543
MS
6476 * infcmd.c (_initialize_infcmd): Discard unused values.
6477
89acf84d
MS
6478 * stabsread.c (rs6000_builtin_type): Missing break statement.
6479
ab8b8aca
MS
6480 * dbxread.c (process_one_symbol): Discard unused value.
6481
6b4511ab
MS
6482 * coffread.c (coff_end_symtab): Delete unused variable.
6483
e8e80198
MS
6484 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6485 (dwarf2_add_typedef): Delete unused variable.
6486 (read_namespace): Ditto.
6487 (dwarf_decode_macros): Ditto.
6488
976aa66e
MS
6489 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6490
5b92b49f
MS
6491 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6492
91e8df85
MS
6493 * p-valprint.c (pascal_val_print): Discard unused value.
6494
899500d6
MS
6495 * utils.c (nquery): Call va_end before return;
6496 (yquery): Ditto.
6497 (query): Ditto.
6498
0480cefa
MS
6499 * proc-service.c (ps_plog): Call va_end before return.
6500
fb6a3ed3
TT
65012011-02-28 Tom Tromey <tromey@redhat.com>
6502
6503 * python/python.c (gdbpy_value_cst): New global.
6504 (_initialize_python): Initialize it.
6505 * python/python-internal.h (gdbpy_value_cst): Declare.
6506 * python/py-value.c (convert_value_from_python): Use
6507 gdbpy_value_cst.
6508
c05202a1
MS
65092011-02-28 Michael Snyder <msnyder@vmware.com>
6510
e463f587
MS
6511 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6512
c38eea1a
MS
6513 * breakpoint.c (catch_syscall_completer): Free malloced list.
6514
3ef09ab5
MS
6515 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6516
8f9a01ee
MS
6517 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6518 (lval_func_check_synthetic_pointer): Ditto.
6519 (lval_func_free_closure): Fix use-after-free.
c05202a1 6520
477d0d57
TT
65212011-02-28 Tom Tromey <tromey@redhat.com>
6522
6523 * psymtab.c (expand_partial_symbol_tables): Use
6524 ALL_OBJFILE_PSYMTABS.
6525
20937029
JK
65262011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 * objc-lang.c (selectors_info): Error on too long REGEXP.
6529
907b7f4f
MS
65302011-02-28 Michael Snyder <msnyder@vmware.com>
6531
92e96192
MS
6532 * python/py-param.c (set_parameter_value): Add missing
6533 break statement.
6534
907b7f4f
MS
6535 * linux-record.c (record_linux_system_call): Add missing
6536 break statement.
6537
12c5a436
UW
65382011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6539
6540 * breakpoint.c (print_one_breakpoint_location): Remove unused
6541 argument PRINT_ADDRESS_BITS. Update callers.
6542 (print_one_breakpoint): Likewise.
6543
170b53b2
UW
65442011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6545
6546 * breakpoint.c (wrap_indent_at_field): New function.
6547 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6548 Allocate ui_stream locally instead of using STB argument.
6549 (print_one_breakpoint_location): Update call.
6550 * ui-out.c (ui_out_query_field): New function.
6551 * ui-out.h (ui_out_query_field): Add prototype.
6552
8ab1f94d
JB
65532011-02-28 Joel Brobecker <brobecker@adacore.com>
6554
6555 From Michael Snyder <msnyder@vmware.com>
6556 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6557
7d488639
MS
65582011-02-27 Michael Snyder <msnyder@vmware.com>
6559
ae179fba
MS
6560 * objc-lang.c (selectors_info): Prevent string overrun.
6561
086dbf66
MS
6562 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6563 error in strncpy.
6564
f2eb0bc8 6565 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
6566 outer scope.
6567
7d488639
MS
6568 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6569 param with a local variable of the same name.
6570
3bd0f5ef
MS
65712011-02-27 Michael Snyder <msnyder@vmware.com>
6572
6573 * value.c (value_from_history_ref): New function.
6574 * value.h (value_from_history_ref): Export.
6575 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6576 to parse value history references.
6577 * cli/cli-utils.h (get_number_trailer): Update comment.
6578
65792011-02-27 Michael Snyder <msnyder@vmware.com>
6580
6581 * inferior.c (detach_inferior_command): Use get_number_or_range.
6582 (kill_inferior_command): Ditto.
6583 (remove_inferior_command): Ditto.
6584 (initialize_inferiors): Make command names plural.
6585 Update help strings.
6586
766062f6
MS
65872011-02-27 Michael Snyder <msnyder@vmware.com>
6588
6589 * darwin-nat-info.c: Fix comment typo.
6590 * dwarf2expr.h: Ditto.
6591 * fbsd-nat.c: Ditto.
6592 * fbsd-nat.h: Ditto.
6593 * frame-unwind.h: Ditto.
6594 * frame.h: Ditto.
6595 * hppa-hpux-tdep.c: Ditto.
6596 * i386-linux-nat.c: Ditto.
6597 * linux-nat.c: Ditto.
6598 * nbsd-nat.c: Ditto.
6599 * nbsd-nat.h: Ditto.
6600 * ppc-linux-tdep.c: Ditto.
6601 * serial.c: Ditto.
6602 * ui-file.h: Ditto.
6603 * tui/tui-winsource.c: Ditto.
6604
f2c4ead5
MS
66052011-02-26 Michael Snyder <msnyder@vmware.com>
6606
86b887df
MS
6607 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6608
66fd3b1e
MS
6609 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6610
8c814cdd
MS
6611 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6612 with a local variable of the same name.
6613
6d5e094a 6614 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 6615 param with a local variable of the same name.
6d5e094a 6616 (i387_supply_xsave): Ditto.
e5b3d7d6 6617
5eee517d
MS
6618 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6619 that it does not shadow a function parameter.
6620
8fbf6b93
MS
6621 * i386-nat.c (i386_length_and_rw_bits): Document that case
6622 statement is meant to fall through.
6623
cb969d61
MS
6624 * expprint.c (dump_subexp_body_standard): Document that case
6625 statement is meant to fall through.
6626
f2c4ead5
MS
6627 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6628 dead if statement. Condition can't be false.
6629
b021a221
MS
66302011-02-25 Michael Snyder <msnyder@vmware.com>
6631
6632 * arm-tdep.c: Fix typos in comments.
6633 * bsd-uthread.c: Ditto.
6634 * completer.c: Ditto.
6635 * corelow.c: Ditto.
6636 * cp-namespace.c: Ditto.
6637 * cp-support.c: Ditto.
6638 * cris-tdep.c: Ditto.
6639 * dbxread.c: Ditto.
6640 * dwarf2read.c: Ditto.
6641 * frame.h: Ditto.
6642 * gdbtypes.h: Ditto.
6643 * inferior.h: Ditto.
6644 * mdebugread.c: Ditto.
6645 * mips-tdep.c: Ditto.
6646 * ppc-linux-nat.c: Ditto.
6647 * ppc-linux-tdep.c: Ditto.
6648 * printcmd.c: Ditto.
6649 * sol-thread.c: Ditto.
6650 * solib-frv.c: Ditto.
6651 * solist.h: Ditto.
6652 * sparc64-tdep.c: Ditto.
6653 * spu-tdep.c: Ditto.
6654 * stabsread.c: Ditto.
6655 * symfile.c: Ditto.
6656 * valops.c: Ditto.
6657 * varobj.c: Ditto.
6658 * vax-nat.c: Ditto.
6659 * python/py-block.c: Ditto.
6660 * python/py-symbol.c: Ditto.
6661 * python/py-symtab.c: Ditto.
6662 * python/py-value.c: Ditto.
6663 * tui/tui-win.c: Ditto.
6664
c82c0b55
MS
66652011-02-25 Michael Snyder <msnyder@vmware.com>
6666
6667 * inferior.c (print_inferior): Accept a string instead of an int
6668 for requested_inferiors, and use get_number_or_range to parse it.
6669 (info_inferiors_command): Pass args string to print_inferior.
6670 (initialize_inferiors): Change help string for info inferiors.
6671 * inferior.h (print_inferior): Export prototype change.
6672
ee00cd23
TT
66732011-02-25 Tom Tromey <tromey@redhat.com>
6674
6675 * common/ax.def (invalid2): Set to 0x31.
6676
0502ed8c
JK
66772011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6678
6679 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6680 L and plongest.
6681 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6682 use L and plongest.
6683 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6684
2c9de912
MS
66852011-02-24 Michael Snyder <msnyder@vmware.com>
6686
6687 * Makefile.in (clean): Make clean should remove generated files
6688 observer.h and observer.inc.
6689
a04b0428
JB
66902011-02-24 Joel Brobecker <brobecker@adacore.com>
6691
6692 Revert the following patch (not approved yet):
6693 2011-02-21 Hui Zhu <teawater@gmail.com>
6694 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6695 * ax-gdb.c (gen_printf_expr_callback): New function.
6696 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6697 * ax-general.c (ax_memcpy): New function.
6698 (ax_print): Handle "printf".
6699 (ax_reqs): Ditto.
6700 * ax.h (ax_memcpy): Forward declare.
6701 * common/ax.def (invalid2): Removed.
6702 (printf): New entry.
6703 * printcmd.c (printcmd.h): New include.
6704 (string_printf): New function.
6705 (ui_printf): Removed.
6706 (printf_command): Remove static. Call string_printf.
6707 (eval_command): Call string_printf.
6708 * printcmd.h: New file.
6709 * tracepoint.c (validate_actionline,
6710 encode_actions_1): handle printf_command.
6711
2b52013f
TT
67122011-02-23 Tom Tromey <tromey@redhat.com>
6713
6714 * ax-general.c (ax_pick): Add missing newline.
6715
e5a67952
MS
67162011-02-23 Michael Snyder <msnyder@vmware.com>
6717
6718 * breakpoint.c (breakpoint_1): Change first argument from an int
6719 to a char pointer, so that the function now accepts a list of
f2eb0bc8 6720 breakpoints rather than just one. Use new function
e5a67952
MS
6721 'number_is_in_list' to implement.
6722 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6723 (watchpoints_info): Ditto.
6724 (tracepoints_info): Ditto.
6725 (maintenance_info_breakpoints): Ditto.
6726 (_initialize_breakpoint): Update help strings to reflect the fact
6727 that these functions can now take more than one argument.
6728 * cli/cli-utils.c (number_is_in_list): New function.
6729 * cli/cli-utils.h (number_is_in_list): Export.
6730
67312011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
6732
6733 * memattr.c (mem_enable_command): Use get_number_or_range.
6734 (mem_disable_command): Ditto.
6735 (mem_delete_command): Ditto.
6736 (_initialize_mem): Tweak usage message to reflect multiple
6737 arguments.
6738
6e6fbe60
DE
67392011-02-22 Doug Evans <dje@google.com>
6740
6741 Add gdb.lookup_global_symbol python function.
6742 * NEWS: Add entry.
6743 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6744 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6745 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6746
79b97fa8
TT
67472011-02-22 Tom Tromey <tromey@redhat.com>
6748
6749 * language.c (language_class_name_from_physname): Rename
6750 'curr_language' argument to 'lang'; use in body.
6751
298f437a
MS
67522011-02-22 Michael Snyder <msnyder@vmware.com>
6753
6754 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6755
b7ea3126
PA
67562011-02-22 Pedro Alves <pedro@codesourcery.com>
6757
6758 * frame-unwind.h: Fix comment to mention the this frame, not the
6759 next.
6760
58ee6d60
TT
67612011-02-22 Tom Tromey <tromey@redhat.com>
6762
6763 * symfile.c (auto_solib_limit): Remove.
6764 * symfile.h (auto_solib_limit): Remove.
6765
36238dbc
JB
67662011-02-22 Joel Brobecker <brobecker@adacore.com>
6767
6768 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6769
aea5b279
MS
67702011-02-21 Michael Snyder <msnyder@vmware.com>
6771
6772 * gdbthread.h (print_thread_info): Change prototype.
6773 * thread.c (print_thread_info): Accept char* instead of int for
6774 requested_threads argument. Use new function number_is_in_list
6775 to determine which threads to list.
6776 (info_threads_command): Pass char* to print_thread_info.
6777 * cli/cli-utils.c (number_is_in_list): New function.
6778 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 6779 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
6780 print_thread_info.
6781 (print_one_inferior): Ditto.
6782 (mi_cmd_list_thread_groups): Ditto.
6783
8caa75ee
JK
67842011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6785
6786 * common/Makefile.in (CFLAGS): New.
6787 (COMPILE): Add $(CFLAGS).
6788
ea666128
TT
67892011-02-21 Tom Tromey <tromey@redhat.com>
6790
6791 * breakpoint.c (catch_syscall_command_1): Fix typo.
6792
e9cafbcc
TT
67932011-02-21 Tom Tromey <tromey@redhat.com>
6794
6795 * reverse.c: Include cli-utils.h.
6796 * printcmd.c: Include cli-utils.h.
6797 (string_printf): Use skip_spaces.
6798 * cli/cli-utils.h: New file.
6799 * cli/cli-utils.c: New file.
6800 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6801 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6802 * breakpoint.h (get_number, get_number_or_range): Move to
6803 cli-utils.h.
6804 * breakpoint.c: Include cli-utils.h.
6805 (get_number_trailer, get_number, get_number_or_range)
6806 (ep_skip_leading_whitespace): Move to cli-utils.c.
6807 (create_breakpoint_sal, find_condition_and_thread)
6808 (decode_static_tracepoint_spec, watch_command_1)
6809 (watch_maybe_just_location, ep_parse_optional_if_clause)
6810 (catch_fork_command_1, catch_exec_command_1)
6811 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6812 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6813 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6814 (HFILES_NO_SRCDIR): Add cli-utils.h.
6815 (cli-utils.o): New target.
6816
f67fd822
PM
68172011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6818
6819 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6820 before calling discard_all_inferiors.
6821
c9def01d
UW
68222011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6823
6824 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6825 (struct builtin_opencl_type): Remove.
6826 (builtin_opencl_type): Change return type to "struct type **".
6827 (lookup_opencl_vector_type): Update caller.
6828 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6829 (build_opencl_types): Install plain array of "struct type *"
6830 instead of "struct builtin_opencl_type".
6831
e3039479
UW
68322011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6833 Ulrich Weigand <uweigand@de.ibm.com>
6834
6835 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6836 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6837 (struct arm_linux_hwbp_cap): New type.
6838 (arm_linux_get_hwbp_cap): New function.
6839 (arm_linux_get_hw_breakpoint_count): Likewise.
6840 (arm_linux_get_hw_watchpoint_count): Likewise.
6841 (arm_linux_can_use_hw_breakpoint): Likewise.
6842 (arm_hwbp_type): New type.
6843 (arm_hwbp_control_t): Likewise.
6844 (struct arm_linux_hw_breakpoint): Likewise.
6845 (struct arm_linux_thread_points): Likewise.
6846 (arm_threads): New global variable.
6847 (arm_linux_find_breakpoints_by_tid): New function.
6848 (arm_hwbp_control_initialize): Likewise.
6849 (arm_hwbp_control_is_enabled): Likewise.
6850 (arm_hwbp_control_disable): Likewise.
6851 (arm_linux_hw_breakpoint_initialize): Likewise.
6852 (arm_linux_get_hwbp_type): Likewise.
6853 (arm_linux_hw_watchpoint_initialize): Likewise.
6854 (arm_linux_hw_breakpoint_equal): Likewise.
6855 (arm_linux_insert_hw_breakpoint1): Likewise.
6856 (arm_linux_remove_hw_breakpoint1): Likewise.
6857 (arm_linux_insert_hw_breakpoint): Likewise.
6858 (arm_linux_remove_hw_breakpoint): Likewise.
6859 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6860 (arm_linux_insert_watchpoint): Likewise.
6861 (arm_linux_remove_watchpoint): Likewise.
6862 (arm_linux_stopped_data_address): Likewise.
6863 (arm_linux_stopped_by_watchpoint): Likewise.
6864 (arm_linux_watchpoint_addr_within_range): Likewise.
6865 (arm_linux_new_thread): Likewise.
6866 (arm_linux_thread_exit): Likewise.
6867 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6868 related target callbacks. Register arm_linux_new_thread and
6869 arm_linux_thread_exit.
6870 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6871 * arm-tdep.c (arm_pc_is_thumb): Make global.
6872 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6873
b5db5dfc
UW
68742011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6875
6876 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6877 per-frame locations while within a function epilogue.
6878
e25b2cfa
PM
68792011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6880
6881 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6882 to GNU coding standards.
6883
4af53f97
PM
68842011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6885
6886 Allow use of mingw native on Windows 95 OS.
e25b2cfa 6887 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
6888 (ser_windows_close): Only call CancelIo if function exists.
6889 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6890 to check for existence of CancelIo function in kernel32 DLL.
6891
d0e92d82
HZ
68922011-02-21 Hui Zhu <teawater@gmail.com>
6893
6894 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6895 * ax-gdb.c (gen_printf_expr_callback): New function.
6896 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6897 * ax-general.c (ax_memcpy): New function.
6898 (ax_print): Handle "printf".
6899 (ax_reqs): Ditto.
6900 * ax.h (ax_memcpy): Forward declare.
6901 * common/ax.def (invalid2): Removed.
6902 (printf): New entry.
6903 * printcmd.c (printcmd.h): New include.
6904 (string_printf): New function.
6905 (ui_printf): Removed.
6906 (printf_command): Remove static. Call string_printf.
6907 (eval_command): Call string_printf.
6908 * printcmd.h: New file.
6909 * tracepoint.c (validate_actionline,
6910 encode_actions_1): handle printf_command.
6911
7d357efd
MS
69122011-02-19 Michael Snyder <msnyder@vmware.com>
6913
6914 * reverse.c (delete_one_bookmark): Argument is now bookmark
6915 id rather than pointer to bookmark struct.
6916 (delete_bookmark_command): Use get_number_or_range.
6917 (goto_bookmark_command): Parse with get_number instead of strtoul.
6918 (bookmark_1): New function. Print info for one bookmark.
6919 (bookmarks_info): Use get_number_or_range and bookmark_1.
6920
7a45ebd7
MS
69212011-02-18 Michael Snyder <msnyder@vmware.com>
6922
f2eb0bc8 6923 * thread.c (info_threads_command): Re-implement using
7a45ebd7 6924 get_number_or_range.
65ebfb52 6925 (thread_apply_command): Ditto.
7a45ebd7 6926
94d5e490
TT
69272011-02-18 Tom Tromey <tromey@redhat.com>
6928
6929 * common/ax.def: New file.
6930 * ax.h (enum agent_op): Use ax.def.
6931 * ax-general.c (aop_map): Use ax.def.
6932
c7f96d2b
TT
69332011-02-18 Tom Tromey <tromey@redhat.com>
6934
6935 * ax-general.c (aop_map): Add pick and rot.
6936 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6937 <DW_OP_rot>: Implement.
6938 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6939 (ax_pick): Declare.
6940 * ax-general.c (ax_pick): New function.
6941
66694b75
TT
69422011-02-18 Tom Tromey <tromey@redhat.com>
6943
6944 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6945
eeaafae2
JK
69462011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6947 Tom Tromey <tromey@redhat.com>
6948
6949 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6950 make_symbol_overload_list_block with NULL BLOCK.
6951 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6952
3c3fe74c
PA
69532011-02-18 Pedro Alves <pedro@codesourcery.com>
6954
6955 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6956 * breakpoint.h (get_number_or_range): Declare.
6957 * printcmd.c (ALL_DISPLAYS): Declare.
6958 (delete_display): Reimplement taking a display pointer.
6959 (undisplay_command): Accept a range of displays to delete, using
6960 get_number_or_range.
6961
13163d80
PM
69622011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6963
6964 * c-valprint.c (c_val_print): Add embedded_offset to address
6965 for arrays of unspecified length.
6966 * p-valprint.c (pascal_val_print): Likewise.
6967
b434a28f
YQ
69682011-02-18 Yao Qi <yao@codesourcery.com>
6969
6970 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6971 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6972 (thumb_process_displaced_insn): New.
6973 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6974 call to arm_process_displaced_insn.
6975 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6976
9f6f94ff
TT
69772011-02-17 Tom Tromey <tromey@redhat.com>
6978
6979 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6980 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6981 compile_dwarf_to_ax. No longer static. Call
6982 dwarf2_compile_cfa_to_ax.
6983 (locexpr_tracepoint_var_ref): Update.
6984 (loclist_tracepoint_var_ref): Update.
6985 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6986 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6987 argument; add 'gdbarch' and 'pc'.
6988 (dwarf2_compile_cfa_to_ax): New function.
6989 (dwarf2_frame_cache): Update.
6990
e67ad678
JB
69912011-02-17 Joel Brobecker <brobecker@adacore.com>
6992
6993 * ada-lang.c (ada_type_of_array): Fix the size of the array
6994 in the case of an unconstrained packed array.
6995
946ebb0d
YQ
69962011-02-17 Yao Qi <yao@codesourcery.com>
6997
6998 * common/Makefile.in: Add more targets for make.
6999
1ba1b353
TT
70002011-02-16 Tom Tromey <tromey@redhat.com>
7001
7002 * dwarf2loc.c (unimplemented): Fix typo.
7003
b1bfef65
TT
70042011-02-16 Tom Tromey <tromey@redhat.com>
7005
7006 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7007 (compile_dwarf_to_ax) <default>: Use unimplemented.
7008 <DW_OP_deref>: Update.
7009 (disassemble_dwarf_expression): Update.
7010 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7011 (decode_locdesc): Update.
7012 * dwarf2expr.h (dwarf_stack_op_name): Update.
7013
5f1e6f19
TT
70142011-02-16 Tom Tromey <tromey@redhat.com>
7015
7016 * ax.h (struct aop_map) <name>: Now const.
7017
a0c78a73
PA
70182011-02-16 Tom Tromey <tromey@redhat.com>
7019
7020 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7021 than axs_rvalue.
7022
946ebb0d 70232011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
7024
7025 * infrun.c (get_displaced_step_closure_by_addr): New.
7026 * inferior.h: Declare it.
7027 * arm-tdep.c: (arm_pc_is_thumb): Call
7028 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7029 returns non-NULL.
7030
08807d5a
PA
70312011-02-16 Pedro Alves <pedro@codesourcery.com>
7032 Jan Kratochvil <jan.kratochvil@redhat.com>
7033
7034 gdb/
7035 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7036
29976f3f
PA
70372011-02-16 Pedro Alves <pedro@codesourcery.com>
7038 Jan Kratochvil <jan.kratochvil@redhat.com>
7039
7040 * value.c (value_contents_copy_raw): Extend describing comment.
7041 Assert that the destination contents we're overwriting are wholly
7042 available.
fb68ae73 7043 (value_contents_copy): Extend describing comment.
29976f3f 7044
cd24cfaa
PA
70452011-02-16 Pedro Alves <pedro@codesourcery.com>
7046 Jan Kratochvil <jan.kratochvil@redhat.com>
7047
7048 * value.c (value_available_contents_eq): Remove redundant local
7049 variables. Fix available contents comparision.
7050 * value.h (value_available_contents_eq): Extend describing
7051 comment.
7052
60bbf338
YQ
70532011-02-16 Yao Qi <yao@codesourcery.com>
7054
7055 * thread.c (info_threads_command): Add missing i18n markup and remove
7056 trailing newline.
7057
17450429
PP
70582011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7059
7060 * breakpoint.c (longjmp_names): New variable.
7061 (struct breakpoint_objfile_data): New type.
7062 (breakpoint_objfile_key): New variable.
7063 (msym_not_found): New variable.
7064 (msym_not_found_p): New predicate.
7065 (get_breakpoint_objfile_data): New function.
7066 (create_overlay_event_breakpoint): Check per-objfile cache for
7067 symbols first.
7068 (create_longjmp_master_breakpoint): Likewise.
7069 (create_std_terminate_master_breakpoint): Likewise.
7070 (create_exception_master_breakpoint): Likewise.
7071 (_initialize_breakpoint): Register per-objfile data key.
7072
af02033e
PP
70732011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7074
7075 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7076 parameter value.
7077 (create_longjmp_master_breakpoint): Loop over longjmp names.
7078 (create_std_terminate_master_breakpoint): Const-propagate parameter
7079 value.
7080 (update_breakpoints_after_exec): Adjust.
7081 (breakpoint_re_set): Adjust.
7082
60f98dde
MS
70832011-02-15 Michael Snyder <msnyder@vmware.com>
7084
cdf99611
MS
7085 * thread.c (info_threads_command): Process arg as thread id,
7086 or list of thread ids.
7087 (thread_find_command): New command.
7088 (_initialize_thread): Document argument for info threads.
7089 Document 'thread find' command.
7090 * NEWS: Document new command "thread find".
60f98dde 7091
0feedb2c
JK
70922011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7093
7094 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7095 * aclocal.m4: Regenerated with aclocal-1.11.1.
7096 * common/configure: Regenerate with autoconf-2.64.
7097
648cd113
KW
70982011-02-15 Ken Werner <ken.werner@de.ibm.com>
7099
7100 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7101 bool data type to a size of one byte.
7102
5657161f
PA
71032011-02-15 Pedro Alves <pedro@codesourcery.com>
7104 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 * target.c (memory_xfer_live_readonly_partial): Document where to
7107 look for interface description.
7108
494e194e
YQ
71092011-02-15 Yao Qi <yao@codesourcery.com>
7110
7111 PR tdep/12352
7112 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7113 order to store PC value on stack instead of text section.
7114
d9492458
TJB
71152011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7116
7117 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7118 the EFP register set size.
7119 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7120 data from the VMX register.
7121 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7122 and write data from/to the VMX register.
7123
cdf99611
MS
71242011-02-14 Michael Snyder <msnyder@vmware.com>
7125
7126 * command.h (enum command_class): New class 'no_set_class', for
7127 "show" commands without a corresponding "set" command.
7128 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7129 * copying.c (_initialize_copying): Ditto for "show copying" and
7130 "show warranty".
7131 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7132 "show version".
7133 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7134 which there is no corresponding "set" command (eg. "show copying").
7135
424447ee
PA
71362011-02-14 Pedro Alves <pedro@codesourcery.com>
7137 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 * exec.c (section_table_available_memory): Change `len' parameter
7140 type to ULONGEST.
7141 * exec.h (section_table_available_memory): Ditto.
7142 * value.h (read_value_memory): Rename the `offset' parameter to
7143 `embedded_offset'.
7144
c0f61f9c 71452011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 7146 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
7147
7148 * memrange.c (compare_mem_ranges): Mention sort order in
7149 describing comment.
7150 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7151 * tracepoint.c (traceframe_available_memory): Extend comment to
7152 mention what happens to RESULT when the target does not support
7153 the query.
7154
6bfc80c7
PA
71552011-02-14 Pedro Alves <pedro@codesourcery.com>
7156 Jan Kratochvil <jan.kratochvil@redhat.com>
7157
7158 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7159 range.
7160
e7303042
PA
71612011-02-14 Pedro Alves <pedro@codesourcery.com>
7162
7163 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7164 No longer handle NULL values.
7165
8af8e3bc
PA
71662011-02-14 Pedro Alves <pedro@codesourcery.com>
7167
7168 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7169 * value.c: Include "exceptions.h".
7170 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7171 generic error.
7172 * cp-abi.c: Include gdb_assert.h.
7173 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7174 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7175 errors.
7176 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7177 parameters. No longer returns -1 on error.
7178 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7179 `val' parameters.
7180 * cp-valprint.c: Include exceptions.h.
7181 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7182 the baseclass_offset. Handle unavailable base classes. Use
7183 val_print_invalid_address.
7184 * p-valprint.c: Include exceptions.h.
7185 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7186 when fetching the baseclass_offset. No longer expect
7187 baseclass_offset returning -1. Handle unavailable base classes.
7188 Use val_print_invalid_address.
7189 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7190 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7191 `embedded_offset' and `val' parameters. Adjust.
7192 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7193 parameter, and change its type to gdb_byte pointer. Add
7194 `embedded_offset' and `val' parameters. Adjust. No longer expect
7195 baseclass_offset returning -1.
7196 (value_dynamic_cast): Use value_contents_for_printing rather than
7197 value_contents. Adjust.
7198 (search_struct_field): No longer expect baseclass_offset returning
7199 -1.
7200 (search_struct_method): If reading memory from the target is
7201 necessary, wrap it in a new value to pass to baseclass_offset. No
7202 longer expect baseclass_offset returning -1.
7203 (find_method_list): No longer expect baseclass_offset returning
7204 -1. Use value_contents_for_printing rather than value_contents.
7205 * valprint.c (val_print_invalid_address): New function.
7206 * valprint.h (val_print_invalid_address): Declare.
7207 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7208 and `val' parameters. No longer expect baseclass_offset returning
7209 -1. Adjust.
7210 * gnu-v2-abi.c: Include "exceptions.h".
7211 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7212 parameters. Handle unavailable memory. Recurse through
7213 gnuv2_baseclass_offset directly, rather than through
7214 baseclass_offset. No longer returns -1 on not found, instead
7215 throw an error.
7216 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7217 `val' parameters. Adjust.
7218
1b28d0b3
PA
72192011-02-14 Pedro Alves <pedro@codesourcery.com>
7220
7221 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7222 almost but not quite adjacent.
7223
ec0a52e1
PA
72242011-02-14 Pedro Alves <pedro@codesourcery.com>
7225
7226 * value.h (value_entirely_available): Declare.
7227 * value.c (value_entirely_available): New function.
7228 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7229 real type if the pointer is unavailable.
7230
24e6bcee
PA
72312011-02-14 Pedro Alves <pedro@codesourcery.com>
7232
7233 * valops.c (value_repeat): Use read_value_memory instead of
7234 read_memory.
7235
39d37385
PA
72362011-02-14 Pedro Alves <pedro@codesourcery.com>
7237
7238 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7239 * value.c (value_contents_copy_raw, value_contents_copy): New
7240 functions.
7241 (value_primitive_field): Use value_contents_copy_raw instead of
7242 memcpy.
7243 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7244 memcpy.
7245 (value_array, value_slice): Ditto.
7246 * valarith.c (value_subscripted_rvalue): Use
7247 value_contents_copy_raw instead of memcpy.
7248
a3d34bf4
PA
72492011-02-14 Pedro Alves <pedro@codesourcery.com>
7250
7251 <unavailable> references.
7252
7253 * valops.c (get_value_at): Use value_from_contents_and_address,
7254 avoiding read_memory.
7255
9fc6d940
PA
72562011-02-14 Pedro Alves <pedro@codesourcery.com>
7257
7258 * c-valprint.c (c_val_print): Print a string with unavailable
7259 contents as an array.
7260
5467c6c8
PA
72612011-02-14 Pedro Alves <pedro@codesourcery.com>
7262
7263 * value.h (unpack_bits_as_long): Delete declaration.
7264 (unpack_value_bits_as_long): Declare.
7265 (unpack_value_field_as_long): Declare.
7266 (value_field_bitfield): Declare.
7267 * value.c (unpack_bits_as_long): Rename to...
7268 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7269 value parameters. Return the extracted result in a new output
7270 parameter. If the value contents are unavailable, return false,
7271 otherwise return true.
7272 (unpack_value_bits_as_long): New.
7273 (unpack_field_as_long): Rename to...
7274 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7275 Add embedded_offset and value parameters. Return the extracted
7276 result in a new output parameter. If the value contents are
7277 unavailable, return false, otherwise return true.
7278 (unpack_value_field_as_long): New.
7279 (unpack_field_as_long_1): New.
7280 (unpack_field_as_long): Reimplement as wrapper around
7281 unpack_value_field_as_long_1.
7282 (value_field_bitfield): New function.
7283 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7284 unpack_value_bits_as_long. Mark the value as unavailable, if it
7285 is unavailable.
7286 * jv-valprint.c (java_print_value_fields): Use
7287 value_field_bitfield.
7288 * p-valprint.c (pascal_object_print_value_fields): Use
7289 value_field_bitfield.
7290 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7291
3158c6ed
PA
72922011-02-14 Pedro Alves <pedro@codesourcery.com>
7293
7294 * value.c (get_internalvar_integer): Also return the int value of
7295 TYPE_CODE_INT INTERNALVAR_VALUE values.
7296 (set_internalvar): Don't special case TYPE_CODE_INT.
7297
9fbdca0d
PA
72982011-02-14 Pedro Alves <pedro@codesourcery.com>
7299
7300 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7301 INTERNALVAR_POINTER.
7302 <pointer>: Delete.
7303 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7304 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7305 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7306
c8c1c22f
PA
73072011-02-14 Pedro Alves <pedro@codesourcery.com>
7308
7309 * value.h (value_available_contents_eq): Declare.
7310 * value.c (find_first_range_overlap): New function.
7311 (value_available_contents_eq): New function.
7312 * valprint.c (val_print_array_elements): Use
7313 value_available_contents_eq.
7314 * ada-valprint.c (val_print_packed_array_elements): Use
7315 value_available_contents_eq.
7316 * jv-valprint.c (java_value_print): Use
7317 value_available_contents_eq.
7318
e6e4e701
PA
73192011-02-14 Pedro Alves <pedro@codesourcery.com>
7320
7321 * target.c (target_read_live_memory): New function.
7322 (memory_xfer_live_readonly_partial): New.
7323 (memory_xfer_partial): If reading from a traceframe, fallback to
7324 reading unavailable read-only memory from read-only regions of
7325 live target memory.
7326 * tracepoint.c (disconnect_tracing): Adjust.
7327 (set_current_traceframe): New, factored out from
7328 set_traceframe_number.
7329 (set_traceframe_number): Reimplement to only change the traceframe
7330 number on the GDB side.
7331 (do_restore_current_traceframe_cleanup): Adjust.
7332 (make_cleanup_restore_traceframe_number): New.
7333 (cur_traceframe_number): New global.
7334 (tfile_open): Set cur_traceframe_number to no traceframe.
7335 (set_tfile_traceframe): New function.
7336 (tfile_trace_find): If looking up a traceframe using any method
7337 other than by number, make sure the current tfile traceframe
7338 matches gdb's current traceframe. Update the current tfile
7339 traceframe if the lookup succeeded.
7340 (tfile_fetch_registers, tfile_xfer_partial)
7341 (tfile_get_trace_state_variable_value): Make sure the remote
7342 traceframe matches gdb's current traceframe.
7343 * remote.c (remote_traceframe_number): New global.
7344 (remote_open_1): Set it to -1.
7345 (set_remote_traceframe): New function.
7346 (remote_fetch_registers, remote_store_registers)
7347 (remote_xfer_memory, remote_xfer_partial)
7348 (remote_get_trace_state_variable_value): Make sure the remote
7349 traceframe matches gdb's current traceframe.
7350 (remote_trace_find): If looking up a traceframe using any method
7351 other than by number, make sure the current remote traceframe
7352 matches gdb's current traceframe. Update the current remote
7353 traceframe if the lookup succeeded.
7354 * infrun.c (fetch_inferior_event): Adjust.
7355 * tracepoint.h (set_current_traceframe): Declare.
7356 (get_traceframe_number, set_traceframe_number): Add describing
7357 comments.
7358
e6ca34fc
PA
73592011-02-14 Pedro Alves <pedro@codesourcery.com>
7360
7361 Mark pieces of values as unavailable if the corresponding memory
7362 is unavailable.
7363
7364 * valops.c: Include tracepoint.h.
7365 (value_fetch_lazy): Use read_value_memory.
7366 (read_value_memory): New.
7367 * value.h (read_value_memory): Declare.
7368 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7369 * exec.c (section_table_available_memory): New function.
7370 * exec.h (section_table_available_memory): Declare.
7371
2a7498d8
PA
73722011-02-14 Pedro Alves <pedro@codesourcery.com>
7373
7374 * Makefile.in (SFILES): Add memrange.c.
7375 (HFILES_NO_SRCDIR): Add memrange.h.
7376 (COMMON_OBS): Add memrange.o.
7377 * memrange.c: New file.
7378 * memrange.h: New file.
7379 * tracepoint.c: Include memrange.h.
7380 (struct mem_range): Delete.
7381 (mem_range_s): Delete.
7382 (traceframe_available_memory): New function.
7383 * tracepoint.h (traceframe_available_memory): Declare.
7384
b3b9301e
PA
73852011-02-14 Pedro Alves <pedro@codesourcery.com>
7386
7387 * target.h (struct traceframe_info): Forward declare.
7388 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7389 (struct target_ops) <to_traceframe_info>: New field.
7390 (target_traceframe_info): New.
7391 * target.c (update_current_target): Inherit and default
7392 to_traceframe_info.
7393 * remote.c (PACKET_qXfer_traceframe_info): New.
7394 (remote_protocol_features): Register qXfer:traceframe-info:read.
7395 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7396 (remote_traceframe_info): New.
7397 (init_remote_ops): Install it.
7398 (_initialize_remote): Install "set/show remote traceframe-info"
7399 commands.
7400 * tracepoint.h (parse_traceframe_info): Declare.
7401 * tracepoint.c (struct mem_range): New.
7402 (mem_range_s): New typedef.
7403 (struct traceframe_info): New.
7404 (traceframe_info): New global.
7405 (free_traceframe_info): New function.
7406 (clear_traceframe_info): New function.
7407 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7408 info.
7409 (build_traceframe_info): New function.
7410 (tfile_traceframe_info): New function.
7411 (init_tfile_ops): Install tfile_traceframe_info.
7412 (traceframe_info_start_memory, free_result): New functions.
7413 (memory_attributes, traceframe_info_elements): New globals.
7414 (parse_traceframe_info, get_traceframe_info): New functions.
7415 * features/traceframe-info.dtd: New file.
7416 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7417
4e07d55f
PA
74182011-02-14 Pedro Alves <pedro@codesourcery.com>
7419
7420 Base support for <unavailable> value contents.
7421
4e07d55f
PA
7422 * value.h (value_bytes_available): Declare.
7423 (mark_value_bytes_unavailable): Declare.
7424 * value.c (struct range): New struct.
7425 (range_s): New typedef.
7426 (ranges_overlap): New function.
7427 (range_lessthan): New function.
7428 (ranges_contain_p): New function.
7429 (struct value) <unavailable>: New field.
7430 (value_bytes_available): New function.
7431 (mark_value_bytes_unavailable): New function.
7432 (require_not_optimized_out): Constify parameter.
7433 (require_available): New function.
7434 (value_contents_all, value_contents): Require all bytes be
7435 available.
7436 (value_free): Free `unavailable'.
7437 (value_copy): Copy `unavailable'.
7438 * valprint.h (val_print_unavailable): Declare.
7439 * valprint.c (valprint_check_validity): Rename `offset' parameter
7440 to `embedded_offset'. If printing a scalar, check whether the
7441 value chunk is available.
7442 (val_print_unavailable): New.
7443 (val_print_scalar_formatted): Check whether the value is
7444 available.
7445 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7446 pretty-printing unavailable values.
7447
bc9a5551
JK
74482011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7449
7450 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7451 * c-typeprint.c (c_type_print_args): Update the function comment. New
7452 variable param_type, initialize it. Remove const/volatile qualifiers
7453 for language_cplus and !show_artificial. Use param_type.
7454
93b55aa1
JK
74552011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7456
7457 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7458 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7459 * symtab.h (struct symtab) <next>: Comment extension.
7460
181d9476
YQ
74612011-02-12 Yao Qi <yao@codesourcery.com>
7462
7463 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7464
b708a5c7
JK
74652011-02-11 Yao Qi <yao@codesourcery.com>
7466
7467 * common/Makefile.in: Add copyright header.
7468
c5187ac6
PA
74692011-02-11 Pedro Alves <pedro@codesourcery.com>
7470
7471 * infrun.c (proceed): Move switching out and in of tfind mode from
7472 here ...
7473 (fetch_inferior_event): ... to here.
7474
4f3e6fb7
YQ
74752011-02-11 Yao Qi <yao@codesourcery.com>
7476
7477 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7478 libcommon.a.
7479 * configure.ac: Add common to sub dir.
7480 * configure: Regenerate.
7481
b708a5c7
JK
74822011-02-11 Yao Qi <yao@codesourcery.com>
7483
7484 Build libcommon.a.
7485
7486 * common/Makefile.in: New.
7487 * common/configure.ac: New.
7488 * common/aclocal.m4: New.
7489 * common/configure: Generate.
7490
2287cc7e
PA
74912011-02-10 Pedro Alves <pedro@codesourcery.com>
7492
7493 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7494 side of the parenthesis.
7495
7496 Merge from GCC:
7497 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 7498 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 7499
fd62cb89
MS
75002011-02-08 Michael Snyder <msnyder@vmware.com>
7501
7502 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7503
56d2815c
JK
75042011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7505
7506 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7507 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7508 psubd and paddd.
7509
4f7d61a8
JK
75102011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7511
7512 PR 12361.
7513 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7514 phsubsw.
7515 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7516 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7517
54fcddd0
UW
75182011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7519
7520 * dwarf2read.c (read_subroutine_type): Set special calling
7521 convention flag for functions compiled by IBM XL C for OpenCL.
7522 * ppc-sysv-tdep.c: Include "dwarf2.h"
7523 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7524 calling convention.
7525 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7526 IBM OpenCL vector types calling convention.
7527 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7528 (ppc_sysv_abi_broken_return_value): Likewise.
7529 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7530 types calling convention.
7531 (ppc64_sysv_abi_return_value): Likewise.
7532 * spu-tdep.c: Include "dwarf2.h"
7533 (spu_return_value): Implement IBM OpenCL vector types calling
7534 convention.
7535
d6dafb7c
UW
75362011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7537
7538 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7539 correct ABI for AltiVec vector arguments.
7540
32b72a42
PA
75412011-02-07 Pedro Alves <pedro@codesourcery.com>
7542
7543 * valprint.c (val_print): Extend comment.
7544 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7545 interface explanation to val_print.
7546 (ada_val_print_array): Adjust comment to current interface.
7547 (print_field_values): Adjust comment to current interface.
7548 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7549 explanation to val_print.
7550 * f-valprint.c (f_val_print): Ditto.
7551 * jv-valprint.c (java_val_print): Ditto.
7552 * m2-valprint.c (m2_val_print): Ditto.
7553 * p-valprint.c (pascal_val_print): Ditto.
7554
9998af43
TJB
75552011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7556
7557 * breakpoint.c (parse_breakpoint_sals): Fix description.
7558
505500db 75592011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 7560 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
7561
7562 * python/py-inferior.c (python_on_normal_stop): New function.
7563 (python_on_resume): New function.
7564 (python_inferior_exit): New function.
7565 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7566 inferior_exit observers.
7567 * python/py-evtregistry.c: New file.
7568 * python/py-threadevent.c : New file.
7569 * python/py-event.c: New file.
7570 * python/py-evts.c: New file.
7571 * python/py-continueevent.c: New file.
7572 * python/py-bpevent.c: New file.
7573 * python/py-signalevent.c: New file.
7574 * python/py-exetiedevent.c: New file.
7575 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7576 Move struct breakpoint_object from here...
7577 * python/python-internal.h: ... to here.
7578 * python/py-event.h: New file.
7579 * python/py-events.h: New file.
7580 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7581 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7582 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7583 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7584 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7585 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7586 Add build rules for all the above.
7587
9e0ac564
TT
75882011-02-04 Tom Tromey <tromey@redhat.com>
7589
7590 * dwarf2read.c (dwarf2_section_empty_p): New function.
7591 (dwarf2_read_section): Use dwarf2_section_empty_p.
7592 (dwarf2_section_size): New function.
7593 (dwarf2_get_section_info): Unconditionally read section.
7594 (dwarf2_read_index): Use dwarf2_section_empty_p.
7595 (partial_read_comp_unit_head): Use dwarf2_section_size.
7596 (dwarf2_symbol_mark_computed): Likewise.
7597
eee5b35e
DD
75982011-02-04 David Daney <ddaney@caviumnetworks.com>
7599
7600 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7601
385203ed
DD
76022011-02-04 David Daney <ddaney@caviumnetworks.com>
7603
7604 * mips-linux-tdep.c: Include xml-syscall.h.
7605 (mips_linux_get_syscall_number): New function.
7606 (mips_linux_init_abi): Add calls to
7607 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7608 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7609 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7610 * syscalls/mips-n32-linux.xml: New file.
7611 * syscalls/mips-n64-linux.xml: New file.
7612 * syscalls/mips-o32-linux.xml: New file.
7613
9277c30c
UW
76142011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7615
7616 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7617 Complain about inverted range entries.
7618 (dwarf2_record_block_ranges): Likewise.
7619
a3be7890
TJB
76202011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7621
7622 Fix some typos.
7623 * breakpoint.c (update_watchpoint): Fix name of the
7624 update_global_location_list function.
7625 (print_one_breakpoint): Fix typo.
7626 (_initialize_breakpoint): Remove extra space in hbreak help
7627 string.
7628 * breakpoint.h (struct bp_location) <length>: Fix field
7629 description.
7630
041274d8
PA
76312011-02-04 Pedro Alves <pedro@codesourcery.com>
7632
7633 * regcache.c (registers_changed_ptid): Don't explictly always
7634 clear `current_regcache'. Only clear current_thread_ptid and
7635 current_thread_arch when PTID matches. Only reinit the frame
7636 cache if PTID matches the current inferior_ptid. Move alloca(0)
7637 call to ...
7638 (registers_changed): ... here.
7639
c1c2ab58
UW
76402011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7641
7642 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7643 starts with __stack_chk_guard as stack guard symbol.
7644
9011945e
AB
76452011-02-03 Andrew Burgess <aburgess@broadcom.com>
7646
7647 * disasm.c (compare_lines): Handle the end of sequence markers
7648 within the line table to better support disassembling over
7649 compilation unit boundaries.
7650
e0634ccf
UW
76512011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7652
7653 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7654 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7655 implementation even if no symbols are available.
7656 (thumb_analyze_prologue): Update call to skip_prologue_function.
7657 (arm_analyze_prologue): Likewise.
7658
0e9e9abd
UW
76592011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7660
7661 * arm-tdep.c: Include "observer.h".
7662 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7663 (arm_exidx_data_key): New static variable.
7664 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7665 (struct arm_exidx_data): Likewise.
7666 (arm_exidx_data_free): New function.
7667 (arm_compare_exidx_entries): Likewise.
7668 (arm_obj_section_from_vma): Likewise.
7669 (arm_exidx_new_objfile): Likewise.
7670 (arm_find_exidx_entry): Likewise.
7671 (arm_exidx_fill_cache): Likewise.
7672 (arm_exidx_unwind_sniffer): Likewise.
7673 (arm_exidx_unwind): New global variable.
7674 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7675 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7676 observer. Register arm_exidx_data_key as objfile data.
7677
2e9e421f
UW
76782011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7679
7680 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7681 due to accessing uninitialized variable. Fix indentation.
7682
580688f3
PA
76832011-02-02 Pedro Alves <pedro@codesourcery.com>
7684
7685 * c-valprint.c (c_value_print): When doing virtual base pointer
7686 adjustment, create a new value with adjusted contents rather than
7687 changing the contents of the value being printed (and getting it
7688 wrong).
7689
3d2c1d41
PA
76902011-02-02 Pedro Alves <pedro@codesourcery.com>
7691
7692 * xml-support.c (xml_find_attribute): New.
7693 (xinclude_start_include): Use it.
7694 * xml-support.h (xml_find_attribute): Declare.
7695 * memory-map.c (memory_map_start_memory)
7696 (memory_map_start_property): Use xml_find_attribute.
7697 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7698 xml_find_attribute.
7699 * remote.c (start_thread): Use xml_find_attribute.
7700 * solib-target.c (library_list_start_segment)
7701 (library_list_start_section, library_list_start_library)
7702 (library_list_start_list): Use xml_find_attribute.
7703 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7704 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7705 (tdesc_start_field): Use xml_find_attribute.
7706
0af3e2db
UW
77072011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7708
7709 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7710 (BUILD_OCL_VTYPES): Update.
7711
c1039e3c
JB
77122011-02-02 Joel Brobecker <brobecker@adacore.com>
7713
7714 * configure.ac: Work around non-GNU sed limitation when computing
7715 python version number.
7716 * configure: Regenerate.
7717
600ea1be
JK
77182011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7719
7720 Fix debug printing of TYPE_INSTANCE.
7721 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7722 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7723
56c12414
JK
77242011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7725
7726 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7727 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7728 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7729 * ada-operator.inc: Rename the file to ...
7730 * ada-operator.def: ... here, wrap all the entries by macro OP.
7731 * expprint.c (op_name_standard): Remove all the entries. Include
7732 "std-operator.def" instead.
7733 * expression.h (enum exp_opcode): Include "std-operator.def" and
7734 "ada-operator.def". Move all the entries ...
7735 * std-operator.def: ... here, wrap all the entries by macro OP.
7736
c52b559d
PP
77372011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7738
7739 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7740 * breakpoint.c (remove_jit_event_breakpoints): New function.
7741 * jit.c (jit_descriptor_addr): Delete.
7742 (registering_code): Delete.
7743 (clear_int): Delete.
7744 (jit_inferior_data): New variable.
7745 (struct jit_inferior_data): New type.
7746 (get_jit_inferior_data): New function.
7747 (jit_inferior_data_cleanup): New function.
7748 (jit_read_descriptor): Adjust.
7749 (jit_register_code): Adjust.
7750 (jit_breakpoint_re_set_internal): New function; move code here ...
7751 (jit_inferior_init): ... from here.
7752 (jit_breakpoint_re_set): Adjust.
7753 (jit_reset_inferior_data_and_breakpoints): New function.
7754 (jit_inferior_created_observer): Adjust.
7755 (jit_inferior_exit_hook): Adjust.
7756 (jit_executable_changed_observer): New function.
7757 (jit_event_handler): Adjust.
7758 (_initialize_jit): Adjust.
7759
e839132d
MS
77602011-01-31 Michael Snyder <msnyder@vmware.com>
7761
7762 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7763 line.
7764
47a80e90
TT
77652011-01-31 Tom Tromey <tromey@redhat.com>
7766
7767 PR python/12216:
7768 * python/python.c (execute_gdb_command): Call
7769 prevent_dont_repeat.
7770 * top.c (suppress_dont_repeat): New global.
7771 (dont_repeat): Use it.
7772 (prevent_dont_repeat): New function.
7773 * command.h (prevent_dont_repeat): Declare.
7774
45a43567
TT
77752011-01-31 Tom Tromey <tromey@redhat.com>
7776
7777 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7778 * python/py-breakpoint.c (bppy_set_silent): Use
7779 breakpoint_set_silent.
7780 (bppy_set_thread): Use breakpoint_set_thread.
7781 (bppy_set_task): Use breakpoint_set_task.
7782 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7783 (breakpoint_set_task): Declare.
7784 (make_breakpoint_silent): Remove.
7785 * breakpoint.c (breakpoint_set_silent): New function.
7786 (breakpoint_set_thread): Likewise.
7787 (breakpoint_set_task): Likewise.
7788 (make_breakpoint_silent): Remove.
7789
09d682a4
TT
77902011-01-31 Tom Tromey <tromey@redhat.com>
7791
7792 * breakpoint.h (user_breakpoint_p): Declare.
7793 * breakpoint.c (user_breakpoint_p): New function.
7794 (breakpoint_1): Use it.
7795 (save_breakpoints): Likewise.
7796
9c4ea6c5
JB
77972011-01-31 Joel Brobecker <brobecker@adacore.com>
7798
7799 * configure.ac: Add handling of Python distribution on Windows.
7800 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7801 sysconfig variables are not defined, then do not use them.
7802 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7803 instead. On Windows, return all paths using forward-slashes
7804 rather than backslashes.
7805
ac534cba
JB
78062011-01-31 Joel Brobecker <brobecker@adacore.com>
7807
7808 * configure.ac: Remove fallback behavior for building
7809 against Python. Remove tweaking of Python include path.
7810 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7811 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7812 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7813 Always restore CPPFLAGS and LIBS after linking test.
7814 * configure: Regenerated.
7815 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7816 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7817 * python/python-internal.h: Adjust includes of Python .h files.
7818
c2f0d045
JB
78192011-01-31 Joel Brobecker <brobecker@adacore.com>
7820
7821 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7822 in error message.
7823
6b0c4c1f
JB
78242011-01-31 Joel Brobecker <brobecker@adacore.com>
7825
7826 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7827 value test.
7828
672c9795
YQ
78292011-01-31 Yao Qi <yao@codesourcery.com>
7830
7831 * arm-linux-nat.c: Update calls to regcache_register_status
7832 instead of regcache_valid_p.
7833 * aix-thread.c: Likewise.
7834 * i386gnu-nat.c: Likewise.
7835
80b23b6a
JK
78362011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7837
7838 Fix crash.
7839 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7840 touching TYPE_FIELD_ARTIFICIAL.
7841
4cd712bd
RE
78422011-01-28 Richard Earnshaw <rearnsha@arm.com>
7843
7844 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7845 Committers.
7846
ffd5ec24
PA
78472011-01-28 Pedro Alves <pedro@codesourcery.com>
7848
7849 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7850 selected, don't try iterating over the traceframe's blocks.
7851 (tfile_has_stack): If there's no traceframe selected, then there's
7852 no stack.
7853 (tfile_has_registers): If there's no traceframe selected, then
7854 there's no registers.
7855
e8c9e0a1
PA
78562011-01-28 Pedro Alves <pedro@codesourcery.com>
7857
7858 * target.c (memory_xfer_partial): No need to restore shadows if we
7859 haven't read anything.
7860
de15c4ab
PA
78612011-01-28 Pedro Alves <pedro@codesourcery.com>
7862
7863 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7864 and val_print_scalar_formatted.
7865
9f41c731
PA
78662011-01-27 Pedro Alves <pedro@codesourcery.com>
7867
7868 * tracepoint.c (tfile_read): New.
7869 (tfile_open): Use it.
7870 (tfile_get_traceframe_address): Use it.
7871 (tfile_trace_find): Use it.
7872 (walk_blocks_callback_func): New typedef.
7873 (match_blocktype): New function.
7874 (traceframe_walk_blocks): New function.
7875 (traceframe_find_block_type): New function.
7876 (tfile_fetch_registers, tfile_xfer_partial)
7877 (tfile_get_trace_state_variable_value): Use
7878 traceframe_find_block_type and tfile_read.
7879
cdefc55d
KB
78802011-01-26 Kevin Buettner <kevinb@redhat.com>
7881
7882 * remote-mips.c: Add internationalization mark ups. Remove
7883 trailing \n from already marked up strings.
7884
a81766d8
TT
78852011-01-26 Tom Tromey <tromey@redhat.com>
7886
7887 * python/py-prettyprint.c (print_string_repr): Clear
7888 'addressprint' option when calling val_print_string.
7889 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7890 option when calling val_print_string.
7891
74aedc46
TT
78922011-01-26 Tom Tromey <tromey@redhat.com>
7893
7894 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7895 GDB_PY_LL_ARG.
7896 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7897 macros.
7898 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7899 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7900 (gdb_py_long_as_ulongest): New defines.
7901 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7902 (gdb_py_int_as_long): Declare.
7903 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7904 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7905 (valpy_long): Add comment.
7906 * python/py-utils.c (get_addr_from_python): Use
7907 gdb_py_long_as_ulongest. Handle overflow properly.
7908 (gdb_py_object_from_longest): New function.
7909 (gdb_py_object_from_ulongest): Likewise.
7910 (gdb_py_int_as_long): Likewise.
7911 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7912 * python/py-symtab.c (salpy_get_pc): Use
7913 gdb_py_long_from_ulongest.
7914 (salpy_get_line): Use PyInt_FromLong.
7915 * python/py-param.c (set_parameter_value): Use
7916 gdb_py_int_as_long.
7917 * python/py-lazy-string.c (stpy_get_address): Use
7918 gdb_py_long_from_ulongest.
7919 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7920 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7921 * python/py-breakpoint.c (bppy_set_thread): Use
7922 gdb_py_int_as_long.
7923 (bppy_set_task): Likewise.
7924 (bppy_set_ignore_count): Likewise.
7925 (bppy_set_hit_count): Likewise.
7926 * python/py-block.c (blpy_get_start): Use
7927 gdb_py_object_from_ulongest.
7928 (blpy_get_end): Likewise.
7929 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7930
e4f6d2ec
TJB
79312011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7932
7933 PR/symtab 11766:
7934 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7935 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7936 equality test for objfile, initialize addr_low if needed.
7937
b30aa278
PA
79382011-01-25 Pedro Alves <pedro@codesourcery.com>
7939
7940 * tui/tui-regs.c (tui_register_format): Remove dead code.
7941
ab2188aa
PA
79422011-01-25 Pedro Alves <pedro@codesourcery.com>
7943
7944 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7945 instead of print_scalar_formatted.
7946 (print_scalar_formatted): Don't handle 's' format strings here,
7947 and add an assertion that we never see such format here.
7948 * valprint.h (val_print_scalar_formatted): Declare.
7949 * valprint.c (val_print_scalar_formatted): New.
7950 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7951 instead of print_scalar_formatted.
7952 * jv-valprint.c (java_val_print): Ditto.
7953 * p-valprint.c (pascal_val_print): Ditto.
7954 * ada-valprint.c (ada_val_print_1): Ditto.
7955 * f-valprint.c (f_val_print): Ditto.
7956 * infcmd.c (registers_info): Ditto.
7957 * m2-valprint.c (m2_val_print): Ditto.
7958
66d61a4c
PA
79592011-01-25 Pedro Alves <pedro@codesourcery.com>
7960
7961 * m2-valprint.c (print_unbounded_array): Pass
7962 value_contents_for_printing rather than value_contents, to
7963 m2_print_array_contents. Also pass in the value.
7964
831adc1f
JK
79652011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7966
7967 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7968 (save_gdb_index_command): Switch to .gdb_index version 4.
7969
20622269
PA
79702011-01-25 Pedro Alves <pedro@codesourcery.com>
7971
7972 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7973 than frame_register, and always pass a valid value to val_print.
7974
585fdaa1
PA
79752011-01-25 Pedro Alves <pedro@codesourcery.com>
7976
7977 Centralize printing "<optimized out>".
7978
7979 * valprint.h (val_print_optimized_out): Declare.
7980 * cp-valprint.c (cp_print_value_fields): Use
7981 val_print_optimized_out.
7982 * jv-valprint.c (java_print_value_fields): Ditto.
7983 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7984 * printcmd.c (print_formatted): Ditto.
7985 * valprint.c (valprint_check_validity): Ditto.
7986 (value_check_printable): Ditto.
7987 (val_print_optimized_out): New.
7988
29ec5263
PA
79892011-01-25 Pedro Alves <pedro@codesourcery.com>
7990
7991 * infcmd.c (default_print_registers_info): Allocate values so to
7992 never pass a NULL value to val_print.
7993
de4127a3
PA
79942011-01-25 Pedro Alves <pedro@codesourcery.com>
7995
7996 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7997 boolean. Make sure to always pass a value that matches the
7998 contents buffer to callees. Preserve `address' for following
7999 iterations.
8000 * value.c (value_contents_for_printing_const): New.
8001 (value_address): Constify value argument.
8002 * value.h (value_contents_for_printing_const): Declare.
8003 (value_address): Constify value argument.
8004
ee99023e
PA
80052011-01-25 Pedro Alves <pedro@codesourcery.com>
8006
8007 * regcache.c (struct regcache_descr): Rename
8008 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8009 and sizeof_cooked_register_valid_p to
8010 sizeof_cooked_register_status.
8011 (init_regcache_descr): Adjust.
8012 (struct regcache): Rename register_valid_p field to
8013 register_status.
8014 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8015 (do_cooked_read): Adjust.
8016 (regcache_valid_p): Rename to ...
8017 (regcache_register_status): ... this. Adjust.
8018 (regcache_invalidate): Adjust.
8019 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8020 Adjust.
8021 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8022 as unavailable, not valid.
8023 (regcache_dump): Adjust.
8024 * regcache.h (enum register_status): New.
8025 (regcache_register_status): Declare.
8026 (regcache_invalidate): Delete declaration.
8027 * corelow.c (get_core_registers): Adjust.
8028 * tracepoint.c (tfile_fetch_registers): Adjust.
8029 * trad-frame.c (REG_VALUE): Rename to ...
8030 (TF_REG_VALUE): ... this.
8031 (REG_UNKNOWN): Rename to ...
8032 (TF_REG_UNKNOWN): ... this.
8033 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8034 * mi/mi-main.c (register_changed_p): Adjust.
8035
99e42fd8
PA
80362011-01-25 Pedro Alves <pedro@codesourcery.com>
8037
8038 * regcache.c (struct regcache_descr): Remove outdated comment.
8039 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8040 overallocate hack.
8041 (regcache_xmalloc): Rename to ...
8042 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8043 Allocate the regcache type accordingly.
8044 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8045 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8046 cooked registers, not raw.
8047 (regcache_dup_no_passthrough): Delete.
8048 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8049 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8050 mention obsolete write_register_bytes.
8051 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8052
f7605bc2
PA
80532011-01-25 Pedro Alves <pedro@codesourcery.com>
8054
8055 Stop remote_read_bytes from handling partial reads itself.
8056
8057 * remote-fileio.c: Include target.h.
8058 (remote_fileio_write_bytes): Delete.
8059 (remote_fileio_func_open, remote_fileio_func_write)
8060 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8061 target_read_memory.
8062 (remote_fileio_func_stat): Use target_read_memory and
8063 target_write_memory.
8064 (remote_fileio_func_gettimeofday): Use target_write_memory.
8065 (remote_fileio_func_system): Use target_read_memory.
8066 * remote.c (remote_write_bytes): Make it static.
8067 (remote_read_bytes): Don't handle partial reads here.
8068 * remote.h (remote_read_bytes): Delete declaration.
8069
efc0eabd
PA
80702011-01-25 Pedro Alves <pedro@codesourcery.com>
8071
8072 Simplify XML parsing a bit.
8073
8074 * xml-support.h (gdb_xml_parse_quick): Declare.
8075 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8076 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8077 parameter.
8078 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8079 gdb_xml_create_parser_and_cleanup_1.
8080 (gdb_xml_parse_quick): New.
8081 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8082 * osdata.c (osdata_parse): Ditto.
8083 * remote.c (remote_threads_info): Ditto.
8084 * solib-target.c (solib_target_parse_libraries): Ditto.
8085 * xml-syscall.c (syscall_parse_xml): Ditto.
8086 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8087
314d366a
KB
80882011-01-24 Kevin Buettner <kevinb@redhat.com>
8089
8090 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8091 with remote-mips.o added to gdb_target_obs.
8092 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8093
a491d753
PA
80942011-01-24 Pedro Alves <pedro@codesourcery.com>
8095
8096 * ada-valprint.c (val_print_packed_array_elements): Pass the
8097 correct struct value to val_print.
8098 (ada_val_print_1): Ditto.
8099
490f124f
PA
81002011-01-24 Pedro Alves <pedro@codesourcery.com>
8101
8102 Don't lose embedded_offset in printing routines throughout.
8103
8104 * valprint.h (val_print_array_elements): Change prototype.
8105 * valprint.c (val_print_array_elements): Add `embedded_offset'
8106 parameter, and adjust to pass it down to val_print, while passing
8107 `valaddr' or `address' unmodified. Take embedded_offset into
8108 account when checking repetitions.
8109 * c-valprint.c (c_val_print): Pass embedded_offset to
8110 val_print_array_elements instead of adjusting `valaddr' and
8111 `address'.
8112 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8113 embedded_offset to val_print_array_elements instead of adjusting
8114 `valaddr'.
8115 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8116 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8117 val_print_array_elements and pascal_object_print_value_fields
8118 instead of adjusting `valaddr'.
8119 (pascal_object_print_value_fields): Add `offset' parameter, and
8120 adjust to use it.
8121 (pascal_object_print_value): Add `offset' parameter, and adjust to
8122 use it.
8123 (pascal_object_print_static_field): Use
8124 value_contents_for_printing/value_embedded_offset, rather than
8125 value_contents.
8126 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8127 parameter, and adjust to use it. Use
8128 value_contents_for_printing/value_embedded_offset, rather than
8129 value_contents.
8130 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8131 (ada_val_print_array): Add `offset' parameter, and adjust to use
8132 it.
8133 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8134 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8135 Instead work with offsets. Use
8136 value_contents_for_printing/value_embedded_offset, rather than
8137 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8138 and use value_from_pointer to extract a target pointer, rather
8139 than value_from_longest.
8140 (print_variant_part): Add `offset' parameter. Replace
8141 `outer_valaddr' parameter by a new `outer_offset' parameter.
8142 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8143 (ada_value_print): Use
8144 value_contents_for_printing/value_embedded_offset, rather than
8145 value_contents.
8146 (print_record): Add `offset' parameter, and adjust to pass it
8147 down.
8148 (print_field_values): Add `offset' parameter. Replace
8149 `outer_valaddr' parameter by a new `outer_offset' parameter.
8150 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8151 Use value_contents_for_printing/value_embedded_offset, rather than
8152 value_contents.
8153 * d-valprint.c (dynamic_array_type): Use
8154 value_contents_for_printing/value_embedded_offset, rather than
8155 value_contents.
8156 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8157 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8158 (java_print_value_fields): Take `offset' into account. Don't
8159 re-adjust `valaddr'. Instead pass down adjusted offsets.
8160 (java_val_print): Take `embedded_offset' into account. Pass it to
8161 java_print_value_fields.
8162 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8163 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8164 down adjusted offsets.
8165 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8166 (f_val_print): Take `embedded_offset' into account.
8167
7bfc9434
JB
81682011-01-21 Joel Brobecker <brobecker@adacore.com>
8169
8170 * inflow.c: Include "gdbcmd.h".
8171 (interactive_mode): New static global, moved here from top.c.
8172 (show_interactive_mode): New function, moved here from top.c.
8173 use gdb_has_a_terminal instead of input_from_terminal_p to
8174 determine the current mode.
8175 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8176 setting.
8177 (_initialize_inflow): Add the "set/show interactive-mode"
8178 commands. Moved here from top.c, after having adjusted slightly
8179 the help text.
8180 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8181 to inflow.c.
8182 (input_from_terminal_p): Remove handling of "interactive-mode"
8183 setting, moved to infow.c.
8184 (init_main): Remove creation of the "set/show interactive-mode"
8185 commands, moved to inflow.c.
8186
44603653
JB
81872011-01-19 Joel Brobecker <brobecker@adacore.com>
8188
8189 * NEWS: Add entry for native ia64-hpux support.
8190
4694da01
TT
81912011-01-19 Tom Tromey <tromey@redhat.com>
8192
8193 PR mi/8618:
8194 * thread.c (free_thread): Free 'name'.
8195 (print_thread_info): Emit thread name. Change CLI output.
8196 (thread_name_command): New function.
8197 (do_captured_thread_select): Emit newline.
8198 (_initialize_thread): Register 'thread name' command.
8199 * target.h (struct target_ops) <to_thread_name>: New field.
8200 (target_thread_name): New macro.
8201 * target.c (update_current_target): Handle to_thread_name.
8202 * python/py-infthread.c (thpy_get_name): New function.
8203 (thpy_set_name): Likewise.
8204 (thread_object_getset): Add "name".
8205 * linux-nat.c (linux_nat_thread_name): New function.
8206 (linux_nat_add_target): Set to_thread_name.
8207 * gdbthread.h (struct thread_info) <name>: New field.
8208
10d44370
JB
82092011-01-18 Joel Brobecker <brobecker@adacore.com>
8210
8211 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8212 (ada_val_print_1): Likewise.
8213
e3acb115
JB
82142011-01-18 Joel Brobecker <brobecker@adacore.com>
8215
8216 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8217 upper limit address is not greater than the function end address
8218 when the upper limit could not be computed using the debugging
8219 info.
8220
dc92e161
TT
82212011-01-17 Tom Tromey <tromey@redhat.com>
8222
8223 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8224 get_regcomp_error.
8225 * utils.c: Include gdb_regex.h.
8226 (do_regfree_cleanup): New function.
8227 (make_regfree_cleanup): Likewise.
8228 (get_regcomp_error): Likewise.
8229 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8230
f55af66d
TT
82312011-01-17 Tom Tromey <tromey@redhat.com>
8232
8233 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8234 re_compile_fastmap.
8235
a5a44b53
PM
82362011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8237
8238 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8239 for internal variables.
8240 (last_was_structop): New static variable.
8241 (COMPLETE): New token.
8242 (field_exp): New rule to group all '.' suffix handling.
8243 Add mark_struct_expression calls when approriate to be able
8244 to correctly find fields for completion.
8245 (yylex): Adapt to handle field completion and set INTVAR when
8246 required.
8247
2c291032
YQ
82482011-01-14 Yao Qi <yao@codesourcery.com>
8249
8250 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8251 save_reggroup, restore_reggroup and all_reggroup.
8252
447b483c
JB
82532011-01-14 Joel Brobecker <brobecker@adacore.com>
8254
8255 * ada-valprint. (ada_printchar): Use the correct type length
8256 in call to ada_emit_char.
8257 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8258
7b64a93b
PM
82592011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8260
8261 * solib-som.h (hpux_major_release): Declare variable here.
8262 * solib-som.c: Remove <sys/utsname.h> header.
8263 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8264 (hpux_major_release): Make global, change default value to
8265 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 8266 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
8267 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8268 Add "solib-som.h" header.
8269 (set_hpux_major_release): New function.
8270 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8271
4e18c053
MF
82722011-01-14 Mike Frysinger <vapier@gentoo.org>
8273
8274 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8275
a9df6b22
JB
82762011-01-14 Joel Brobecker <brobecker@adacore.com>
8277
8278 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8279 new-line at end of warning message.
8280 (ia64_hpux_store_register): Remove trailing new-line at end of
8281 error message.
8282 * ia64-hpux-tdep.c: Rephrase comment.
8283 * solib-ia64-hpux.c (struct dld_info): Change type of field
8284 dld_flags from "long long" to ULONGEST.
8285
ecb956dd
PA
82862011-01-14 Pedro Alves <pedro@codesourcery.com>
8287
8288 * target.h (deprecated_child_ops): Delete declaration.
8289 * target.c (deprecated_child_ops): Delete definition.
8290
76adfcae
PA
82912011-01-14 Pedro Alves <pedro@codesourcery.com>
8292
8293 * Makefile.in (hpux-thread.o): Delete rule.
8294 * configure.ac: Don't check for HPUX DCE threads support.
8295 * configure, config.in: Regenerate.
8296 * hppa-hpux-nat.c (child_suppress_run): Delete.
8297 (hppa_hpux_child_can_run): Delete.
8298 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8299 * hpux-thread.c: Delete.
8300
042e866e
JB
83012011-01-13 Joel Brobecker <brobecker@adacore.com>
8302
8303 * hpux-thread.c (hpux_pid_to_str): Delete.
8304
4ffa5a33
JB
83052011-01-13 Joel Brobecker <brobecker@adacore.com>
8306
8307 * ada-valprint.c (ada_emit_char): Remove strange code.
8308 Check that c is <= UCHAR_MAX before passing it to isascii.
8309 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8310
de8fa76c
JB
83112011-01-13 Joel Brobecker <brobecker@adacore.com>
8312
8313 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8314 to the case where instream is stdin.
8315
c4de7027
JB
83162011-01-13 Joel Brobecker <brobecker@adacore.com>
8317
8318 * ia64-tdep.h (struct regcache): Forward declare.
8319 (struct ia64_infcall_ops): New struct type.
8320 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8321 and "infcall_ops".
8322 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8323 Renames ia64_find_global_pointer.
8324 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8325 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8326 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8327 methods.
8328 (ia64_infcall_ops): New static global constant.
8329 (ia64_gdbarch_init): Set tdep->infcall_ops.
8330 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8331 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8332 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8333 (ia64_hpux_dummy_code): New static global constant.
8334 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8335 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8336 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8337 New function.
8338 (ia64_hpux_infcall_ops): New static global constant.
8339 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8340 for inferior function calls to work properly on ia64-hpux.
8341
77ca787b
JB
83422011-01-13 Joel Brobecker <brobecker@adacore.com>
8343
8344 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8345 * ia64-tdep.h (struct frame_info): forward declaration.
8346 (struct gdbarch_tdep): Add field size_of_register_frame.
8347 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8348 to determine the size of the register frame.
8349 (ia64_size_of_register_frame): New function.
8350 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8351 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8352 (IA64_HPUX_UREG_REASON): New macro.
8353 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8354 New functions.
8355 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8356 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8357 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8358 objects.
8359
92c9a463
JB
83602011-01-13 Joel Brobecker <brobecker@adacore.com>
8361
8362 Add support for ia64-hpux.
8363 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8364 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8365
8366 * configure.host: Add handling for ia64-hpux hosts. Add associated
8367 floatformats.
8368 * configure.tgt: Add handling for ia64-hpux targets.
8369 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8370 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8371 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8372
f688d93f
JB
83732011-01-13 Joel Brobecker <brobecker@adacore.com>
8374
8375 [ttrace] Compute thread list immediately after attach.
8376 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8377 New subprogram.
8378 (inf_ttrace_attach): Use it.
8379
1b89e62f
JB
83802011-01-13 Joel Brobecker <brobecker@adacore.com>
8381
8382 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8383 if we could not determine the frame's function address. Instead,
8384 use the frame's PC, and then continue.
8385
3e5e6e2a
JB
83862011-01-13 Joel Brobecker <brobecker@adacore.com>
8387
8388 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8389 not already defined.
8390
825d6d8a
JB
83912011-01-13 Joel Brobecker <brobecker@adacore.com>
8392
8393 * ia64-tdep.c (ia64_struct_type_p): New function.
8394 (ia64_extract_return_value): Handle integral values that are
8395 less than 8 bytes long.
8396 (ia64_push_dummy_call): Likewise.
8397
7458e667
JB
83982011-01-13 Joel Brobecker <brobecker@adacore.com>
8399
8400 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8401 floatformat_ia64_ext.
8402 (floatformat_ia64_ext_big): New static const.
8403 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8404
1b05df00
TT
84052011-01-12 Tom Tromey <tromey@redhat.com>
8406
8407 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8408 messages.
8409 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8410 (mi_cmd_thread_list_ids): Likewise.
8411 (mi_cmd_data_list_changed_registers): Likewise.
8412 (mi_cmd_data_list_register_values): Likewise.
8413 (mi_cmd_data_write_register_values): Likewise.
8414 (mi_cmd_data_evaluate_expression): Likewise.
8415 (mi_cmd_data_read_memory): Likewise.
8416 (mi_cmd_data_read_memory_bytes): Likewise.
8417 (mi_cmd_data_write_memory): Likewise.
8418 (mi_cmd_enable_timings): Likewise.
8419 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8420 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8421 (mi_cmd_var_delete): Likewise.
8422 (mi_cmd_var_set_format): Likewise.
8423 (mi_cmd_var_show_format): Likewise.
8424 (mi_cmd_var_info_num_children): Likewise.
8425 (mi_cmd_var_list_children): Likewise.
8426 (mi_cmd_var_info_type): Likewise.
8427 (mi_cmd_var_info_expression): Likewise.
8428 (mi_cmd_var_show_attributes): Likewise.
8429 (mi_cmd_var_assign): Likewise.
8430 (mi_cmd_var_update): Likewise.
8431 (mi_cmd_enable_pretty_printing): Likewise.
8432 (mi_cmd_var_set_update_range): Likewise.
8433 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8434 messages.
8435 (mi_cmd_target_file_put): Likewise.
8436 (mi_cmd_target_file_delete): Likewise.
8437 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8438 messages.
8439 (mi_cmd_stack_info_depth): Likewise.
8440 (mi_cmd_stack_list_locals): Likewise.
8441 (mi_cmd_stack_list_args): Likewise.
8442 (mi_cmd_stack_select_frame): Likewise.
8443 (mi_cmd_stack_select_frame): Likewise.
8444 (mi_cmd_stack_info_frame): Likewise.
8445 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8446 messages.
8447 (mi_cmd_file_list_exec_source_files): Likewise.
8448 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8449 (mi_cmd_env_cd): Likewise.
8450 (mi_cmd_env_path): Likewise.
8451 (mi_cmd_env_dir): Likewise.
8452 (mi_cmd_inferior_tty_show): Likewise.
8453 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8454 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8455 (mi_cmd_break_watch): Likewise.
8456
ad422571
TJB
84572011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8458
8459 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8460 (ppc_linux_insert_hw_breakpoint): Likewise.
8461 (ppc_linux_remove_hw_breakpoint): Likewise.
8462 (ppc_linux_insert_watchpoint): Likewise.
8463
c2ff108b
JK
84642011-01-12 Andrew Burgess <aburgess@broadcom.com>
8465 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 PR fortran/11104 and DWARF unbound arrays detection.
8468 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8469 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8470 unspecified upper bound.
8471 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8472 variables array_size_array, tmp_type and offset_item. New variable
8473 array. Remove call to f77_get_upperbound. New variables array_type
8474 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8475 the final call to deprecated_set_value_type.
8476
41e8491f
JK
84772011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 Make value allocations more lazy.
8480 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8481 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 8482 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
8483 instead of allocate_value and set_value_lazy.
8484 * findvar.c (value_of_register_lazy): Likewise.
8485 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 8486 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
8487 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8488 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8489 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8490 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8491 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8492 the end, remove set_value_lazy there.
8493 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8494 instead of allocate_value and set_value_lazy when possible.
8495 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8496 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8497 of allocate_value and set_value_lazy.
8498 (value_from_contents_and_address): Use allocate_value_lazy instead of
8499 allocate_value and set_value_lazy when possible.
8500
b716877b
AB
85012011-01-12 Andrew Burgess <aburgess@broadcom.com>
8502
8503 * disasm.c (dump_insns): Support dumping opcodes for MI.
8504 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8505 dumping of instruction opcodes.
8506
d5ae309f
JB
85072011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8508
8509 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8510 appropiately.
8511
98871305
TT
85122011-01-11 Tom Tromey <tromey@redhat.com>
8513
8514 * thread.c (do_captured_thread_select): Emit newline before
8515 printing frame.
8516
c378eb4e
MS
85172011-01-11 Michael Snyder <msnyder@vmware.com>
8518
8519 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8520 * score-tdep.c: Ditto.
8521 * score-tdep.h: Ditto.
8522 * ser-base.c: Ditto.
8523 * ser-go32.c: Ditto.
8524 * serial.c: Ditto.
8525 * serial.h: Ditto.
8526 * ser-mingw.c: Ditto.
8527 * ser-pipe.c: Ditto.
8528 * ser-tcp.c: Ditto.
8529 * ser-unix.c: Ditto.
8530 * sh64-tdep.c: Ditto.
8531 * shnbsd-nat.c: Ditto.
8532 * sh-tdep.c: Ditto.
8533 * sh-tdep.h: Ditto.
8534 * solib.c: Ditto.
8535 * solib-darwin.c: Ditto.
8536 * solib-frv.c: Ditto.
8537 * solib.h: Ditto.
8538 * solib-irix.c: Ditto.
8539 * solib-osf.c: Ditto.
8540 * solib-pa64.c: Ditto.
8541 * solib-som.c: Ditto.
8542 * solib-spu.c: Ditto.
8543 * solib-sunos.c: Ditto.
8544 * solib-svr4.c: Ditto.
8545 * solist.h: Ditto.
8546 * sol-thread.c: Ditto.
8547 * somread.c: Ditto.
8548 * source.c: Ditto.
8549 * source.h: Ditto.
8550 * sparc64-linux-tdep.c: Ditto.
8551 * sparc64-tdep.c: Ditto.
8552 * sparc-linux-nat.c: Ditto.
8553 * sparc-linux-tdep.c: Ditto.
8554 * sparc-sol2-nat.c: Ditto.
8555 * sparc-sol2-tdep.c: Ditto.
8556 * sparc-tdep.c: Ditto.
8557 * sparc-tdep.h: Ditto.
8558 * spu-tdep.c: Ditto.
8559 * stabsread.c: Ditto.
8560 * stabsread.h: Ditto.
8561 * stack.c: Ditto.
8562 * symfile.c: Ditto.
8563 * symfile.h: Ditto.
8564 * symmisc.c: Ditto.
8565 * symtab.c: Ditto.
8566 * symtab.h: Ditto.
8567 * target.c: Ditto.
8568 * target-descriptions.c: Ditto.
8569 * target-descriptions.h: Ditto.
8570 * target.h: Ditto.
8571 * target-memory.c: Ditto.
8572 * terminal.h: Ditto.
8573 * thread.c: Ditto.
8574 * top.c: Ditto.
8575 * tracepoint.c: Ditto.
8576 * tracepoint.h: Ditto.
8577 * trad-frame.h: Ditto.
8578 * typeprint.c: Ditto.
8579
581e13c1
MS
85802011-01-11 Michael Snyder <msnyder@vmware.com>
8581
8582 * ui-file.c: Comment cleanup, mostly periods and spaces.
8583 * ui-file.h: Ditto.
8584 * ui-out.c: Ditto.
8585 * ui-out.h: Ditto.
8586 * utils.c: Ditto.
8587 * v850-tdep.c: Ditto.
8588 * valarith.c: Ditto.
8589 * valops.c: Ditto.
8590 * valprint.c: Ditto.
8591 * valprint.h: Ditto.
8592 * value.c: Ditto.
8593 * value.h: Ditto.
8594 * varobj.c: Ditto.
8595 * varobj.h: Ditto.
8596 * vax-tdep.c: Ditto.
8597 * vec.c: Ditto.
8598 * vec.h: Ditto.
8599 * version.h: Ditto.
8600 * windows-nat.c: Ditto.
8601 * windows-tdep.c: Ditto.
8602 * xcoffread.c: Ditto.
8603 * xcoffsolib.c: Ditto.
8604 * xml-support.c: Ditto.
8605 * xstormy16-tdep.c: Ditto.
8606 * xtensa-tdep.c: Ditto.
8607 * xtensa-tdep.h: Ditto.
8608
90e4670f
TJB
86092011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8610
8611 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8612 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8613
e09342b5
TJB
86142011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8615 Thiago Jung Bauermann <bauerman@br.ibm.com>
8616
8617 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 8618 * breakpoint.h
e09342b5
TJB
8619 (struct breakpoint_ops) <resources_needed>: New method.
8620 Initialize to NULL in all existing breakpoint_ops instances.
8621 (struct breakpoint) <exact>: New field.
8622 (target_exact_watchpoints): Declare external global.
8623 * breakpoint.c (target_exact_watchpoints): New global flag.
8624 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8625 b->enable_state to bp_enabled before calling
8626 hw_watchpoint_used_count.
8627 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8628 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8629 if available.
8630 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8631 if the watchpoint is exact.
8632 (resources_needed_watchpoint): New function.
8633 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8634 (watch_command_1): Set b->exact if the user asked for an exact
8635 watchpoint and one can be set.
8636 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8637 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8638 the user asks for an exact watchpoint and one can be set. Return
8639 number of needed debug registers to watch the expression.
8640 * gdbtypes.c (is_scalar_type): New function, based on
8641 valprint.c:scalar_type_p.
8642 (is_scalar_type_recursive): New function.
8643 * gdbtypes.h (is_scalar_type_recursive): Declare.
8644 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8645 handle regions when ranged watchpoints are available.
8646 (create_watchpoint_request): New function.
8647 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8648 create_watchpoint_request.
8649 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8650 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8651 `set powerpc' and `show powerpc' commands.
8652 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8653 Mention documentation comment in the target macro.
8654 (target_region_ok_for_hw_watchpoint): Document return value.
8655
9fa40276
TJB
86562011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8657
8658 * breakpoint.c (update_watchpoint): Decide on using a software or
8659 hardware watchpoint after the bp_locations are created.
8660
77b06cd7
TJB
86612010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8662
8663 Convert hardware watchpoints to use breakpoint_ops.
8664 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8665 <insert_location>: ... this. Return int instead of void.
8666 Accept pointer to struct bp_location instead of pointer to
8667 struct breakpoint. Adapt all implementations.
f2eb0bc8 8668 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
8669 <remove_location>: ... this. Accept pointer to struct bp_location
8670 instead of pointer to struct breakpoint. Adapt all implementations.
8671 * breakpoint.c (insert_catchpoint): Delete function.
8672 (insert_bp_location): Call the watchpoint or catchpoint's
8673 breakpoint_ops.insert method.
8674 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8675 breakpoint_ops.remove method.
8676 (insert_watchpoint, remove_watchpoint): New functions.
8677 (watchpoint_breakpoint_ops): New structure.
8678 (watch_command_1): Initialize the OPS field.
8679 * inf-child.c (inf_child_insert_fork_catchpoint)
8680 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8681 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8682 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8683 Delete functions.
8684 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8685 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8686 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8687 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8688 * target.c (update_current_target): Change default implementation of
8689 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8690 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8691 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8692 to_set_syscall_catchpoint to return_one.
8693 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8694 (debug_to_insert_exec_catchpoint): Report return value.
8695 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8696 (to_insert_exec_catchpoint): Change declaration to return int instead
8697 of void.
8698
9b20d036
MS
86992011-01-11 Michael Snyder <msnyder@vmware.com>
8700
8701 * arm-tdep.c: Internationalization.
8702 * c-lang.c: Ditto.
8703 * charset.c: Ditto.
8704 * fork-child.c: Ditto.
8705 * nto-procfs.c: Ditto.
8706 * ppc-sysv-tdep.c: Ditto.
8707 * procfs.c: Ditto.
8708 * remote-mips.c: Ditto.
8709 * remote.c: Ditto.
8710 * rs6000-nat.c: Ditto.
8711 * rs6000-tdep.c: Ditto.
8712 * target.c: Ditto.
8713 * valops.c: Ditto.
8714 * value.c: Ditto.
8715 * xml-support.c: Ditto.
8716 * mi/mi-cmd-break.c: Ditto.
8717 * mi/mi-cmd-var.c: Ditto.
8718 * mi/mi-interp.c: Ditto.
8719 * mi/mi-main.c: Ditto.
8720
dae477fe
AB
87212011-01-11 Andrew Burgess <aburgess@broadcom.com>
8722
8723 * remote-sim.c (gdbsim_store_register): Update API to
8724 sim_store_register to check more error conditions.
8725
0df8b418
MS
87262011-01-10 Michael Snyder <msnyder@vmware.com>
8727
8728 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8729 * nto-tdep.c: Ditto.
8730 * nto-tdep.h: Ditto.
8731 * objc-exp.y: Ditto.
8732 * objc-lang.c: Ditto.
8733 * objfiles.c: Ditto.
8734 * objfiles.h: Ditto.
8735 * observer.c: Ditto.
8736 * opencl-lang.c: Ditto.
8737 * osabi.c: Ditto.
8738 * parse.c: Ditto.
8739 * parser-defs.h: Ditto.
8740 * p-exp.y: Ditto.
8741 * p-lang.c: Ditto.
8742 * posix-hdep.c: Ditto.
8743 * ppcbug-rom.c: Ditto.
8744 * ppc-linux-nat.c: Ditto.
8745 * ppc-linux-tdep.c: Ditto.
8746 * ppc-linux-tdep.h: Ditto.
8747 * ppcnbsd-tdep.c: Ditto.
8748 * ppcobsd-tdep.c: Ditto.
8749 * ppcobsd-tdep.h: Ditto.
8750 * ppc-sysv-tdep.c: Ditto.
8751 * ppc-tdep.h: Ditto.
8752 * printcmd.c: Ditto.
8753 * proc-abi.c: Ditto.
8754 * proc-flags.c: Ditto.
8755 * procfs.c: Ditto.
8756 * proc-utils.h: Ditto.
8757 * progspace.h: Ditto.
8758 * prologue-value.c: Ditto.
8759 * prologue-value.h: Ditto.
8760 * psympriv.h: Ditto.
8761 * psymtab.c: Ditto.
8762 * p-typeprint.c: Ditto.
8763 * p-valprint.c: Ditto.
8764 * ravenscar-sparc-thread.c: Ditto.
8765 * ravenscar-thread.c: Ditto.
8766 * ravenscar-thread.h: Ditto.
8767 * record.c: Ditto.
8768 * regcache.c: Ditto.
8769 * regcache.h: Ditto.
8770 * remote.c: Ditto.
8771 * remote-fileio.c: Ditto.
8772 * remote-fileio.h: Ditto.
8773 * remote.h: Ditto.
8774 * remote-m32r-sdi.c: Ditto.
8775 * remote-mips.c: Ditto.
8776 * remote-sim.c: Ditto.
8777 * rs6000-aix-tdep.c: Ditto.
8778 * rs6000-nat.c: Ditto.
8779 * rs6000-tdep.c: Ditto.
8780
0d7a18f7
MS
87812011-01-10 Michael Snyder <msnyder@vmware.com>
8782
8783 * charset.c (validate): Internationalization.
8784 * coffread.c (read_one_sym): Ditto.
8785 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8786 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8787 * inflow.c (new_tty): Ditto.
8788 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8789 * m32c-tdep.c (m32c_return_value): Ditto.
8790 * mep-tdep.c (mep_store_return_value): Ditto.
8791 * score-tdep.c (score7_fetch_insn): Ditto.
8792 * ser-mingw.c (pipe_windows_open): Ditto.
8793 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8794 * spu-tdep.c (spu_register_type): Ditto.
8795 * tracepoint.c (trace_find_command): Ditto.
8796 * valarith.c (value_pos): Ditto.
8797
9a153e0b
JB
87982011-01-10 Joel Brobecker <brobecker@adacore.com>
8799
8800 * ada-valprint.c (printstr): Minor comment reformatting.
8801
35ecd2d6
MS
88022011-01-08 Michael Snyder <msnyder@vmware.com>
8803
8804 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8805 markup.
8806
1777feb0
MS
88072011-01-08 Michael Snyder <msnyder@vmware.com>
8808
8809 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8810 * hppa-hpux-tdep.c: Ditto.
8811 * hppa-linux-nat.c: Ditto.
8812 * hppa-linux-tdep.c: Ditto.
8813 * hppanbsd-tdep.c: Ditto.
8814 * hppa-tdep.c: Ditto.
8815 * hppa-tdep.h: Ditto.
8816 * hpux-thread.c: Ditto.
8817 * i386-cygwin-tdep.c: Ditto.
8818 * i386-darwin-nat.c: Ditto.
8819 * i386gnu-nat.c: Ditto.
8820 * i386-linux-nat.c: Ditto.
8821 * i386-linux-tdep.c: Ditto.
8822 * i386-nat.c: Ditto.
8823 * i386-nat.h: Ditto.
8824 * i386nbsd-tdep.c: Ditto.
8825 * i386-sol2-nat.c: Ditto.
8826 * i386-stub.c: Ditto.
8827 * i386-tdep.c: Ditto.
8828 * i386-tdep.h: Ditto.
8829 * i387-tdep.c: Ditto.
8830 * ia64-linux-nat.c: Ditto.
8831 * ia64-linux-tdep.c: Ditto.
8832 * ia64-tdep.c: Ditto.
8833 * infcall.c: Ditto.
8834 * infcall.h: Ditto.
8835 * infcmd.c: Ditto.
8836 * inferior.c: Ditto.
8837 * inferior.h: Ditto.
8838 * infloop.c: Ditto.
8839 * inflow.c: Ditto.
8840 * infrun.c: Ditto.
8841 * interps.c: Ditto.
8842 * interps.h: Ditto.
8843 * iq2000-tdep.c: Ditto.
8844 * irix5-nat.c: Ditto.
8845 * jit.c: Ditto.
8846 * jit.h: Ditto.
8847 * jv-exp.y: Ditto.
8848 * jv-lang.c: Ditto.
8849 * jv-lang.h: Ditto.
8850 * jv-typeprint.c: Ditto.
8851 * jv-valprint.c: Ditto.
8852 * language.c: Ditto.
8853 * language.h: Ditto.
8854 * linespec.c: Ditto.
8855 * linux-fork.c: Ditto.
8856 * linux-nat.c: Ditto.
8857 * linux-thread-db.c: Ditto.
8858 * lm32-tdep.c: Ditto.
8859
025bb325
MS
88602011-01-08 Michael Snyder <msnyder@vmware.com>
8861
8862 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8863 * m2-lang.c: Ditto.
8864 * m2-typeprint.c: Ditto.
8865 * m2-valprint.c: Ditto.
8866 * m32c-tdep.c: Ditto.
8867 * m32r-linux-nat.c: Ditto.
8868 * m32r-rom.c: Ditto.
8869 * m32r-tdep.c: Ditto.
8870 * m32r-tdep.h: Ditto.
8871 * m68hc11-tdep.c: Ditto.
8872 * m58klinux-nat.c: Ditto.
8873 * m68k-tdep.c: Ditto.
8874 * m88k-tdep.c: Ditto.
8875 * m88k-tdep.h: Ditto.
8876 * machoread.c: Ditto.
8877 * macrocmd.c: Ditto.
8878 * macroexp.c: Ditto.
8879 * macrotab.c: Ditto.
8880 * main.c: Ditto.
8881 * maint.c: Ditto.
8882 * mdebugread.c: Ditto.
8883 * mdebugread.h: Ditto.
8884 * memattr.c: Ditto.
8885 * memattr.h: Ditto.
8886 * memory-map.h: Ditto.
8887 * mep-tdep.c: Ditto.
8888 * microblaze-rom.c: Ditto.
8889 * microblaze-tdep.c: Ditto.
8890 * minsyms.c: Ditto.
8891 * mips-irix-tdep.c: Ditto.
8892 * mips-linux-nat.c: Ditto.
8893 * mips-linux-tdep.c: Ditto.
8894 * mips-linux-tdep.h: Ditto.
8895 * mipsnbsd-nat.c: Ditto.
8896 * mipsnbsd-tdep.c: Ditto.
8897 * mipsread.c: Ditto.
8898 * mips-tdep.c: Ditto.
8899 * mips-tdep.h: Ditto.
8900 * mn10300-linux-tdep.c: Ditto.
8901 * mn10300-tdep.c: Ditto.
8902 * mn10300-tdep.h: Ditto.
8903 * monitor.c: Ditto.
8904 * monitor.h: Ditto.
8905 * moxie-tdep.c: Ditto.
8906 * moxie-tdep.h: Ditto.
8907 * mt-tdep.c: Ditto.
8908
1642781b
MF
89092011-01-08 Mike Frysinger <vapier@gentoo.org>
8910
8911 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8912
394b0adb
JB
89132011-01-08 Robert Millan <rmh@gnu.org>
8914
8915 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8916
b670013c
MS
89172011-01-07 Michael Snyder <msnyder@vmware.com>
8918
8919 * charset.c (_initialize_charset): Fix typo in string.
8920
a743e542
MS
89212011-01-07 Michael Snyder <msnyder@vmware.com>
8922
8923 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8924 for i18n.
f2eb0bc8 8925 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
8926 Split line so that operator goes to beginning of line.
8927 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8928 assignment out of if statement.
8929
0963b4bd
MS
89302011-01-07 Michael Snyder <msnyder@vmware.com>
8931
8932 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8933 * ada-lang.h: Ditto.
8934 * ada-tasks.c: Ditto.
8935 * ada-valprint.c: Ditto.
8936 * aix-threads.c: Ditto.
8937 * alpha-linux-nat.c: Ditto.
8938 * alpha-linux-tdep.c: Ditto.
8939 * alpha-mdebug-tdep.c: Ditto.
8940 * alpha-nat.c: Ditto.
8941 * alpha-osf1-tdep.c: Ditto.
8942 * alpha-tdep.c: Ditto.
8943 * alphabsd-nat.c: Ditto.
8944 * alphabsd-tdep.c: Ditto.
8945 * amd64-darwin-tdep.c: Ditto.
8946 * amd64-linux-nat.c: Ditto.
8947 * amd64-linux-tdep.c: Ditto.
8948 * amd64-sol2-tdep.c: Ditto.
8949 * amd64-tdep.c: Ditto.
8950 * amd64-fbsd-tdep.c: Ditto.
8951 * amd64-nbsd-tdep.c: Ditto.
8952 * amd64-obsd-tdep.c: Ditto.
8953 * amd64-linux-nat.c: Ditto.
8954 * amd64-linux-tdep.c: Ditto.
8955 * arm-tdep.c: Ditto.
8956 * arm-tdep.h: Ditto.
8957 * armnbsd-nat.c: Ditto.
8958 * avr-tdep.c: Ditto.
8959 * bfin-tdep.c: Ditto.
8960 * bsd-kvm.c: Ditto.
8961 * c-typeprintc: Ditto.
8962 * c-valprint.c: Ditto.
8963 * coff-pe-read.h: Ditto.
8964 * coffreead.c: Ditto.
8965 * cris-tdep.c: Ditto.
8966 * d-lang.c: Ditto.
8967 * darwin-nat-info.c: Ditto.
8968 * darwin-nat.c: Ditto.
8969 * dbug-rom.c: Ditto.
8970 * dbxread.c: Ditto.
8971 * dcache.c: Ditto.
8972 * dcache.h: Ditto.
8973 * dec-thread.c: Ditto.
8974 * defs.h: Ditto.
8975 * demangle.c: Ditto.
8976 * dicos-tdep.c: Ditto.
8977 * dictionary.c: Ditto.
8978 * dictionary.h: Ditto.
8979 * dink32-rom.c: Ditto.
8980 * disasm.c: Ditto.
8981 * doublest.c: Ditto.
8982 * dsrec.c: Ditto.
8983 * dummy-frame.c: Ditto.
8984 * dwarf2-frame.c: Ditto.
8985 * dwarf2expr.c: Ditto.
8986 * dwarf2loc.c: Ditto.
8987 * dwarf2read.c: Ditto.
8988 * elfread.c: Ditto.
8989 * environ.c: Ditto.
8990 * eval.c: Ditto.
8991 * event-top.h: Ditto.
8992 * exceptions.c: Ditto.
8993 * exceptions.h: Ditto.
8994 * exec.c: Ditto.
8995 * expprint.c: Ditto.
8996 * expression.h: Ditto.
8997 * f-exp.y: Ditto.
8998 * f-lang.c: Ditto.
8999 * f-lang.h: Ditto.
9000 * f-typeprint.c: Ditto.
9001 * f-valprint.c: Ditto.
9002 * fbsd-nat.c: Ditto.
9003 * findvar.c: Ditto.
9004 * fork-child.c: Ditto.
9005 * frame.c: Ditto.
9006 * frame.h: Ditto.
9007 * frv-linux-tdep.c: Ditto.
9008 * frv-tdep.c: Ditto.
9009 * gcore.c: Ditto.
9010 * gdb-stabs.h: Ditto.
9011 * gdb_assert.h: Ditto.
9012 * gdb_string.h: Ditto.
9013 * gdb_thread_db.h: Ditto.
9014 * gdb_wait.h: Ditto.
9015 * gdbarch.sh: Ditto.
9016 * gdbcore.h: Ditto.
9017 * gdbthread.h: Ditto.
9018 * gdbtypes.c: Ditto.
9019 * gdbtypes.h: Ditto.
9020 * gnu-nat.c: Ditto.
9021 * gnu-nat.h: Ditto.
9022 * gnu-v2-abi.c: Ditto.
9023 * gnu-v3-abi.c: Ditto.
9024 * go32-nat.c: Ditto.
9025 * gdbarch.c: Regenerate.
9026 * gdbarch.h: Regenerate.
9027
ac74f770
MS
90282011-01-07 Michael Snyder <msnyder@vmware.com>
9029
9030 * ax-gdb.c: Adjust some long output strings.
9031 * breakpoint.c: Ditto.
9032 * charset.c: Ditto.
9033 * cp-abi.c: Ditto.
9034 * infcall.c: Ditto.
9035 * infrun.c: Ditto.
9036 * linux-nat.c: Ditto.
9037 * solib-pa64.c: Ditto.
9038 * solib-som.c: Ditto.
9039
d8e22779
TT
90402011-01-06 Tom Tromey <tromey@redhat.com>
9041
9042 PR python/12367:
9043 * NEWS: Add item.
9044 * python/python.c (GdbMethods): Add "newest_frame" method.
9045 * python/python-internal.h (gdbpy_newest_frame): Declare.
9046 * python/py-frame.c (gdbpy_newest_frame): New function.
9047
a255712f
PP
90482010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9049
9050 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9051 * jit.c (jit_debug): New variable.
9052 (show_jit_debug): New function.
9053 (struct target_buffer): Use ULONGEST.
9054 (bfd_open_from_target_memory): Likewise.
9055 (jit_register_code, jit_inferior_init): Add debug output.
9056 (_initialize_jit): Register "debug jit" command.
9057
ccfc3d6e
TT
90582011-01-06 Tom Tromey <tromey@redhat.com>
9059
9060 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9061 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9062 and ARCH_FRAME.
9063
57126e4a
TT
90642011-01-06 Tom Tromey <tromey@redhat.com>
9065
9066 * python/py-frame.c (frapy_block): Use get_frame_block.
9067
16dfc9ce
JB
90682011-01-06 Joel Brobecker <brobecker@adacore.com>
9069
9070 Do not stop on SIGPRIO signals by default
9071 * infrun.c (_initialize_infrun): Unset signal_stop and
9072 signal_print for TARGET_SIGNAL_PRIO.
9073
b1ce2347
JB
90742011-01-06 Joel Brobecker <brobecker@adacore.com>
9075
9076 * ada-tasks.c: Fix style violation in comment.
9077
8f7e195f
JB
90782011-01-06 Joel Brobecker <brobecker@adacore.com>
9079
9080 * linespec.c (decode_compound, find_method): Remove trailing \n
9081 at end of error string.
9082 * solib-irix.c (irix_current_sos): Likewise.
9083 * varobj.c (uninstall_variable): Likewise.
9084
e9bdf92c
JB
90852011-01-06 Joel Brobecker <brobecker@adacore.com>
9086
9087 * copyright.py: New script.
9088 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9089 Launch emacs without exec'ing. Call copyright.py afterwards.
9090
3e43a32a
MS
90912011-01-05 Michael Snyder <msnyder@vmware.com>
9092
9093 * addrmap.c: Shorten lines of >= 80 columns.
9094 * arch-utils.c: Ditto.
9095 * arch-utils.h: Ditto.
9096 * ax-gdb.c: Ditto.
9097 * ax-general.c: Ditto.
9098 * bcache.c: Ditto.
9099 * blockframe.c: Ditto.
9100 * breakpoint.c: Ditto.
9101 * buildsym.c: Ditto.
9102 * c-lang.c: Ditto.
9103 * c-typeprint.c: Ditto.
9104 * charset.c: Ditto.
9105 * coffread.c: Ditto.
9106 * command.h: Ditto.
9107 * corelow.c: Ditto.
9108 * cp-abi.c: Ditto.
9109 * cp-namespace.c: Ditto.
9110 * cp-support.c: Ditto.
9111 * dbug-rom.c: Ditto.
9112 * dbxread.c: Ditto.
9113 * defs.h: Ditto.
9114 * dfp.c: Ditto.
9115 * dfp.h: Ditto.
9116 * dictionary.c: Ditto.
9117 * disasm.c: Ditto.
9118 * doublest.c: Ditto.
9119 * dwarf2-frame.c: Ditto.
9120 * dwarf2expr.c: Ditto.
9121 * dwarf2loc.c: Ditto.
9122 * dwarf2read.c: Ditto.
9123 * elfread.c: Ditto.
9124 * eval.c: Ditto.
9125 * event-loop.c: Ditto.
9126 * event-loop.h: Ditto.
9127 * exceptions.h: Ditto.
9128 * exec.c: Ditto.
9129 * expprint.c: Ditto.
9130 * expression.h: Ditto.
9131 * f-lang.c: Ditto.
9132 * f-valprint.c: Ditto.
9133 * findcmd.c: Ditto.
9134 * frame-base.c: Ditto.
9135 * frame-unwind.c: Ditto.
9136 * frame-unwind.h: Ditto.
9137 * frame.c: Ditto.
9138 * frame.h: Ditto.
9139 * gcore.c: Ditto.
9140 * gdb-stabs.h: Ditto.
9141 * gdb_assert.h: Ditto.
9142 * gdb_dirent.h: Ditto.
9143 * gdb_obstack.h: Ditto.
9144 * gdbcore.h: Ditto.
9145 * gdbtypes.c: Ditto.
9146 * gdbtypes.h: Ditto.
9147 * inf-ttrace.c: Ditto.
9148 * infcall.c: Ditto.
9149 * infcmd.c: Ditto.
9150 * inflow.c: Ditto.
9151 * infrun.c: Ditto.
9152 * inline-frame.h: Ditto.
9153 * language.c: Ditto.
9154 * language.h: Ditto.
9155 * libunwind-frame.c: Ditto.
9156 * libunwind-frame.h: Ditto.
9157 * linespec.c: Ditto.
9158 * linux-nat.c: Ditto.
9159 * linux-nat.h: Ditto.
9160 * linux-thread-db.c: Ditto.
9161 * machoread.c: Ditto.
9162 * macroexp.c: Ditto.
9163 * macrotab.c: Ditto.
9164 * main.c: Ditto.
9165 * maint.c: Ditto.
9166 * mdebugread.c: Ditto.
9167 * memattr.c: Ditto.
9168 * minsyms.c: Ditto.
9169 * monitor.c: Ditto.
9170 * monitor.h: Ditto.
9171 * objfiles.c: Ditto.
9172 * objfiles.h: Ditto.
9173 * osabi.c: Ditto.
9174 * p-typeprint.c: Ditto.
9175 * p-valprint.c: Ditto.
9176 * parse.c: Ditto.
9177 * printcmd.c: Ditto.
9178 * proc-events.c: Ditto.
9179 * procfs.c: Ditto.
9180 * progspace.c: Ditto.
9181 * progspace.h: Ditto.
9182 * psympriv.h: Ditto.
9183 * psymtab.c: Ditto.
9184 * record.c: Ditto.
9185 * regcache.c: Ditto.
9186 * regcache.h: Ditto.
9187 * remote-fileio.c: Ditto.
9188 * remote.c: Ditto.
9189 * ser-mingw.c: Ditto.
9190 * ser-tcp.c: Ditto.
9191 * ser-unix.c: Ditto.
9192 * serial.c: Ditto.
9193 * serial.h: Ditto.
9194 * solib-frv.c: Ditto.
9195 * solib-irix.c: Ditto.
9196 * solib-osf.c: Ditto.
9197 * solib-pa64.c: Ditto.
9198 * solib-som.c: Ditto.
9199 * solib-sunos.c: Ditto.
9200 * solib-svr4.c: Ditto.
9201 * solib-target.c: Ditto.
9202 * solib.c: Ditto.
9203 * somread.c: Ditto.
9204 * source.c: Ditto.
9205 * stabsread.c: Ditto.
9206 * stabsread.c: Ditto.
9207 * stack.c: Ditto.
9208 * stack.h: Ditto.
9209 * symfile-mem.c: Ditto.
9210 * symfile.c: Ditto.
9211 * symfile.h: Ditto.
9212 * symmisc.c: Ditto.
9213 * symtab.c: Ditto.
9214 * symtab.h: Ditto.
9215 * target-descriptions.c: Ditto.
9216 * target-memory.c: Ditto.
9217 * target.c: Ditto.
9218 * target.h: Ditto.
9219 * terminal.h: Ditto.
9220 * thread.c: Ditto.
9221 * top.c: Ditto.
9222 * tracepoint.c: Ditto.
9223 * tracepoint.h: Ditto.
9224 * ui-file.c: Ditto.
9225 * ui-file.h: Ditto.
9226 * ui-out.h: Ditto.
9227 * user-regs.c: Ditto.
9228 * user-regs.h: Ditto.
9229 * utils.c: Ditto.
9230 * valarith.c: Ditto.
9231 * valops.c: Ditto.
9232 * valprint.c: Ditto.
9233 * valprint.h: Ditto.
9234 * value.c: Ditto.
9235 * varobj.c: Ditto.
9236 * varobj.h: Ditto.
9237 * vec.h: Ditto.
9238 * xcoffread.c: Ditto.
9239 * xcoffsolib.c: Ditto.
9240 * xcoffsolib.h: Ditto.
9241 * xml-syscall.c: Ditto.
9242 * xml-tdesc.c: Ditto.
9243
9a2b4c1b
MS
92442011-01-05 Michael Snyder <msnyder@vmware.com>
9245
9246 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9247 * cli/cli-decode.c: Ditto.
9248 * cli/cli-dump.c: Ditto.
9249 * cli/cli-logging.c: Ditto.
9250 * cli/cli-script.c: Ditto.
9251 * cli/cli-setshow.c: Ditto.
9252 * common/signals.c: Ditto.
9253 * mi/mi-cmd-break.c: Ditto.
9254 * mi/mi-cmd-disas.c: Ditto.
9255 * mi/mi-cmd-stack.c: Ditto.
9256 * mi/mi-cmd-var.c: Ditto.
9257 * mi/mi-cmds.c: Ditto.
9258 * mi/mi-common.h: Ditto.
9259 * mi/mi-console.c: Ditto.
9260 * mi/mi-interp.c: Ditto.
9261 * mi/mi-main.c: Ditto.
9262 * osf-share/cma_attr.c: Ditto.
9263 * osf-share/cma_deb_core.h: Ditto.
9264 * osf-share/cma_debug_client.h: Ditto.
9265 * osf-share/cma_handle.h: Ditto.
9266 * osf-share/cma_mutex.h: Ditto.
9267 * osf-share/cma_stack_int.h: Ditto.
9268 * osf-share/cma_tcb_defs.h: Ditto.
9269 * python/py-auto-load.c: Ditto.
9270 * python/py-breakpoint.c: Ditto.
9271 * python/py-cmd.c: Ditto.
9272 * python/py-frame.c: Ditto.
9273 * python/py-objfile.c: Ditto.
9274 * python/py-param.c: Ditto.
9275 * python/py-progspace.c: Ditto.
9276 * python/py-symbol.c: Ditto.
9277 * python/py-value.c: Ditto.
9278 * python/python-internal.h: Ditto.
9279 * python/python.c: Ditto.
9280 * tui/tui-data.c: Ditto.
9281 * tui/tui-disasm.c: Ditto.
9282 * tui/tui-hooks.c: Ditto.
9283 * tui/tui-io.c: Ditto.
9284 * tui/tui-layout.c: Ditto.
9285 * tui/tui-regs.c: Ditto.
9286 * tui/tui-source.c: Ditto.
9287 * tui/tui-stack.c: Ditto.
9288 * tui/tui-win.c: Ditto.
9289 * tui/tui-windata.c: Ditto.
9290 * tui/tui-winsource.c: Ditto.
9291
44944448
JB
92922011-01-05 Joel Brobecker <brobecker@adacore.com>
9293
9294 * configure.ac, gdb.1: Copyright year update.
9295
ebedcab5
JK
92962011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9297
9298 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9299 this_pc_in_block, morestack_msym and morestack_name. Check for
9300 "__morestack" minimal symbol there.
9301
e5cc9f32
JB
93022011-01-03 Joel Brobecker <brobecker@adacore.com>
9303
9304 * symfile.c (find_sym_fns): Add call to dont_repeat.
9305
7b6bb8da
JB
93062011-01-01 Joel Brobecker <brobecker@adacore.com>
9307
9308 Copyright year update in most files (performed by copyright.sh).
9309
71ce852c
JB
93102011-01-01 Joel Brobecker <brobecker@adacore.com>
9311
9312 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 9313
c3c1ebe8 9314For older changes see ChangeLog-2010.
c906108c
SS
9315\f
9316Local Variables:
9317mode: change-log
9318left-margin: 8
9319fill-column: 74
9320version-control: never
57da7796 9321coding: utf-8
c906108c 9322End: