Commit | Line | Data |
---|---|---|
79779fa9 JB |
1 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2 | ||
3 | * ada-lang.h (ada_build_task_list): Remove parameter | |
4 | `warn_if_null'. | |
5 | * ada-tasks.c (ada_build_task_list): Remove parameter | |
6 | `warn_if_null'. Adjust implementation and documentation. | |
7 | (valid_task_id, ada_get_environment_task) | |
8 | iterate_over_live_ada_tasks): Adjust call to ada_build_task_list. | |
9 | (info_tasks_command): Adjust implementation. | |
10 | (task_command): Likewise. | |
11 | * ravenscar-thread.c (ravenscar_find_new_threads): Fix call | |
12 | to ada_build_task_list. | |
13 | ||
e225eb91 JB |
14 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
15 | ||
16 | * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete. | |
17 | (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New. | |
18 | (ada_tasks_inferior_data_handle): New static global. | |
19 | (get_ada_tasks_inferior_data): New function. | |
20 | (ada_get_task_number, get_task_number_from_id, valid_task_id) | |
21 | (ada_get_environment_task, iterate_over_live_ada_tasks) | |
22 | (add_ada_task, read_known_tasks_array, read_known_tasks_list): | |
23 | Adjust. | |
24 | (ada_set_current_inferior_known_tasks_addr): New function. | |
25 | (read_known_tasks, ada_build_task_list, short_task_info) | |
26 | (info_tasks, info_task, info_tasks_command, task_command_1) | |
27 | (task_command, ada_task_list_changed): Adjust. | |
28 | (ada_tasks_invalidate_inferior_data): New function. | |
29 | (ada_normal_stop_observer, ada_new_objfile_observer): Adjust. | |
30 | (_initialize_tasks): Set ada_tasks_inferior_data_handle. | |
31 | * ada-lang.h (struct inferior): Add declaration. | |
32 | (ada_task_list_changed): Update profile. | |
33 | * remote-wtx-pd.c: #include "inferior.h". | |
34 | (switch_to_pd_internal): Update call to ada_task_list_changed. | |
35 | ||
6da9ca05 JB |
36 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
37 | ||
38 | * ada-tasks.c: #include "progspace.h" and "objfiles.h". | |
39 | (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type) | |
40 | (atcb_fieldno): Delete these static globals. | |
41 | (struct ada_tasks_pspace_data): New struct. | |
42 | (ada_tasks_pspace_data_handle): New static global. | |
43 | (get_ada_tasks_pspace_data): New function. | |
44 | (ada_tasks_invalidate_pspace_data): New function. | |
45 | (get_tcb_types_info, ptid_from_atcb_common, read_atcb) | |
46 | (read_known_tasks_list, ada_new_objfile_observer): Adjust. | |
47 | (_initialize_tasks): Create this module's per-progspace | |
48 | data handle. | |
49 | ||
dccd3cbd JB |
50 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
51 | ||
52 | * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. | |
53 | ||
f877b031 TG |
54 | 2011-09-16 Tristan Gingold <gingold@adacore.com> |
55 | ||
56 | * fork-child.c (fork_inferior): Update comment. Use alloca | |
57 | instead of xmalloc for argv. Move len and shell_command | |
58 | declarations in the block where they are used. | |
59 | Only call execvp. Factorize failure code. | |
60 | ||
ae0c443d JK |
61 | 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com> |
62 | ||
63 | Code cleanup. | |
64 | * parse.c (write_exp_elt): Change argument to pass a pointer of union | |
65 | `exp_element' instead of an element of the same and make the function | |
66 | static. | |
67 | (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block) | |
68 | (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst) | |
69 | (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern): | |
70 | Change argument of `write_exp_elt' function call. | |
71 | Remove extra spaces from comments. | |
72 | * parser-defs.h (write_exp_elt): Remove prototype. | |
73 | ||
5af65ec0 PK |
74 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
75 | ||
76 | * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference | |
77 | count of item appended to list. | |
78 | * python/py-type.c (typy_fields): Likewise. | |
79 | ||
72be8ccc PK |
80 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
81 | ||
883640a8 | 82 | * MAINTAINERS (Write After Approval): Add myself to the list. |
72be8ccc | 83 | |
92f6badc KP |
84 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
85 | ||
86 | PR threads/12628 | |
87 | * linux-fork.c (checkpoint_command): Disallow checkpointing of | |
88 | processes with multiple threads. | |
89 | (inf_has_multiple_thread_cb): New function. | |
90 | (inf_has_multiple_threads): New function. | |
91 | ||
2aa48337 KP |
92 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
93 | ||
94 | PR Python/12692 Add gdb.selected_inferior() to Python interface. | |
95 | * python/py-inferior.c (GdbMethods): New Python method definition. | |
96 | ||
6839b47f KP |
97 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
98 | ||
99 | Handle multiple breakpoint hits in Python interface: | |
100 | * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python | |
101 | variable to breakpoints. | |
102 | * python/py-stopevent.c (emit_stop_event): Return a Python tuple of | |
103 | bps instead of single breakpoint. Fix some space typos. | |
104 | * python/py-stopevent.c (create_breakpoint_event_object): Rename | |
105 | variable to breakpoints. | |
106 | ||
672f9b60 KP |
107 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
108 | ||
109 | * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate' | |
110 | note if the breakpoint is internal. | |
111 | ||
43675ae4 KP |
112 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
113 | ||
114 | * MAINTAINERS (Right After Approval): Add myself to the list | |
115 | ||
15148d6a PA |
116 | 2011-09-14 Pedro Alves <pedro@codesourcery.com> |
117 | ||
118 | * infrun.c (prepare_for_detach, wait_for_inferior) | |
119 | (fetch_inferior_event): Don't flush the register cache. | |
120 | * remote.c (struct stop_reply) <regcache>: Add comment. | |
121 | ||
d83e736b JK |
122 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
123 | ||
124 | Remove excessive DWARF expressions memory duplication. | |
125 | * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use | |
126 | for block.data. | |
127 | (indirect_pieced_value): Remove variable result. Remove variable | |
128 | back_to and its use for baton.data. | |
129 | (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for | |
130 | block.data. | |
131 | * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup. | |
132 | Update the function comment. | |
133 | ||
c65b3e0d PA |
134 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
135 | ||
136 | * inferior.h (ALL_INFERIORS): New. | |
137 | * linux-thread-db.c (thread_db_find_new_threads_2): Remove check | |
138 | for a stopped thread. | |
139 | (thread_db_find_new_threads): Look for threads in all inferiors. | |
140 | ||
a1398e0c PA |
141 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
142 | ||
143 | * breakpoint.c (update_watchpoint): Handle the case of the | |
144 | watchpoint to update not being in the breakpoint list yet. | |
145 | (hw_watchpoint_use_count): New, factored out from | |
146 | hw_watchpoint_used_count. | |
147 | (hw_watchpoint_used_count): Rename to ... | |
148 | (hw_watchpoint_used_count_others): ... this. Add `except' | |
149 | parameter. Don't count resources of `except'. Use | |
150 | hw_watchpoint_use_count. | |
151 | ||
30596231 PA |
152 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
153 | ||
154 | * gdbthread.h (enum thread_state): Moved here. | |
155 | (struct thread_info): Rename `executing_' field to `executing' and | |
156 | `state_' to `state'. | |
157 | * thread.c (enum thread_state): Moved to gdbthread.h. | |
158 | (new_thread, add_thread_silent, delete_thread_1) | |
159 | (any_live_thread_of_process, thread_alive, set_running) | |
160 | (set_running, is_thread_state, any_running, is_executing) | |
161 | (set_executing, finish_thread_state, print_thread_info) | |
162 | (do_captured_thread_select): Adjust. | |
163 | ||
bede5f5f JK |
164 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
165 | ||
166 | Fix compatibility with gcc < 4.3 and non-gcc compilers. | |
167 | * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants. | |
168 | ||
4801a9a3 PA |
169 | 2011-09-12 Pedro Alves <pedro@codesourcery.com> |
170 | Matt Rice <ratmice@gmail.com> | |
171 | ||
172 | PR gdb/13175 | |
173 | ||
174 | * interps.c (struct interp) <interpreter_out>: Delete field. | |
175 | (interp_new): Remove the data and uiout parameters and adjust. | |
176 | (interp_set): Only set the current_uiout from the interpreter's | |
177 | uiout after initializing the interpreter. Adjust call to | |
178 | init_proc. | |
179 | (interp_ui_out): Adjust to call procs->ui_out_proc. | |
180 | (interp_data, interp_name): New. | |
181 | * interps.h (interp_init_ftype): Add `self' parameter. | |
182 | (interp_ui_out_ftype): New typedef. | |
183 | (struct interp_procs) <ui_out_proc>: New method pointer. | |
184 | (interp_new): Remove the data and uiout parameters. | |
185 | (interp_data, interp_name): Declare. | |
186 | * tui/tui-interp.c (tui_init): Adjust prototype. | |
187 | (tui_ui_out): New. | |
188 | (_initialize_tui_interp): Install tui_ui_out. Don't instanciate | |
189 | tui_out here. Adjust call to interp_new. | |
190 | * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here. | |
191 | * cli/cli-interp.c (cli_interpreter_init): Adjust prototype. | |
192 | (cli_ui_out): New. | |
193 | (_initialize_cli_interp): Install it. Adjust call to interp_new. | |
194 | * mi/mi-common.h (struct mi_interp) <uiout>: New field. | |
195 | * mi/mi-interp.c (mi_interpreter_init): Adjust prototype. | |
196 | Initialize mi->uiout depending on the mi_version as extracted from | |
197 | the interpreter's name. | |
198 | (mi_ui_out): New. | |
199 | (_initialize_mi_interp): Install mi_ui_out. Adjust calls to | |
200 | interp_new. Don't allocate the ui_out's of the interpreters here. | |
201 | ||
d0afda03 | 202 | 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com> |
59145f8c | 203 | |
d0afda03 | 204 | * solib.c (solib_used): New function. |
59145f8c AR |
205 | (update_solib_list, reload_shared_libraries_1): Check if objfile is used |
206 | by another so_list object before freeing it. | |
207 | ||
bdaf8d4a JK |
208 | 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
209 | ||
210 | Code cleanup. | |
211 | * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter | |
212 | values. | |
213 | ||
df15bd07 JK |
214 | 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
215 | ||
216 | Code cleanup. | |
217 | * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ... | |
218 | (amd64_skip_xmm_prologue): ... this new function. Describe its | |
219 | parameters. No longer use amd64_prologue_line_bug. | |
220 | * defs.h (producer_is_gcc_ge_4): New declaration. | |
221 | * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c. | |
222 | (process_full_comp_unit): Update its caller. Remove | |
223 | amd64_prologue_line_bug initialization. | |
224 | * symtab.h (struct symtab): Remove field amd64_prologue_line_bug. | |
225 | * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c. | |
226 | ||
25289eb2 PA |
227 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
228 | ||
229 | * linux-nat.h (enum resume_kind): New. | |
230 | (struct lwp_info) <last_resume_kind>: New field. | |
ddf17726 PA |
231 | * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to |
232 | resume_stop on the new lwp. | |
25289eb2 PA |
233 | (add_lwp): Set last_resume_kind as resume_continue by default. |
234 | (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop. | |
235 | (resume_lwp): New, factored out from resume_callback. Also check | |
236 | for pending status in lp->waitstatus. | |
237 | (resume_callback): Reimplement. | |
238 | (resume_clear_callback): Set last_resume_kind as resume_stop. | |
239 | (resume_set_callback): Set last_resume_kind as resume_continue. | |
240 | (linux_nat_resume, linux_handle_extended_wait): Set | |
241 | last_resume_kind. | |
242 | (running_callback): Also check lp->waitstatus for pending events. | |
243 | (select_singlestep_lwp_callback): Check that lp->last_resume_kind | |
244 | is resume_step. | |
245 | (stop_and_resume_callback): Don't re-resume if the core wanted the | |
246 | lwp stopped. Use resume_lwp instead of resume_callback. Avoid | |
247 | using an invalidated pointer. | |
248 | (linux_nat_filter_event): Don't discard SIGSTOPs as delayed | |
249 | SIGSTOPs if the core wanted the LWP to stop. | |
250 | (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core | |
251 | wanted the lwp to stop. If the core wanted the lwp to stop, and | |
252 | the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead | |
253 | of TARGET_SIGNAL_STOP. | |
254 | (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop | |
255 | here. Instead, signal the lwp, and set the last_resume_kind to | |
256 | resume_stop. | |
257 | ||
f687d035 PA |
258 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
259 | ||
260 | * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of | |
261 | -1 (error), if the lwp exits right after attaching. | |
262 | ||
bc587a6b DE |
263 | 2011-09-08 Doug Evans <dje@google.com> |
264 | ||
63d97a20 DE |
265 | * py-cmd.c: Some minor formatting fixes. |
266 | (gdbpy_parse_command_name): Rename text arg to name, make const. | |
267 | All callers updated. | |
268 | * python-internal.h (gdbpy_parse_command_name): Update. | |
269 | ||
bc587a6b DE |
270 | * cli/cli-decode.c (add_cmd): Add comment. |
271 | ||
08711b9a JK |
272 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
273 | ||
274 | PR breakpoints/12435 | |
275 | * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal, | |
276 | next_sal, buf, offset and xmmreg. Advance PC if it sees the PR. | |
277 | * dwarf2read.c (process_full_comp_unit): Initialize | |
278 | amd64_prologue_line_bug. | |
279 | * symtab.h (struct symtab): New field amd64_prologue_line_bug. | |
280 | ||
b2e7f004 JK |
281 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
282 | ||
283 | Fix TUI screen corruption. | |
284 | * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by | |
285 | batch_flag. | |
286 | ||
8afd712c JK |
287 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
288 | ||
289 | * findvar.c (read_var_value): Never return NULL, throw an error | |
290 | instead. Update the function comment. State symbol name in the error | |
291 | messages. | |
292 | * python/py-frame.c (frapy_read_var): Remove handling of NULL from | |
293 | read_var_value. | |
294 | * stack.c (print_frame_args): Likewise. | |
295 | * valops.c (value_of_variable): Likewise. | |
296 | ||
b99b5f66 JK |
297 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
298 | ||
299 | * stack.c (print_frame_args): New variable except. Wrap | |
300 | read_var_value and common_val_print into TRY_CATCH. | |
301 | ||
85bc8cb7 JK |
302 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
303 | ||
304 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this | |
305 | caller to value_of_this. | |
306 | * p-exp.y: Update the value_of_this caller to value_of_this_silent. | |
307 | Twice. | |
308 | * valops.c (value_of_this): Remove parameter complain and variable ret. | |
309 | Update function comment. Never return NULL by this code. | |
310 | (value_of_this_silent): New function. | |
311 | * value.h (value_of_this): Remove parameter complain. | |
312 | (value_of_this_silent): New declaration. | |
313 | ||
ede1849f YQ |
314 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
315 | ||
316 | * gdbthread.h (struct thread_info): Remove fields | |
317 | `stepping_through_solib_after_catch' and | |
318 | `stepping_through_solib_catchpoints'. | |
319 | * infrun.c (init_thread_stepping_state): Update. | |
320 | (process_event_stop_test, currently_stepping): Update. | |
321 | (currently_stepping_or_nexting_callback): Update. | |
322 | ||
6aa27652 YQ |
323 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
324 | ||
325 | * gdbthread.h (struct thread_info): Comment on field | |
326 | `step_after_step_resume_breakpoint'. | |
327 | ||
00db5b94 PA |
328 | 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com> |
329 | ||
330 | * remote.c (remote_console_output): Reindent. | |
331 | ||
861152be LM |
332 | 2011-09-06 Luis Machado <lgustavo@codesourcery.com> |
333 | ||
334 | * frame.c (has_stack_frames): Check for currently selected | |
335 | traceframe. | |
336 | ||
ab821bc6 PA |
337 | 2011-09-06 Pedro Alves <pedro@codesourcery.com> |
338 | ||
339 | * event-top.h (MAXPROMPTS, struct prompts): Delete. | |
340 | (set_async_annotation_level, set_async_prompt, pop_prompt) | |
341 | (push_prompt, new_async_prompt): Delete declarations. | |
342 | * top.h (get_prompt, set_prompt): Change prototype. | |
343 | (get_prefix, set_prefix, get_suffix, set_suffix): Delete | |
344 | declarations. | |
345 | * top.c (command_loop): | |
346 | (top_prompt): New global. | |
347 | (get_prefix, set_prefix, get_suffix, ): Delete. | |
348 | (get_prompt, set_prompt): Rewrite. | |
349 | (show_new_async_prompt): Rename to ... | |
350 | (show_prompt): ... this. | |
351 | (init_main): Adjust. Don't handle --annotate=2 here. | |
352 | * event-top.c (new_async_prompt): Delete. | |
353 | (the_prompts): Delete. | |
354 | (more_to_come): Make static. | |
355 | (display_gdb_prompt): Use top_level_prompt() to compute the top | |
356 | level prompt, and don't notify the before_prompt observers | |
357 | directly here. Always trick readline into not trying to display | |
358 | the prompt if sync_execution and displaying the primary prompt. | |
359 | If displaying a local/secondary prompt, always show it, even if | |
360 | sync_execution is set. | |
361 | (change_annotation_level): Delete. | |
362 | (top_level_prompt): New, based on change_annotation_level. | |
363 | (push_prompt, pop_prompt): Delete. | |
364 | (async_disable_stdin): No longer pushes prompt. | |
365 | (command_line_handler): No longer pushes or pops prompt. If more | |
366 | input is expected, call display_gdb_prompt with an explicit empty | |
367 | prompt. | |
368 | (async_stop_sig): Adjust. | |
369 | (set_async_annotation_level, set_async_prompt): Delete. | |
370 | * python/python.c (before_prompt_hook): Adjust. | |
371 | ||
f1d90504 PA |
372 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
373 | ||
374 | PR cli/13110 | |
375 | ||
376 | * infrun.c (fetch_inferior_event): Check if there's a selected | |
377 | thread before checking if the selected thread is executing. | |
378 | ||
0f641c01 PA |
379 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
380 | ||
381 | * inf-loop.c (execute_command): Don't check if the current thread | |
382 | if running before synchronously waiting for command completion. | |
383 | * infrun.c (fetch_inferior_event): Handle "set exec-done-display" | |
384 | here. | |
385 | (normal_stop): Call async_enable_stdin here. | |
386 | * inf-loop.c (inferior_event_handler): Don't call | |
387 | async_enable_stdin, nor handle "set exec-done-display" here. | |
388 | ||
30368258 | 389 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
390 | ||
391 | GDB 7.3.1 released. | |
392 | ||
31916278 JB |
393 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
394 | ||
395 | * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'. | |
396 | ||
e8d56f18 JB |
397 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
398 | ||
399 | * NEWS: Add entry for OpenBSD/NetBSD build failure. | |
400 | ||
5dd05d8c JK |
401 | 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
402 | ||
403 | * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency. | |
404 | ||
7d8e6458 | 405 | 2011-09-02 Matt Rice <ratmice@gmail.com> |
406 | ||
407 | PR gdb/10720 | |
408 | * event-top.c (cli_command_loop): Replace readline setup with | |
409 | direct call to display_gdb_prompt. | |
410 | (display_gdb_prompt): Do not call observer mechanism during | |
411 | synchronous execution. | |
412 | ||
84636d28 PA |
413 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
414 | ||
415 | * linux-nat.c (in_pid_list_p): New. | |
416 | (linux_record_stopped_pid): Delete. | |
417 | (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're | |
418 | already attached to the LWP. Return an indication if so. | |
419 | (linux_nat_filter_event): Adjust. | |
420 | * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp | |
421 | returning an indication to ignore this thread. | |
422 | ||
b4a14fd0 PA |
423 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
424 | ||
425 | * top.c: Include interps.h. | |
426 | (execute_command): If the target can async, but the interpreter is | |
427 | in sync mode, synchronously wait for the command to finish before | |
428 | returning. | |
429 | (execute_command_to_string): Force the interpreter to sync mode. | |
430 | * infrun.c: Include interps.h. | |
431 | (fetch_inferior_event): Don't restore the prompt yet if the | |
432 | interpreter is in sync mode. | |
433 | * interps.c (interpreter_async): New global. | |
434 | * interps.h (interpreter_async): Declare. | |
435 | * inf-loop.c: Include interps.h. | |
436 | (inferior_event_handler): Don't print the language change or run | |
437 | breakpoint commands yet if the interpreter in is sync mode. | |
438 | * main.c (captured_command_loop): Flip the interpreter to async | |
439 | mode. | |
440 | * cli/cli-script.c: Include interps.h. | |
441 | (execute_user_command, while_command, if_command): Force the | |
442 | interpreter to sync mode. | |
443 | * python/python.c: Include interps.h. | |
444 | (python_command, execute_gdb_command): Force the interpreter to | |
445 | sync mode. | |
446 | ||
c709acd1 PA |
447 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
448 | ||
449 | * value.c (show_convenience): Catch errors thrown while printing | |
450 | each internal variable. | |
451 | * infrun.c (validate_siginfo_access): New function. | |
452 | (siginfo_value_read, siginfo_value_write): Call it. | |
453 | ||
9655e943 JK |
454 | 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
455 | ||
456 | Revert: | |
457 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
458 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
459 | attribute. | |
460 | ||
cb457ae2 YQ |
461 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
462 | ||
463 | * solib-dsbt.c (bfd_lookup_symbol): Removed. | |
464 | (cmp_name): New. | |
465 | (enable_break2): Update caller. | |
466 | * solib-frv.c (bfd_lookup_symbol): Removed. | |
467 | (cmp_name): New. | |
468 | (enable_break2): Update caller. | |
469 | * solib-pa64.c (bfd_lookup_symbol): Removed. | |
470 | (cmp_name): New. | |
471 | * solib-svr4.c (bfd_lookup_symbol): Removed. | |
472 | (cmp_name_and_sec_flags): New. | |
473 | (enable_break): Update caller. | |
474 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): New. | |
475 | (gdb_bfd_lookup_symbol_from_dyn_symtab): New. | |
476 | (gdb_bfd_lookup_symbol): New. | |
477 | * solib.h: Functions declarations. | |
478 | ||
83d1a36a YQ |
479 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
480 | ||
481 | * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o | |
482 | and solib-dsbt.o. | |
483 | ||
c04b3e8f JK |
484 | 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
485 | ||
486 | Fix TUI stepi on code without symbols. | |
487 | * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for | |
488 | current PC instead. | |
489 | ||
cb0fd152 JK |
490 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
491 | ||
492 | Code cleanup. | |
493 | * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization | |
494 | and the static keyword. | |
495 | * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put): | |
496 | Make prefix an array. | |
497 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
498 | * mi/mi-main.c (get_register): Remove stb initialization and the static | |
499 | keyword. | |
500 | ||
91174723 JK |
501 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
502 | ||
503 | Code cleanup - make mi_opt const. | |
504 | * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make | |
505 | opts const. | |
506 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
507 | * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise. | |
508 | (mi_cmd_env_dir): Likewise. | |
509 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise. | |
510 | (mi_cmd_target_file_put): Likewise. | |
511 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
512 | * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise. | |
513 | * mi/mi-getopt.c (mi_getopt): Make opts and opt const. | |
514 | (mi_valid_noargs): Make opts const. | |
515 | * mi/mi-getopt.h (mi_getopt): Make opts and opt const. | |
516 | * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const. | |
517 | (mi_cmd_data_read_memory): Likewise. | |
518 | (mi_cmd_data_read_memory_bytes): Likewise. | |
519 | (mi_cmd_data_write_memory): Likewise. | |
520 | ||
5068b8e8 | 521 | 2011-08-26 Matt Rice <ratmice@gmail.com> |
522 | ||
523 | * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to | |
524 | bcache_xmalloc, replace bcache_xmalloc with call to | |
525 | psymbol_bcache_init for psymbol_cache. | |
526 | * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc. | |
527 | ||
a4f2ce05 JK |
528 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
529 | ||
530 | * inf-loop.c (inferior_event_handler): Add exception_print in | |
531 | INF_EXEC_COMPLETE. | |
532 | ||
353d1d73 JK |
533 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
534 | ||
535 | * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call | |
536 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
537 | * defs.h (make_bpstat_clear_actions_cleanup): New declaration. | |
538 | * exceptions.c (throw_exception): Remove the bpstat_clear_actions call. | |
539 | * inf-loop.c (inferior_event_handler): New variable cleanup_if_error, | |
540 | call make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
541 | Call bpstat_clear_actions for failed fetch_inferior_event_wrapper. | |
542 | * infrun.c (fetch_inferior_event): Call | |
543 | make_bpstat_clear_actions_cleanup. | |
544 | * top.c (execute_command): New variable cleanup_if_error, call | |
545 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
546 | * utils.c (do_bpstat_clear_actions_cleanup) | |
547 | (make_bpstat_clear_actions_cleanup): New functions. | |
548 | ||
3ced3da4 PA |
549 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
550 | ||
551 | * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on | |
552 | either the parent or the child forks. Rename a couple locals. | |
553 | ||
a9f4bb21 PA |
554 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
555 | ||
556 | * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a | |
557 | library call. Avoid reading the `status' local if all waitpid | |
558 | calls failed. | |
559 | ||
e5798bef PA |
560 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
561 | ||
562 | * common/linux-osdata.c (get_cores_used_by_process): Don't assume | |
563 | opening /proc/PID/task always succeeds. | |
564 | ||
edb2aadf AR |
565 | 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com> |
566 | ||
567 | * linespec.c (symtab_from_filename): Check for the end of string. | |
568 | ||
0d932b2f MK |
569 | 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com> |
570 | ||
571 | PR mi/11912 | |
572 | * varobj.c (cplus_describe_child): Add the keyword | |
573 | 'class' to the output of the method when dealing | |
574 | with a cast to a base class. | |
575 | ||
e93ca019 JK |
576 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
577 | ||
578 | No functionality change. | |
579 | * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make | |
580 | function comment a reference, new variables tp and bs, move here code | |
581 | from throw_exception. | |
582 | * breakpoint.h (bpstat_clear_actions): Remove the BS parameter, | |
583 | describe it in the comment. | |
584 | * exceptions.c (throw_exception): Remove variable tp, move the code for | |
585 | bpstat_clear_actions to bpstat_clear_actions. | |
586 | ||
13da1c97 LM |
587 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
588 | ||
589 | * linux-nat.h (linux_proc_get_tgid): Remove declaration. | |
590 | * linux-nat.c: Include linux-procfs.h. | |
591 | (linux_proc_get_tgid): Move to ... | |
592 | * common/linux-procfs.c: ... here. New file. | |
593 | * common/linux-procfs.h: New file. | |
594 | * linux-thread-db.c: Include linux-procfs.h. | |
595 | * Makefile.in: Update dependencies. | |
596 | * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency. | |
597 | * config/arm/linux.mh: Likewise. | |
598 | * config/i386/linux.mh: Likewise. | |
599 | * config/i386/linux64.mh: Likewise. | |
600 | * config/ia64/linux.mh: Likewise. | |
601 | * config/m32r/linux.mh: Likewise. | |
602 | * config/m68k/linux.mh: Likewise. | |
603 | * config/mips/linux.mh: Likewise. | |
604 | * config/pa/linux.mh: Likewise. | |
605 | * config/pa/linux.mh: Likewise. | |
606 | * config/powerpc/linux.mh: Likewise. | |
607 | * config/powerpc/ppc64-linux.mh: Likewise. | |
608 | * config/powerpc/spu-linux.mh: Likewise. | |
609 | * config/sparc/linux.mh: Likewise. | |
610 | * config/sparc/linux64.mh: Likewise. | |
611 | * config/xtensa/linux.mh: Likewise. | |
612 | ||
4e5c165d HZ |
613 | 2011-08-24 Hui Zhu <teawater@gmail.com> |
614 | ||
615 | * tracepoint.c (cond_string_is_same): New function. | |
616 | (find_matching_tracepoint): Add condition check | |
617 | by cond_string_is_same. | |
618 | ||
6e2f5b22 JK |
619 | 2011-08-23 Josh Matthews <josh@joshmatthews.net> |
620 | ||
621 | Fix build error in Darwin port. | |
622 | * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout. | |
623 | ||
abf85f46 JK |
624 | 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
625 | ||
626 | Code cleanup. | |
627 | * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left. | |
628 | (command_line_is_silent): New function. | |
629 | (bpstat_do_actions_1): No longer use commands_left, use | |
630 | command_line_is_silent for commands. | |
631 | (bpstat_alloc): Remove clearing of commands_left. | |
632 | (bpstat_stop_status): Remove initialization of commands_left, use | |
633 | command_line_is_silent. | |
634 | * breakpoint.h (struct bpstats): Remove commands_left. | |
635 | ||
3a93a0c2 KS |
636 | 2011-08-18 Keith Seitz <keiths@redhat.com> |
637 | ||
638 | PR c++/12266 | |
639 | * cp-name-parser.y (struct demangle_info): Remove unused | |
640 | member PREV. | |
641 | (d_grab): Likewise. | |
642 | (allocate_info): Change return type to struct demangle_info *. | |
643 | Always allocate a new demangle_info. | |
644 | Remove unused PREV pointer. | |
645 | (cp_new_demangle_parse_info): New function. | |
646 | (cp_demangled_name_parse_free): New function. | |
647 | (do_demangled_name_parse_free_cleanup): New function. | |
648 | (make_cleanup_cp_demangled_name_parse_free): New function. | |
649 | (cp_demangled_name_to_comp): Change return type to | |
650 | struct demangle_parse_info *. | |
651 | Allocate a new storage for each call. | |
652 | (main): Update usage for cp_demangled_name_to_comp | |
653 | API change. | |
654 | * cp-support.h (struct demangle_parse_info): New structure. | |
655 | (cp_demangled_name_to_comp): Update API change for | |
656 | return type. | |
657 | (cp_new_demangle_parse_info): Declare. | |
658 | (make_cleanup_cp_demangled_name_parse_free): New declaration. | |
659 | (cp_demangled_name_parse_free): Declare. | |
660 | * cp-support.c (cp_canonicalize_string): Update API | |
661 | change for cp_demangled_name_to_comp. | |
662 | (mangled_name_to_comp): Likewise. | |
663 | Return struct demangle_parse_info, too. | |
664 | (cp_class_name_from_physname): Update mangled_name_to_comp | |
665 | API change. | |
666 | (method_name_from_physname): Likewise. | |
667 | (cp_func_name): Update API change for cp_demangled_name_to_comp. | |
668 | (cp_remove_params): Likewise. | |
669 | * python/py-type.c (typy_legacy_template_argument): Likewise. | |
670 | ||
671 | * cp-support.h (cp_canonicalize_string_no_typedefs): Declare. | |
672 | (cp_merge_demangle_parse_infos): Declare. | |
673 | * cp-support.c (ignore_typedefs): New file global. | |
674 | (copy_string_to_obstack): New function. | |
675 | (inspect_type): New function. | |
676 | (replace_typedefs): New function. | |
677 | (replace_typedefs_qualified_name): New function. | |
678 | (cp_canonicalize_string_no_typedefs): New function. | |
679 | * cp-name-parser.y (cp_merge_demangle_parse_infos): New function. | |
680 | (cp_new_demangle__parse_info): Allocate and initialize the obstack. | |
681 | * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs | |
682 | instead of cp_canonicalize_string. | |
683 | (find_method): Likewise. | |
684 | (decode_compound): Before looking up the name, call | |
685 | cp_canonicalize_string_no_typedefs. | |
686 | (decode_variable): Likewise. | |
687 | ||
fa3a4f15 PM |
688 | 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> |
689 | Tom Tromey <tromey@redhat.com> | |
690 | Matt Rice <ratmice@gmail.com> | |
691 | ||
692 | * python/lib/gdb/prompt.py: New file. | |
693 | * python/lib/gdb/command/prompt.py: New file. | |
694 | * NEWS: Document set extended-prompt and gdb.prompt library | |
695 | ||
85661b1e YQ |
696 | 2011-08-16 Yao Qi <yao@codesourcery.com> |
697 | ||
698 | * tic6x-linux-tdep.c: Move const arrays definition from here... | |
699 | * tic6x-tdep.c: to here ... | |
700 | ||
11315641 YQ |
701 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
702 | ||
703 | * NEWS: New port to Texas Instruments TMS320C6x. | |
704 | ||
8cd64e00 YQ |
705 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
706 | Bernd Schmidt <bernds@codesourcery.com> | |
707 | Yao Qi <yao@codesourcery.com> | |
708 | ||
709 | * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*. | |
710 | * solib-dsbt.c: New file. Support DSBT shared object. | |
711 | * tic6x-linux-tdep.c: New file. | |
712 | * tic6x-tdep.c: New file. | |
713 | * tic6x-tdep.h: New file. | |
714 | ||
78d85199 YQ |
715 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
716 | Yao Qi <yao@codesourcery.com> | |
717 | ||
718 | * remote.c (PACKET_qXfer_fdpic): New enum value. | |
719 | (remote_protocol_features): Add qXfer:fdpic:read packet. | |
720 | (remote_xfer_partial): Support TARGET_OBJECT_FDPIC. | |
721 | (_initialize_remote): Add set/show remote read-fdpic-loadmap command. | |
722 | * target.h (enum target_object): Add TARGET_OBJECT_FDPIC. | |
723 | ||
224bbe49 YQ |
724 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
725 | ||
726 | Target description for tic6x. | |
727 | * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x | |
728 | tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux. | |
729 | * features/tic6x-c6xp.xml, features/tic6x-core.xml: New. | |
730 | * features/tic6x-gp.xml, features/tic6x-c62x.xml: New. | |
731 | * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New. | |
732 | * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New. | |
733 | * features/tic6x-c64xp-linux.xml: New. | |
734 | * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated. | |
735 | * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated. | |
736 | * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated. | |
737 | * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated. | |
f040079f HZ |
738 | * regformats/tic6x-c64xp.dat, |
739 | regformats/tic6x-c62x-linux.dat: Generated. | |
740 | * regformats/tic6x-c64x-linux.dat, | |
741 | regformats/tic6x-c64xp-linux.dat: Generated. | |
224bbe49 YQ |
742 | * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and |
743 | features/tic6x-*.c files. | |
744 | Add regformats/tic6x-*.dat files. | |
745 | ||
457e09f0 DE |
746 | 2011-08-12 Doug Evans <dje@google.com> |
747 | ||
748 | * NEWS: Mention new "type" attribute of python gdb.Symbol objects. | |
749 | * python/py-symbol.c (sympy_get_type): New function. | |
750 | (symbol_object_getset): Add "type". | |
751 | ||
d20c1c3f PA |
752 | 2011-08-12 Pedro Alves <pedro@codesourcery.com> |
753 | ||
754 | PR tui/13073 | |
755 | ||
756 | * tui/tui-regs.c (tui_show_register_group): Skip registers with an | |
757 | empty name. | |
758 | (tui_show_register_group): Don't store a byte buffer in the data | |
759 | element's value. | |
760 | (tui_register_format): Skip registers with an empty name. | |
761 | (tui_get_register): Store a struct value in the data element's | |
762 | value field instead of a byte buffer holding the raw register | |
763 | contents. Account for optimized-out and unavailable registers | |
764 | when comparing register contents. | |
765 | ||
9d8fa392 PA |
766 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
767 | ||
768 | * printcmd.c (current_display_number): Update comment. | |
769 | (disable_current_display_cleanup): Delete. | |
770 | (do_one_display): Use make_cleanup_restore_integer. Gracefully | |
771 | catch errors thrown while evaluating and printing the display. | |
772 | ||
401a70b8 TT |
773 | 2011-08-09 Tom Tromey <tromey@redhat.com> |
774 | ||
775 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo. | |
776 | ||
7f86f058 PA |
777 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
778 | ||
94b71cca | 779 | * elfread.c (elf_symtab_read): Rework comments. |
7f86f058 PA |
780 | * maint.c (maintenance_command): Ditto. |
781 | * somread.c (som_symtab_read): Ditto. | |
782 | * solib.c (solib_find, solib_map_sections, update_solib_list) | |
783 | (solib_add, info_sharedlibrary_command, solib_name_from_address) | |
784 | (solib_create_inferior_hook, in_solib_dynsym_resolve_code) | |
94b71cca | 785 | (sharedlibrary_command, no_shared_libraries): Ditto. |
7f86f058 PA |
786 | * solib-irix.c (locate_base, disable_break, enable_break) |
787 | (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook) | |
788 | (irix_current_sos, irix_open_symbol_file_object) | |
789 | (irix_special_symbol_handling): Ditto. | |
790 | * solib-sunos.c (locate_base, first_link_map_member) | |
791 | (sunos_current_sos, disable_break, enable_break) | |
792 | (sunos_special_symbol_handling, sunos_solib_create_inferior_hook): | |
793 | Ditto. | |
794 | * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base) | |
795 | (open_symbol_file_object, svr4_current_sos, enable_break) | |
796 | (svr4_special_symbol_handling, svr4_solib_create_inferior_hook): | |
797 | Ditto. | |
798 | * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object) | |
799 | (frv_current_sos, enable_break, frv_special_symbol_handling) | |
800 | (frv_solib_create_inferior_hook): Ditto. | |
801 | * solist.h (struct target_so_ops): Extend the comments of the | |
802 | special_symbol_handling, current_sos and open_symbol_file_object | |
803 | methods. | |
804 | ||
5e239b84 PM |
805 | 2011-08-09 Phil Muldoon <pmuldoon@redhat.com> |
806 | ||
807 | * python/lib/gdb/__init__.py: Auto-load files in command and | |
808 | function directories. | |
809 | * python/python.c (finish_python_initialization): Use | |
810 | os.path.join. | |
811 | * python/lib/gdb/command/pretty_printers.py: Self register | |
812 | command. | |
813 | * NEWS: Document auto-loading. | |
814 | ||
b6cede78 JK |
815 | 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
816 | ||
817 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK> | |
818 | (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable | |
819 | objfile_gdbarch. Fix BFD_ENDIAN_BIG case. | |
820 | ||
29d0bb3d TT |
821 | 2011-08-08 Tom Tromey <tromey@redhat.com> |
822 | ||
823 | * breakpoint.c (clean_up_filters): Remove. | |
824 | (catch_syscall_split_args): Use VEC_cleanup. | |
825 | ||
2f7fb8e4 JK |
826 | 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
827 | ||
828 | * cp-name-parser.y (xfree): Wrap the name free by CONCAT2. | |
829 | (main): Uncomment "Demangling error\n". | |
830 | ||
d6c10e95 PP |
831 | 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com> |
832 | ||
833 | * solib-target.c (segment_attributes): Make them static. | |
834 | (section_attributes, library_children, library_attributes): Likewise. | |
835 | (library_list_children, library_list_attributes): Likesise. | |
836 | (library_list_elements): Likewise. | |
837 | ||
af6e93b2 PA |
838 | 2011-08-05 Pedro Alves <pedro@codesourcery.com> |
839 | ||
840 | * exceptions.c (throw_exception): Don't disable the current | |
841 | display. | |
842 | * printcmd.c (disable_current_display_cleanup): New function. | |
843 | (do_one_display): Install a cleanup to disable the current display | |
844 | if doing the display throws. | |
845 | ||
6a1b1664 EZ |
846 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
847 | ||
848 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the | |
849 | initialization of the tp_new member to the corresponding | |
850 | gdbpy_initialize_* function. | |
851 | * python/py-cmd.c (gdbpy_initialize_commands): Likewise. | |
852 | * python/py-frame.c (gdbpy_initialize_frames): Likewise. | |
853 | * python/py-function.c (gdbpy_initialize_functions): Likewise. | |
854 | * python/py-inferior.c (gdbpy_initialize_inferior): Likewise. | |
855 | * python/py-param.c (gdbpy_initialize_parameters): Likewise. | |
856 | ||
31a0ae49 JK |
857 | 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
858 | ||
859 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
860 | (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist) | |
861 | (info_spu_dma_command, info_spu_proxydma_command): Rename uiout | |
862 | references to current_uiout. | |
863 | ||
e0dd0826 PA |
864 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
865 | ||
866 | * event-loop.c (gdb_do_one_event): Remove `data' parameter. | |
867 | (start_event_loop): Use TRY_CATCH instead of catch_errors. | |
868 | * event-loop.h (gdb_do_one_event): Remove `data' parameter. | |
869 | * top.c (gdb_readline_wrapper): Adjust. | |
870 | * tui/tui-interp.c (tui_command_loop): | |
871 | (_initialize_tui_interp): Don't install it. | |
872 | ||
79a45e25 PA |
873 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
874 | ||
875 | * ui-out.h (uiout): Rename to ... | |
876 | (current_uiout): ... this. | |
877 | * ui-out.c (uiout): Rename to ... | |
878 | (current_uiout): ... this. | |
879 | * ada-lang.c (print_it_exception, print_one_exception) | |
880 | (print_mention_exception): Adjust. | |
881 | * breakpoint.c (watchpoint_check): Adjust. | |
882 | (print_breakpoint_location, print_one_breakpoint, breakpoint_1) | |
883 | (default_collect_info, watchpoints_info, print_one_catch_fork) | |
884 | (print_one_catch_vfork, print_one_catch_syscall) | |
885 | (print_one_catch_exec, mention, print_it_ranged_breakpoint) | |
886 | (print_one_ranged_breakpoint, print_mention_ranged_breakpoint) | |
887 | (print_it_watchpoint, print_mention_watchpoint) | |
888 | (print_it_masked_watchpoint, print_mention_masked_watchpoint) | |
889 | (print_it_exception_catchpoint, print_one_exception_catchpoint) | |
890 | (print_mention_exception_catchpoint, say_where, bkpt_print_it) | |
891 | (bkpt_print_mention, momentary_bkpt_print_it) | |
892 | (tracepoint_print_mention, update_static_tracepoint) | |
893 | (tracepoints_info, save_breakpoints): Adjust. | |
894 | * cli-out.c (field_separator): Adjust. | |
895 | * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust. | |
896 | * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust. | |
897 | * frame.c (get_current_frame): Adjust. | |
898 | * infcmd.c (run_command_1, print_return_value): Adjust. | |
899 | * inferior.c (inferior_command, info_inferiors_command): Adjust. | |
900 | * infrun.c (print_end_stepping_range_reason): Adjust. | |
901 | (print_signal_exited_reason, print_exited_reason): Adjust. | |
902 | (print_signal_received_reason, print_no_history_reason): Adjust. | |
903 | * interps.c (interp_set): Adjust. | |
904 | * osdata.c (info_osdata_command): Adjust. | |
905 | * progspace.c (maintenance_info_program_spaces_command): Adjust. | |
906 | * remote-fileio.c (remote_fileio_request): Adjust. | |
907 | * remote.c (show_remote_cmd): Adjust. | |
908 | * solib.c (info_sharedlibrary_command): Adjust. | |
909 | * source.c (print_source_lines_base): Adjust. | |
910 | * stack.c (print_stack_frame): Adjust. | |
911 | (do_gdb_disassembly, print_frame_info, print_frame): Adjust. | |
912 | * symfile-mem.c (add_vsyscall_page): Adjust. | |
913 | * symfile.c (load_progress, generic_load) | |
914 | (print_transfer_performance): Adjust. | |
915 | * thread.c (info_threads_command, restore_selected_frame) | |
916 | (thread_command): Adjust. | |
917 | * top.c (make_cleanup_restore_ui_file): Adjust. | |
918 | * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1) | |
919 | (print_one_static_tracepoint_marker): Adjust. | |
920 | * cli/cli-cmds.c (print_disassembly): Adjust. | |
921 | * cli/cli-decode.c (print_doc_line): Adjust. | |
922 | * cli/cli-interp.c (safe_execute_command): Adjust. | |
923 | * cli/cli-logging.c (set_logging_redirect, pop_output_files) | |
924 | (handle_redirections): Adjust. | |
925 | * cli/cli-script.c (show_user_1): Adjust. | |
926 | * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust. | |
927 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
928 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust. | |
929 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path) | |
930 | (mi_cmd_env_dir): Adjust. | |
931 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
932 | (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust. | |
933 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
934 | (mi_cmd_stack_info_depth, mi_cmd_stack_list_args) | |
935 | (list_args_or_locals): Adjust. | |
936 | * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create) | |
937 | (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen) | |
938 | (mi_cmd_var_show_format, mi_cmd_var_info_num_children) | |
939 | (mi_cmd_var_list_children, mi_cmd_var_info_type) | |
940 | (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression) | |
941 | (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression) | |
942 | (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust. | |
943 | * mi/mi-interp.c (mi_on_normal_stop): Adjust. | |
944 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select) | |
945 | (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior) | |
946 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
947 | (mi_cmd_data_list_register_names) | |
948 | (mi_cmd_data_list_changed_registers) | |
949 | (mi_cmd_data_list_register_values, get_register) | |
950 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
951 | (mi_cmd_data_read_memory_bytes, mi_cmd_list_features) | |
952 | (mi_cmd_list_target_features, mi_cmd_add_inferior) | |
953 | (mi_execute_command, mi_load_progress): Adjust. | |
954 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust. | |
955 | * python/py-auto-load.c (print_script, info_auto_load_scripts): | |
956 | Adjust. | |
957 | * python/py-breakpoint.c (bppy_get_commands): Adjust. | |
958 | * tui/tui-interp.c (tui_command_loop): Adjust. | |
959 | * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust. | |
960 | ||
f9679975 PA |
961 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
962 | ||
963 | * exceptions.c (struct catcher): Remove saved_uiout field. | |
964 | (exceptions_state_mc_init): Remove the `func_uiout' parameter, and | |
965 | no longer save/resvore the global ui_out builder. | |
966 | (catch_exceptions_with_msg): Save/override/restore the global | |
967 | ui_out builder manually instead of relying on TRY_CATCH to do it. | |
968 | (catch_errors): Save/restore the global ui_out builder manually | |
969 | instead of relying on TRY_CATCH to do it. | |
970 | * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout' | |
971 | parameter. | |
972 | (TRY_CATCH): Adjust. | |
973 | * cli/cli-interp.c (safe_execute_command): Save/override/restore | |
974 | the global ui_out builder manually instead of relying on TRY_CATCH | |
975 | to do it. | |
976 | ||
934709f0 PW |
977 | 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
978 | ||
979 | * breakpoint.c (update_global_location_list): Ensure | |
980 | invariant 'first loc marked not duplicated and inserted, | |
981 | following locs marked duplicated/not inserted' is respected | |
982 | for multiple locations at the same address. | |
983 | (unduplicated_should_be_inserted) New function. | |
984 | (swap_insertion) New function. | |
985 | ||
2421fe6f JK |
986 | 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
987 | ||
988 | * stack.c (print_frame_arguments_choices): Comment typo fix. | |
989 | ||
3fbb6ffa TJB |
990 | 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com> |
991 | ||
992 | Revert: | |
993 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> | |
994 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
995 | argument. Update callers. | |
996 | ||
fbe12357 PP |
997 | 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com> |
998 | ||
999 | PR gdb/13045 | |
1000 | * doublest.c (convert_doublest_to_floatformat): Pass correct | |
1001 | mantissa length to put_field. | |
1002 | ||
b1d288d3 JK |
1003 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1004 | ||
1005 | * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the | |
1006 | exception_print code path. | |
1007 | (backtrace_command): Remove variable e. Protect arg by make_cleanup in | |
1008 | advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree. | |
1009 | (backtrace_full_command): Remove variable e. Remove TRY_CATCH. | |
1010 | ||
311b5970 JK |
1011 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1012 | ||
1013 | Code cleanup. | |
1014 | * stack.c (struct print_stack_frame_args, print_stack_frame_stub): | |
1015 | Remove, merge them into ... | |
1016 | (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove | |
1017 | variable args and its initialization. | |
1018 | (struct print_args_args, print_args_stub): Remove, merge them into | |
1019 | print_frame. | |
1020 | (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge | |
1021 | them into ... | |
1022 | (do_gdb_disassembly): ... here. Remove variable args and its | |
1023 | initialization. | |
1024 | (print_frame): Remove variable args and its initialization, new | |
1025 | variable gdbarch and numargs (from print_args_stub), inline here | |
1026 | print_args_stub with a TRY_CATCH. | |
1027 | (struct backtrace_command_args, backtrace_command_stub): Remove, merge | |
1028 | them into ... | |
1029 | (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH. | |
fbe12357 | 1030 | New variable e, remove variable btargs and its initialization. |
311b5970 | 1031 | |
484a26a8 TG |
1032 | 2011-08-01 Tristan Gingold <gingold@adacore.com> |
1033 | ||
1034 | * darwin-nat.c (darwin_decode_exception_message): Adjust assertion. | |
1035 | ||
c30eee59 TJB |
1036 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1037 | ||
1038 | * breakpoint.c (insert_bp_location): Document return value. | |
1039 | (insert_breakpoint_locations): Fix documentation. | |
1040 | (remove_breakpoints): Add documentation. | |
1041 | ||
f116073b TJB |
1042 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1043 | ||
1044 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
1045 | argument. Update callers. | |
1046 | ||
65aa373f JK |
1047 | 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1048 | ||
1049 | * stack.c (print_frame_info): Comment typo fix. | |
1050 | ||
a50242fb SA |
1051 | 2011-07-29 Sterling Augustine <saugustine@google.com> |
1052 | ||
1053 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1054 | ||
267f6504 TT |
1055 | 2011-07-29 Tom Tromey <tromey@redhat.com> |
1056 | ||
1057 | * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O. | |
1058 | (library_list_start_segment): Update. | |
1059 | (library_list_start_section): Update. | |
1060 | ||
00bd41d6 PM |
1061 | 2011-07-28 Phil Muldoon <pmuldoon@redhat.com> |
1062 | ||
1063 | * varobj.c (value_get_print_value): Move hint check later into the | |
1064 | function. Comment function. Free thevalue before reusing it. | |
1065 | ||
18a46dbe JK |
1066 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1067 | Pedro Alves <pedro@codesourcery.com> | |
1068 | ||
1069 | * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of | |
1070 | value_one. | |
1071 | * valops.c (value_one): Remove parameter lv. Do not pass it to itself. | |
1072 | Assert the result kind. | |
1073 | * value.h (value_one): Remove parameter lv. | |
1074 | ||
bb7da2bf JK |
1075 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1076 | ||
1077 | Fix crash on lval_computed values. | |
1078 | * valops.c (value_zero): Use not_lval for lval_computed. | |
1079 | ||
2d5213f8 TT |
1080 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
1081 | ||
1082 | * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for | |
1083 | gdb_assert.h, gdb_locale.h, gdb_dirent.h. | |
1084 | ||
11081198 JK |
1085 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1086 | ||
1087 | * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and | |
1088 | "ptype" by their typedefs difference. | |
1089 | ||
3c6e0cb3 JK |
1090 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1091 | ||
1092 | * dwarf2expr.c (ctx_no_read_reg): New function. | |
1093 | * dwarf2expr.h (ctx_no_read_reg): New declaration. | |
1094 | * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. | |
1095 | (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. | |
1096 | (decode_locdesc): Replace by a caller of dwarf_expr_eval. | |
1097 | ||
523f3620 JK |
1098 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1099 | ||
1100 | * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc) | |
1101 | (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other | |
1102 | file. | |
1103 | (dwarf2_frame_ctx_funcs): Reference the renamed functions. | |
1104 | * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
1105 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
1106 | (ctx_no_get_base_type): Move the functions here. | |
1107 | * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
1108 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
1109 | (ctx_no_get_base_type): New declarations. | |
1110 | ||
24d3216f TT |
1111 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
1112 | ||
1113 | * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel' | |
1114 | entries. | |
1115 | * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field. | |
1116 | * dwarf2read.c (dwarf2_elf_names): Add sentinel entry. | |
1117 | ||
5005c8a9 PP |
1118 | 2011-07-26 Sterling Augustine <saugustine@google.com> |
1119 | ||
1120 | * cli/cli-dump.c (dump_binary_file): Change parameter type to | |
1121 | ULONGEST. | |
1122 | (dump_bfd_file): Likewise. | |
1123 | ||
480a3f21 PW |
1124 | 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1125 | ||
1126 | * remote.c (remote_region_ok_for_hw_watchpoint): New function. | |
1127 | (remote_hw_watchpoint_length_limit): New variable. | |
1128 | (_initialize_remote) add set,show cmds for this new variable. | |
1129 | * gdb.texinfo: document these new commands. | |
1130 | * NEWS: Mention these new commands. | |
1131 | ||
efa80663 PA |
1132 | 2011-07-26 Pedro Alves <pedro@codesourcery.com> |
1133 | ||
1134 | * breakpoint.c (works_in_software_mode_watchpoint): Also return | |
1135 | true for software watchpoints. | |
1136 | ||
dbdaa232 | 1137 | 2011-07-26 Joel Brobecker <brobecker@adacore.com> |
1138 | ||
1139 | GDB 7.3 released. | |
1140 | ||
cf2c3c16 TT |
1141 | 2011-07-26 Tom Tromey <tromey@redhat.com> |
1142 | ||
1143 | * symfile.h (struct dwarf2_debug_sections) <macro>: New field. | |
1144 | * dwarf2read.c (read_indirect_string_at_offset): New function. | |
1145 | (read_indirect_string): Use it. | |
1146 | (dwarf_decode_macro_bytes): New function, taken from | |
1147 | dwarf_decode_macros. Handle DW_MACRO_GNU_*. | |
1148 | (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*. | |
1149 | (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode): | |
1150 | New functions. | |
1151 | (struct dwarf2_per_objfile) <macro>: New field. | |
1152 | (dwarf2_elf_names): Add .debug_macro. | |
1153 | (dwarf2_macros_too_long_complaint): Add 'section' argument. | |
1154 | (dwarf2_locate_sections): Handle new section. | |
1155 | (read_file_scope): Handle DW_AT_GNU_macros. | |
1156 | (dwarf2_per_objfile_free): Unmap the .debug_macro section. | |
1157 | ||
1a532630 PP |
1158 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
1159 | ||
1160 | * NEWS: Mention dcache configuration. | |
1161 | * dcache.c (dcache_set_list, dcache_show_list): New variables. | |
1162 | (dcache_size, dcache_line_size): New variables. | |
1163 | (LINE_SIZE_MASK, XFORM, MASK): Adjust. | |
1164 | (struct dcache_block): Make it expandable. | |
1165 | (struct dcache_struct): New field. | |
1166 | (dcache_invalidate): Discard freelist upon dcache_line_size changes. | |
1167 | (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust. | |
1168 | (dcache_poke_byte, dcache_print_line): Adjust. | |
1169 | (set_dcache_size, set_dcache_line_size): New functions. | |
1170 | (set_dcache_command, show_dcache_command): New functions. | |
1171 | (_initialize_dcache): Add new commands. | |
1172 | ||
2eff07b3 PP |
1173 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
1174 | ||
1175 | * progspace.h (struct program_space): Add solib_add_generation. | |
1176 | * infcmd.c (post_create_inferior): Only call solib_add if not | |
1177 | already done. | |
1178 | * solib.c (solib_add): Increment solib_add_generation. | |
1179 | ||
543305c9 JK |
1180 | 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
1181 | ||
1182 | Fix implicit pointer offsets. | |
1183 | * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also | |
1184 | ptr.OFFSET. | |
1185 | ||
c0a91b2b TT |
1186 | 2011-07-25 Tom Tromey <tromey@redhat.com> |
1187 | ||
1188 | * ada-lang.c (ada_exception_breakpoint_ops): Make return type | |
1189 | const. | |
1190 | (ada_exception_sal): Make 'ops' const. | |
1191 | (ada_decode_exception_location): Likewise. | |
1192 | (ada_decode_assert_location): Likewise. | |
1193 | (catch_assert_command): Update. | |
1194 | (catch_ada_exception_command): Update. | |
1195 | (create_ada_exception_catchpoint): Make 'ops' const. | |
1196 | * breakpoint.c (set_raw_breakpoint_without_location) | |
1197 | (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops' | |
1198 | const. | |
1199 | (create_internal_breakpoint): Update. | |
1200 | (init_raw_breakpoint_without_location): Make 'ops' const. | |
1201 | (init_raw_breakpoint, init_catchpoint) | |
1202 | (create_fork_vfork_event_catchpoint) | |
1203 | (create_syscall_event_catchpoint, init_breakpoint_sal) | |
1204 | (create_breakpoint_sal, create_breakpoints_sal) | |
1205 | (create_breakpoint, init_ada_exception_breakpoint): Likewise. | |
1206 | * breakpoint.h (struct breakpoint) <ops>: Now const. | |
1207 | (init_ada_exception_breakpoint, create_breakpoint): Make 'ops' | |
1208 | const. | |
1209 | ||
6cb9b55b PP |
1210 | 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com> |
1211 | ||
1212 | * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique. | |
1213 | ||
d9b3f62e PA |
1214 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1215 | ||
1216 | * breakpoint.h (print_recreate_thread): Declare. | |
1217 | (struct breakpoint): Move step_count, pass_count, | |
1218 | number_on_target, static_trace_marker_id, | |
1219 | static_trace_marker_id_idx ... | |
1220 | (struct tracepoint): ... to this new struct. | |
1221 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
1222 | (get_tracepoint_by_number): Change return type to struct | |
1223 | tracepoint pointer. | |
1224 | * breakpoint.c (is_tracepoint_type): New, factored out from | |
1225 | is_tracepoint. | |
1226 | (is_tracepoint): Adjust. | |
1227 | (print_one_breakpoint_location): Cast to struct tracepoint as | |
1228 | necessary, and adjust. | |
1229 | (print_recreate_catch_fork, print_recreate_catch_vfork) | |
1230 | (print_recreate_catch_syscall, print_recreate_catch_exec): Call | |
1231 | print_recreate_thread. | |
1232 | (init_breakpoint_sal): New, factored out from | |
1233 | create_breakpoint_sal. | |
1234 | (create_breakpoint_sal): Reimplement. | |
1235 | (create_breakpoint): Allocate a struct tracecepoint if the caller | |
1236 | wanted a tracepoint. Use init_breakpoint_sal and | |
1237 | install_breakpoint. | |
1238 | (print_recreate_ranged_breakpoint, print_recreate_watchpoint) | |
1239 | (print_recreate_masked_watchpoint) | |
1240 | (print_recreate_exception_catchpoint): Call print_recreate_thread. | |
1241 | (tracepoint_print_one_detail): Adjust. | |
1242 | (tracepoint_print_recreate): Adjust. Call print_recreate_thread. | |
1243 | Dump the pass count here. | |
1244 | (update_static_tracepoint): Adjust. | |
1245 | (addr_string_to_sals): Adjust. | |
1246 | (create_tracepoint_from_upload): Adjust. Change return type to | |
1247 | struct tracepoint pointer. | |
1248 | (trace_pass_set_count): Change parameter type to struct tracepoint | |
1249 | pointer, and adjust. | |
1250 | (trace_pass_command): Adjust. | |
1251 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
1252 | (get_tracepoint_by_number): Change return type to struct | |
1253 | tracepoint pointer, and adjust. | |
1254 | (print_recreate_thread): New, factored out from save_breakpoints. | |
1255 | (save_breakpoints): Don't print thread and task and passcount | |
1256 | recreation here. | |
1257 | * remote.c (remote_download_tracepoint): Adjust. | |
1258 | * tracepoint.c (trace_actions_command, validate_actionline) | |
1259 | (start_tracing, tfind_1, trace_find_tracepoint_command) | |
1260 | (trace_dump_command): Adjust. | |
1261 | (find_matching_tracepoint): Change return type to struct | |
1262 | tracepoint pointer, and adjust. | |
1263 | (merge_uploaded_tracepoints, tfile_get_traceframe_address) | |
1264 | (tfile_trace_find, tfile_fetch_registers): Adjust. | |
1265 | * tracepoint.h (create_tracepoint_from_upload): Change return type | |
1266 | to struct tracepoint pointer. | |
1267 | * ada-lang.c (print_recreate_exception): Call | |
1268 | print_recreate_thread. | |
1269 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust. | |
1270 | ||
3a5c3e22 PA |
1271 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1272 | ||
1273 | * breakpoint.h (struct breakpoint): Move ops as first field. Move | |
1274 | exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp, | |
1275 | cond_exp_valid_block, val, val_valid, watchpoint_frame, | |
1276 | watchpoint_thread, watchpoint_triggered ... | |
1277 | (struct watchpoint): ... to this new struct. | |
1278 | (is_watchpoint): Declare. | |
1279 | (install_breakpoint): Add new `internal' parameter. | |
1280 | * breakpoint.c (is_watchpoint): Delete declaration. | |
1281 | (set_breakpoint_condition): Handle watchpoints. | |
1282 | (is_watchpoint): Make public. | |
1283 | (watchpoint_in_thread_scope): Change parameter type to struct | |
1284 | watchpoint. | |
1285 | (watchpoint_del_at_next_stop): Change parameter type to struct | |
1286 | watchpoint. Remove assertion. Adjust. | |
1287 | (update_watchpoint): Ditto. | |
1288 | (insert_breakpoints, breakpoint_init_inferior) | |
1289 | (watchpoints_triggered, watchpoint_check) | |
1290 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions) | |
1291 | (bpstat_stop_status, print_one_breakpoint_location) | |
1292 | (print_one_breakpoint_location, watchpoint_locations_match): Cast | |
1293 | to struct watchpoint as necessary, and adjust. | |
1294 | (install_breakpoint): Add `internal' argument. If true, don't | |
1295 | mention the new breakpoint. Use set_breakpoint_number. | |
1296 | (create_fork_vfork_event_catchpoint) | |
1297 | (create_syscall_event_catchpoint): Adjust. | |
1298 | (dtor_watchpoint): New. | |
1299 | (re_set_watchpoint, insert_watchpoint, remove_watchpoint) | |
1300 | (breakpoint_hit_watchpoint, resources_needed_watchpoint) | |
1301 | (print_it_watchpoint, print_mention_watchpoint) | |
1302 | (print_recreate_watchpoint, insert_masked_watchpoint) | |
1303 | (remove_masked_watchpoint, resources_needed_masked_watchpoint) | |
1304 | (print_one_detail_masked_watchpoint) | |
1305 | (print_mention_masked_watchpoint) | |
1306 | (print_recreate_masked_watchpoint): Cast to struct watchpoint as | |
1307 | necessary, and adjust. | |
1308 | (watch_command_1): Allocate and initialize a struct watchpoint | |
1309 | instead of a struct breakpoint. Use install_breakpoint. | |
1310 | (catch_exec_command_1): Adjust. | |
1311 | (base_breakpoint_dtor): Delete accesses to watchpoint specific | |
1312 | fields. | |
1313 | (delete_breakpoint, enable_breakpoint_disp) | |
1314 | (invalidate_bp_value_on_memory_change): Cast to struct watchpoint | |
1315 | as necessary, and adjust. | |
1316 | (initialize_breakpoint_ops): Install dtor_watchpoint as | |
1317 | watchpoints' dtor method. | |
1318 | * ada-lang.c (create_ada_exception_catchpoint): Adjust. | |
1319 | * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint. | |
1320 | to struct watchpoint as necessary, and adjust. | |
1321 | ||
2060206e PA |
1322 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1323 | ||
1324 | * ada-lang.c (dtor_exception, re_set_exception): Indirect through | |
1325 | the the base class ops table. | |
1326 | (catch_exception_breakpoint_ops) | |
1327 | (catch_exception_unhandled_breakpoint_ops) | |
1328 | (catch_assert_breakpoint_ops): Don't statically initialize. | |
1329 | (initialize_ada_catchpoint_ops): New. | |
1330 | (_initialize_ada_language): Call it. | |
1331 | * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops) | |
1332 | (bkpt_breakpoint_ops): Forward declare. | |
1333 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
1334 | (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops) | |
1335 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
1336 | (masked_watchpoint_breakpoint_ops) | |
1337 | (gnu_v3_exception_catchpoint_ops): Don't statically initialize. | |
1338 | (dtor_catch_syscall, dtor_catch_exec): Indirect through the the | |
1339 | base class ops table. | |
1340 | (null_re_set, null_check_status, null_works_in_software_mode) | |
1341 | (null_resources_needed, null_print_one_detail): Delete. | |
1342 | (bkpt_dtor): Rename to ... | |
1343 | (base_breakpoint_dtor): ... this. Make static. | |
1344 | (bkpt_allocate_location): Rename to ... | |
1345 | (base_breakpoint_allocate_location): ... this. Make static. | |
1346 | (base_breakpoint_re_set): New. | |
1347 | (internal_error_pure_virtual_called): New. | |
1348 | (base_breakpoint_insert_location, base_breakpoint_remove_location) | |
1349 | (base_breakpoint_breakpoint_hit, base_breakpoint_check_status) | |
1350 | (base_breakpoint_works_in_software_mode) | |
1351 | (base_breakpoint_resources_needed, base_breakpoint_print_it) | |
1352 | (base_breakpoint_print_one_detail, base_breakpoint_print_mention) | |
1353 | (base_breakpoint_print_recreate): New functions. | |
1354 | (base_breakpoint_ops): New global. | |
1355 | (bkpt_re_set, bkpt_insert_location, bkpt_remove_location) | |
1356 | (bkpt_breakpoint_hit): Make static. | |
1357 | (bkpt_check_status): Delete. | |
1358 | (bkpt_resources_needed): Make static. | |
1359 | (bkpt_works_in_software_mode): Delete. | |
1360 | (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make | |
1361 | static. | |
1362 | (bkpt_breakpoint_ops, internal_breakpoint_ops) | |
1363 | (momentary_breakpoint_ops): Don't statically initialize. | |
1364 | (internal_bkpt_print_recreate, momentary_bkpt_print_recreate): | |
1365 | Delete. | |
1366 | (tracepoint_insert_location, tracepoint_remove_location) | |
1367 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
1368 | (tracepoint_print_it): Delete. | |
1369 | (tracepoint_breakpoint_ops): Don't statically initialize. | |
1370 | (initialize_breakpoint_ops): New. | |
1371 | (_initialize_breakpoint): Call it. | |
1372 | * breakpoint.h (null_re_set, null_works_in_software_mode) | |
1373 | (null_resources_needed, null_check_status, null_print_one_detail): | |
1374 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
1375 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
1376 | (bkpt_check_status, bkpt_resources_needed) | |
1377 | (bkpt_works_in_software_mode, bkpt_print_it) | |
1378 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
1379 | Delete declarations. | |
1380 | (initialize_breakpoint_ops): Declare. | |
1381 | ||
001c8c33 PA |
1382 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1383 | ||
1384 | * breakpoint.c (bkpt_print_it, internal_bkpt_print_it) | |
1385 | (momentary_bkpt_print_it): Simplify. | |
1386 | ||
06edf0c0 PA |
1387 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1388 | ||
1389 | Split internal, momentary and user breakpoints breakpoint_ops | |
1390 | tables. | |
1391 | ||
1392 | * breakpoint.c (internal_breakpoint_ops) | |
1393 | (momentary_breakpoint_ops): Forward declare. | |
1394 | (create_internal_breakpoint): Add new breakpoint_ops parameter. | |
1395 | Pass it down, rather than hardcoding bkpt_breakpoint_ops. | |
1396 | (create_overlay_event_breakpoint) | |
1397 | (create_std_terminate_master_breakpoint) | |
1398 | (create_exception_master_breakpoint): Create breakpoints with | |
1399 | internal_breakpoint_ops vtable. | |
1400 | (set_longjmp_breakpoint): Create momentary breakpoints with | |
1401 | momentary_breakpoint_ops vtable, using | |
1402 | momentary_breakpoint_from_master. | |
1403 | (create_thread_event_breakpoint, create_jit_event_breakpoint) | |
1404 | (create_solib_event_breakpoint): Create breakpoints with | |
1405 | internal_breakpoint_ops vtable. | |
1406 | (set_momentary_breakpoint): Create breakpoints with | |
1407 | momentary_breakpoint_ops vtable. | |
1408 | (momentary_breakpoint_from_master): New, factored out from | |
1409 | clone_momentary_breakpoint. | |
1410 | (clone_momentary_breakpoint): Adjust. | |
1411 | (watch_command_1): Create scope breakpoints with | |
1412 | momentary_breakpoint_ops vtable. | |
1413 | (bkpt_re_set): Remove handling of internal and momentary | |
1414 | breakpoints. | |
1415 | (bkpt_print_mention, bkpt_print_recreate): New. | |
1416 | (bkpt_breakpoint_ops): Adjust. | |
1417 | (internal_bkpt_re_set, internal_bkpt_check_status) | |
1418 | (internal_bkpt_print_it, internal_bkpt_print_mention) | |
1419 | (internal_bkpt_print_recreate, internal_breakpoint_ops): New. | |
1420 | (momentary_bkpt_re_set, momentary_bkpt_check_status) | |
1421 | (momentary_bkpt_print_it, momentary_bkpt_print_mention) | |
1422 | (momentary_bkpt_print_recreate): New. | |
1423 | (momentary_breakpoint_ops): New. | |
1424 | ||
348d480f PA |
1425 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
1426 | ||
1427 | Implement most breakpoint_ops methods for all breakpoint types, | |
1428 | and move the default handlings to the proper callbacks. | |
1429 | ||
1430 | * breakpoint.c (update_watchpoint): Always call the breakpoint's | |
1431 | works_in_software_mode method. | |
1432 | (insert_bp_location): Go through breakpoint_ops->insert_location | |
1433 | for software and hardware watchpoints. | |
1434 | (create_internal_breakpoint): Pass bkpt_breakpoint_ops as | |
1435 | breakpoint_ops. | |
1436 | (remove_breakpoint_1): Go through breakpoint_ops->remove_location | |
1437 | for software and hardware watchpoints. | |
1438 | (print_it_typical): Delete. | |
1439 | (print_bp_stop_message): Always call the breakpoint_ops->print_it | |
1440 | method. | |
1441 | (watchpoint_check): Adjust comment. | |
1442 | (bpstat_check_location): Simply always call the breakpoint's | |
1443 | breakpoint_hit method. | |
1444 | (bpstat_stop_status): Always call the breakpoint's check_status | |
1445 | method. Remove special cases for watchpoints and internal event | |
1446 | breakpoints from here (moved to the check_status implementations). | |
1447 | (print_one_breakpoint_location): Assume b->ops is never NULL. | |
1448 | Remove static tracepoint marker id printing from here (moved to | |
1449 | the print_one_detail callback implementation of tracepoints). | |
1450 | (init_bp_location): Assert OPS is never NULL. | |
1451 | (allocate_bp_location): Always call the breakpoint's | |
1452 | allocate_location method, and remove the default code from here. | |
1453 | (free_bp_location): Always call the location's dtor method, and | |
1454 | remove the default code from here. | |
1455 | (init_raw_breakpoint_without_location): Assert OPS is never NULL. | |
1456 | (set_raw_breakpoint_without_location): Add new breakpoint_ops | |
1457 | parameter. Pass it down. | |
1458 | (set_raw_breakpoint): Ditto. | |
1459 | (print_it_catch_fork): Adjust to take a bpstat as argument. | |
1460 | (catch_fork_breakpoint_ops): Install methods. | |
1461 | (print_it_catch_vfork): Adjust to take a bpstat as argument. | |
1462 | (catch_vfork_breakpoint_ops): Install methods. | |
1463 | (dtor_catch_syscall): Call the base dtor. | |
1464 | (print_it_catch_syscall): Adjust to take a bpstat as argument. | |
1465 | (catch_syscall_breakpoint_ops): Install methods. | |
1466 | (dtor_catch_exec): Call the base dtor. | |
1467 | (print_it_catch_exec): Adjust to take a bpstat as argument. | |
1468 | (catch_exec_breakpoint_ops): Install methods. | |
1469 | (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call | |
1470 | the breakpoint's resources_needed method, and remove the default | |
1471 | code from here. | |
1472 | (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as | |
1473 | breakpoint_ops. | |
1474 | (clone_momentary_breakpoint): Clone the original's ops. | |
1475 | (mention): Always call the breakpoint's print_mention method, and | |
1476 | remove the default code from here. | |
1477 | (create_breakpoint_sal): Adjust to pass the ops to | |
1478 | set_raw_breakpoint rather than setting it manually. | |
1479 | (create_breakpoint): Assert ops is never NULL. Adjust to pass the | |
1480 | ops to set_raw_breakpoint_without_location rather than setting it | |
1481 | manually. | |
1482 | (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops. | |
1483 | (print_it_ranged_breakpoint): Adjust to take a bpstat as argument. | |
1484 | (ranged_breakpoint_ops): Install methods. | |
1485 | (break_range_command): Adjust to pass the ops to | |
1486 | set_raw_breakpoint rather than setting it manually. | |
1487 | (re_set_watchpoint, breakpoint_hit_watchpoint) | |
1488 | (check_status_watchpoint, resources_needed_watchpoint) | |
1489 | (works_in_software_mode_watchpoint, print_it_watchpoint) | |
1490 | (print_mention_watchpoint, print_recreate_watchpoint): New | |
1491 | functions. | |
1492 | (watchpoint_breakpoint_ops): Install new methods. | |
1493 | (print_it_masked_watchpoint): New function. | |
1494 | (masked_watchpoint_breakpoint_ops): Install new methods. | |
1495 | (watch_command_1): Adjust to pass the right breakpoint_ops to | |
1496 | set_raw_breakpoint_without_location rather than setting it | |
1497 | manually later. Record the current pspace. | |
1498 | (print_it_exception_catchpoint): Adjust to take a bpstat as | |
1499 | argument. | |
1500 | (gnu_v3_exception_catchpoint_ops): Install new methods. | |
1501 | (say_where): New function. | |
1502 | (null_re_set, null_check_status, null_works_in_software_mode) | |
1503 | (null_resources_needed, null_print_one_detail, bp_location_dtor): | |
1504 | New functions. | |
1505 | (bp_location_ops): New global. | |
1506 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
1507 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
1508 | (bkpt_check_status, bkpt_resources_needed) | |
1509 | (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention) | |
1510 | (bkpt_print_recreate): New functions. | |
1511 | (bkpt_breakpoint_ops): New global. | |
1512 | (tracepoint_re_set, tracepoint_insert_location) | |
1513 | (tracepoint_remove_location, tracepoint_breakpoint_hit) | |
1514 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
1515 | (tracepoint_print_it, tracepoint_print_one_detail) | |
1516 | (tracepoint_print_mention, tracepoint_print_recreate): New | |
1517 | functions. | |
1518 | (tracepoint_breakpoint_ops): New global. | |
1519 | (delete_breakpoint): Always call the breakpoint's dtor method, and | |
1520 | remove the default handling from here. | |
1521 | (breakpoint_re_set_default): Make static. | |
1522 | (breakpoint_re_set_one): Always call the breakpoints re_set | |
1523 | method, and remove the default handling from here. | |
1524 | (trace_command, ftrace_command, strace_command) | |
1525 | (create_tracepoint_from_upload): Pass appropriate breakpoints_ops | |
1526 | to create_breakpoint. | |
1527 | (save_breakpoints): Always call the breakpoint's print_recreate | |
1528 | method, and remove the default handling from here. | |
1529 | ||
1530 | * ada-lang.c (dtor_exception): Call the base dtor. | |
1531 | (re_set_exception): Call the base method. | |
1532 | (print_it_exception, print_it_catch_exception): Adjust to take a | |
1533 | bpstat as argument. | |
1534 | (catch_exception_breakpoint_ops): Install methods. | |
1535 | (print_it_catch_exception_unhandled): Adjust to take a bpstat as | |
1536 | argument. | |
1537 | (catch_exception_unhandled_breakpoint_ops): Install methods. | |
1538 | (print_it_catch_assert): Adjust to take a bpstat as argument. | |
1539 | (catch_assert_breakpoint_ops): Install methods. | |
1540 | ||
1541 | * breakpoint.h (struct breakpoint_ops): Adjust the print_it method | |
1542 | to take a bpstat as argument. | |
1543 | (enum print_stop_action): Add describing comments to each enum | |
1544 | value. | |
1545 | (breakpoint_re_set_default): Delete declaration. | |
1546 | (null_re_set, null_works_in_software_mode, null_resources_needed) | |
1547 | (null_check_status, null_print_one_detail): Declare. | |
1548 | (bkpt_breakpoint_ops): Declare. | |
1549 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
1550 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
1551 | (bkpt_check_status, bkpt_resources_needed) | |
1552 | (bkpt_works_in_software_mode, bkpt_print_it) | |
1553 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
1554 | Declare. | |
1555 | ||
1556 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass | |
1557 | bkpt_breakpoint_ops. | |
1558 | * python/py-breakpoint.c (bppy_init): Ditto. | |
1559 | ||
be8f8133 PW |
1560 | 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1561 | ||
1562 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1563 | ||
3807f613 PP |
1564 | 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com> |
1565 | ||
1566 | * elfread.c (elf_rel_plt_read): Fix off-by-one bug. | |
1567 | ||
1ced966e PA |
1568 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
1569 | ||
1570 | * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE) | |
1571 | (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN) | |
1572 | (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and | |
1573 | adjust. | |
1574 | (dr_mirror, dr_status_mirror, dr_control_mirror): Delete. | |
1575 | (struct i386_debug_reg_state): New. | |
1576 | (i386_init_dregs): New. | |
1577 | (dr_mirror): New. | |
1578 | (i386_cleanup_dregs): Use i386_init_dregs. | |
1579 | (i386_show_dr): Add state parameter and adjust. | |
1580 | (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to | |
1581 | the inferior here. | |
1582 | (i386_remove_aligned_watchpoint): Likewise. | |
1583 | (i386_handle_nonaligned_watchpoint): Add state parameter and adjust. | |
1584 | (i386_update_inferior_debug_regs): New. | |
1585 | (i386_insert_watchpoint): Work on a local mirror of the debug | |
1586 | registers, and only update the inferior on success. | |
1587 | (i386_remove_watchpoint): Ditto. | |
1588 | (i386_region_ok_for_watchpoint): Adjust. | |
1589 | (i386_stopped_data_address): Adjust. | |
1590 | (i386_insert_hw_breakpoint): Adjust. | |
1591 | (i386_remove_hw_breakpoint): Adjust. | |
1592 | ||
3543a589 TT |
1593 | 2011-07-22 Tom Tromey <tromey@redhat.com> |
1594 | ||
1595 | * amd64-tdep.c (amd64_pseudo_register_read_value): Rename | |
1596 | from amd64_pseudo_register_read. Change arguments. Call | |
1597 | mark_value_bytes_unavailable when needed. | |
1598 | (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not | |
1599 | set_gdbarch_pseudo_register_read. | |
1600 | * sentinel-frame.c (sentinel_frame_prev_register): Use | |
1601 | regcache_cooked_read_value. | |
1602 | * regcache.h (regcache_cooked_read_value): Declare. | |
1603 | * regcache.c (regcache_cooked_read_value): New function. | |
1604 | (regcache_cooked_read): Call | |
1605 | gdbarch_pseudo_register_read_value if available. | |
1606 | * i386-tdep.h (i386_pseudo_register_read_value): Declare. | |
1607 | (i386_pseudo_register_read): Remove. | |
1608 | * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from | |
1609 | i386_pseudo_register_read. Change arguments. Call | |
1610 | mark_value_bytes_unavailable when needed. | |
1611 | (i386_pseudo_register_read_value): New function. | |
1612 | (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value, | |
1613 | not set_gdbarch_pseudo_register_read. | |
1614 | * gdbarch.sh (pseudo_register_read_value): New method. | |
1615 | * gdbarch.c, gdbarch.h: Rebuild. | |
1616 | * findvar.c (value_from_register): Call get_frame_register_value. | |
1617 | ||
95298e72 PM |
1618 | 2011-07-22 Phil Muldoon <pmuldoon@redhat.com> |
1619 | ||
1620 | * event-top.c (cli_command_loop): Use get_prompt, get_suffix, | |
1621 | get_prefix. | |
1622 | (display_gdb_prompt): Likewise. | |
1623 | (change_annotation_level): Likewise. | |
1624 | (push_prompt): Likewise. | |
1625 | (pop_prompt): Likewise. | |
1626 | (handle_stop_sig): Use get_prompt with a level. | |
1627 | * top.c (command_loop): Use get_prompt with a level. | |
1628 | (set_async_annotation_level): Use set_prompt with a level. | |
1629 | (get_prefix): New function. | |
1630 | (set_prefix): Ditto. | |
1631 | (set_suffix): Ditto. | |
1632 | (get_suffix): Ditto. | |
1633 | (get_prompt): Accept a level argument. | |
1634 | (set_prompt): Accept a level argument. Free old prompts. Set | |
1635 | new_async_prompt if level is 0. | |
1636 | (init_main): Use set_prompt with a level. Do not set | |
1637 | new_async_prompt. | |
1638 | * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c | |
1639 | * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix. | |
1640 | Modify set_prompt, get_prompt to account for levels. | |
1641 | * tui/tui-interp.c (tui_command_loop): Use get_prompt with a | |
1642 | level. | |
1643 | * python/python.c (before_prompt_hook): Use set_prompt. | |
1644 | ||
d26e3629 KY |
1645 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
1646 | ||
1647 | * defs.h: Add guard against inclusion in gdbserver. | |
1648 | (struct ptid, ptid_t): Move to common/ptid.h. | |
1649 | (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf, | |
1650 | xsnprintf, internal_error): Move to common/common-utils.h. | |
1651 | (nomem): Delete. | |
1652 | * gdb_assert.h: Move into common/ sub-directory. | |
1653 | * gdb_locale.h: Ditto. | |
1654 | * gdb_dirent.h: Ditto. | |
1655 | * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid, | |
1656 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): | |
1657 | Move into common/ptid.h. | |
1658 | * xml-support.c (xml_escape_text): Move into common/xml-utils.c. | |
1659 | (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file): | |
1660 | Change nomem to malloc_failure. | |
1661 | * xml-support.h (xml_escape_text): Move into common/xml-utils.h. | |
1662 | * utils.c (nomem): Rename to malloc_failure. | |
1663 | (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf, | |
1664 | xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c. | |
1665 | (gdb_buildargv): Change nomem to malloc_failure. | |
1666 | * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
1667 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
1668 | ptid_is_pid): Move into common/ptid.c. | |
1669 | (initialize_infrun): Delete initialization of null_ptid and | |
1670 | minus_one_ptid. | |
1671 | * linux-nat.c (linux_nat_xfer_osdata): Defer to | |
1672 | linux_common_xfer_osdata. | |
1673 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
1674 | common/ptid.c and common/buffer.c. | |
1675 | (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h, | |
1676 | common/ptid.h, common/buffer.h and common/linux-osdata.h. | |
1677 | (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o. | |
1678 | (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New | |
1679 | rules. | |
1680 | * common/gdb_assert.h: New. | |
1681 | * common/gdb_dirent.h: New. | |
1682 | * common/gdb_locale.h: New. | |
1683 | * common/buffer.c: New. | |
1684 | * common/buffer.h: New. | |
1685 | * common/ptid.c: New. | |
1686 | * common/ptid.h: New. | |
1687 | * common/xml-utils.c: New. | |
1688 | * common/xml-utils.h: New. | |
1689 | * common/common-utils.c: New. | |
1690 | * common/common-utils.h: New. | |
1691 | * common/linux-osdata.c: New. | |
1692 | * common/linux-osdata.h: New. | |
1693 | * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o. | |
1694 | * config/arm/linux.mh (NATDEPFILES): Ditto. | |
1695 | * config/i386/linux.mh (NATDEPFILES): Ditto. | |
1696 | * config/i386/linux64.mh (NATDEPFILES): Ditto. | |
1697 | * config/ia64/linux.mh (NATDEPFILES): Ditto. | |
1698 | * config/m32r/linux.mh (NATDEPFILES): Ditto. | |
1699 | * config/m68k/linux.mh (NATDEPFILES): Ditto. | |
1700 | * config/mips/linux.mh (NATDEPFILES): Ditto. | |
1701 | * config/pa/linux.mh (NATDEPFILES): Ditto. | |
1702 | * config/powerpc/linux.mh (NATDEPFILES): Ditto. | |
1703 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto. | |
1704 | * config/s390/s390.mh (NATDEPFILES): Ditto. | |
1705 | * config/sparc/linux.mh (NATDEPFILES): Ditto. | |
1706 | * config/sparc/linux64.mh (NATDEPFILES): Ditto. | |
1707 | * config/xtensa/linux.mh (NATDEPFILES): Ditto. | |
1708 | ||
edc84990 | 1709 | 2011-07-21 Matt Rice <ratmice@gmail.com> |
1710 | ||
1711 | * NEWS: Add info macros and info definitions commands. | |
1712 | ||
3a7bf607 PM |
1713 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
1714 | ||
1715 | * NEWS: Document Python prompt substitution hook. | |
1716 | ||
9b158ba0 | 1717 | 2011-07-18 Matt Rice <ratmice@gmail.com> |
1718 | ||
1719 | PR macros/12999 | |
1720 | * macrotab.h (macro_callback_fn): Add new arguments to callback. | |
1721 | * macrotab.c (foreach_macro): Ditto. | |
1722 | (foreach_macro_in_scope): Ditto. | |
1723 | * macrocmd.c (print_macro_callback): New function. | |
1724 | (info_macro_command): Move some code to print_macro_definition. | |
1725 | (print_macro_definition): New function. | |
1726 | (print_one_macro): Add new arguments to callback. | |
1727 | (info_definitions_command): New function. | |
1728 | (info_macros_command): Ditto. | |
1729 | (_initialize_macrocmd): Add info macros and info definitions commands. | |
1730 | * symtab.c (add_macro_name): Add new arguments to callback. | |
1731 | ||
d17b6f81 PM |
1732 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
1733 | Tom Tromey <tromey@redhat.com> | |
1734 | ||
1735 | * top.c (set_prompt): Rewrite to free previous prompt, free | |
1736 | asynch_new_prompt and set both on new prompts. | |
1737 | * event-top.c (display_gdb_prompt): Add prompt substitution | |
1738 | logic. | |
1739 | * python/python.c (before_prompt_hook): New function. | |
1740 | ||
1364323a | 1741 | 2011-07-20 Matt Rice <ratmice@gmail.com> |
1742 | ||
1743 | * bfin-tdep.c (bfin_extract_return_value): Fix swapped | |
1744 | arguments to store_unsigned_integer. | |
1745 | ||
8b70b953 TT |
1746 | 2011-07-20 Tom Tromey <tromey@redhat.com> |
1747 | ||
6c83ed52 TT |
1748 | * dwarf2read.c (process_enumeration_scope): Do not call new_symbol |
1749 | in some declaration-only cases. | |
1750 | ||
1751 | 2011-07-18 Tom Tromey <tromey@redhat.com> | |
1752 | ||
8b70b953 TT |
1753 | PR symtab/12984: |
1754 | * dwarf2read.c (dwarf2_section_info_def): New typedef. | |
1755 | (struct dwarf2_per_objfile) <types>: Change to a VEC. | |
1756 | (struct dwarf2_per_cu_data) <from_debug_types>: Remove. | |
1757 | <debug_type_section>: New field. | |
1758 | (dwarf2_locate_sections): Push .debug_types sections onto VEC. | |
1759 | (load_cu): Use appropriate section. | |
1760 | (create_signatured_type_table_from_index): Add 'section' | |
1761 | argument. | |
1762 | (dwarf2_read_index): Only allow a single .debug_types section. | |
1763 | (dw2_get_file_names): Use appropriate section. | |
1764 | (read_type_comp_unit_head): Add 'section' argument. | |
1765 | (create_debug_types_hash_table): Loop over all .debug_types | |
1766 | sections. | |
1767 | (init_cu_die_reader): Use appropriate section. | |
1768 | (process_psymtab_comp_unit, load_partial_comp_unit) | |
1769 | (load_full_comp_unit, read_die_and_children, find_partial_die) | |
1770 | (lookup_die_type, determine_prefix, follow_die_offset): Update. | |
1771 | (lookup_signatured_type_at_offset): Add 'section' argument. | |
1772 | (read_signatured_type_at_offset): Add 'sect' argument. | |
1773 | (read_signatured_type): Use appropriate section. | |
1774 | (set_die_type, get_die_type_at_offset): Update. | |
1775 | (dwarf2_per_objfile_free): Free all .debug_types sections, and | |
1776 | VEC. | |
1777 | (write_psymtabs_to_index): Don't allow index with more than one | |
1778 | .debug_types section. | |
1779 | ||
918dd910 JK |
1780 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
1781 | ||
1782 | Fix crash if referenced CU is aged out. | |
1783 | * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for | |
1784 | xfree of block.data. | |
1785 | (indirect_pieced_value): New variable back_to, use to for xfree of | |
1786 | baton.data. | |
1787 | (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of | |
1788 | block.data. | |
1789 | * dwarf2read.c (dwarf2_find_base_address): New prototype. | |
1790 | (load_cu): New function from ... | |
1791 | (dw2_do_instantiate_symtab): ... the code here ... | |
1792 | (process_full_comp_unit): ... and here. | |
1793 | (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on | |
1794 | retval.data. | |
1795 | ||
0e37a63c JK |
1796 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
1797 | ||
1798 | * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's | |
1799 | type. | |
1800 | ||
7e324e48 GB |
1801 | 2011-07-19 Gary Benson <gbenson@redhat.com> |
1802 | ||
1803 | * infrun.c (struct execution_control_state): New member | |
1804 | stop_func_filled_in. | |
1805 | (clear_stop_func, fill_in_stop_func): New functions. | |
1806 | (handle_inferior_event): Call clear_stop_func rather than | |
1807 | manipulating the execution control state directly. | |
1808 | Call fill_in_stop_func lazily as required rather than | |
1809 | directly calling find_pc_partial_function in all cases. | |
1810 | ||
d48323d8 TT |
1811 | 2011-07-18 Tom Tromey <tromey@redhat.com> |
1812 | ||
1813 | * dwarf2read.c (read_subrange_type): Use attr_form_is_block when | |
1814 | checking for variable-sized array. | |
1815 | ||
40591b7d JCD |
1816 | 2011-07-18 Jean-Charles Delay <delay@adacore.com> |
1817 | ||
1818 | * varobj.h (varobj_languages): Add vlang_ada definition to the list | |
1819 | of supported languages. | |
1820 | * varobj.c: Add top definitions and basic implementation of the | |
1821 | following callbacks: ada_number_of_children, ada_name_of_variable, | |
1822 | ada_name_of_child, ada_path_expr_of_child, ada_value_of_root, | |
1823 | ada_value_of_child, ada_type_of_child, ada_value_of_variable. | |
1824 | (languages): Register Ada-specific callbacks. | |
1825 | (variable_language): Add the Ada case in the language setter switch. | |
1826 | ||
2e424e08 JK |
1827 | 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1828 | ||
1829 | * remote-mips.c (pmon_download): Fix ignored return value GCC warning. | |
1830 | ||
9e8b7a03 JK |
1831 | 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1832 | ||
1833 | Code cleanup. | |
1834 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New. | |
1835 | (execute_stack_op): Use dwarf2_frame_ctx_funcs | |
1836 | * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs. | |
1837 | (execute_stack_op): Access read_reg, get_frame_base, read_mem, | |
1838 | get_frame_cfa, get_tls_address and dwarf_call via funcs. | |
1839 | * dwarf2expr.h (struct dwarf_expr_context): New forward declaration. | |
1840 | (struct dwarf_expr_context_funcs): New, move here methods from ... | |
1841 | (struct dwarf_expr_context): ... here. New fields funcs. | |
1842 | * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs. | |
1843 | (dwarf_expr_ctx_funcs): New. | |
1844 | (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs. | |
1845 | (needs_frame_dwarf_call): Access get_frame_pc via funcs. | |
1846 | (needs_frame_ctx_funcs): New. | |
1847 | (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs. | |
1848 | ||
2b1260ab FM |
1849 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
1850 | ||
1851 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1852 | ||
8bd90839 FM |
1853 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
1854 | ||
1855 | * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure | |
1856 | that CIE pointer of an FDE really points to a CIE . | |
1857 | ||
953b98d1 HZ |
1858 | 2011-07-15 Hui Zhu <teawater@gmail.com> |
1859 | ||
1860 | * remote.c (remote_get_trace_status): Add comments. | |
1861 | ||
c8f2448a JK |
1862 | 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
1863 | ||
1864 | Code cleanup - constify struct lval_funcs. | |
1865 | * dwarf2loc.c (pieced_value_funcs): Make it const. | |
1866 | * infrun.c (siginfo_value_funcs): Likewise. | |
1867 | * opencl-lang.c (opencl_value_funcs): Likewise. | |
1868 | * valops.c (value_assign, value_ind): Make the funcs variable const. | |
1869 | * value.c (struct value): Make location.computed.funcs target const. | |
1870 | Rearrange the comments. | |
1871 | (allocate_computed_value): Make the funcs parameter target const. | |
1872 | (value_computed_funcs): Return the funcs target const. | |
1873 | (value_free, value_copy, set_value_component_location): Make the funcs | |
1874 | variable const. | |
1875 | * value.h (allocate_computed_value): Make the funcs parameter target | |
1876 | const. | |
1877 | (value_computed_funcs): Return the funcs target const. | |
1878 | * windows-tdep.c (tlb_value_funcs): Make it const. | |
1879 | ||
f652de6f HZ |
1880 | 2011-07-14 Hui Zhu <teawater@gmail.com> |
1881 | ||
1882 | * remote.c (remote_get_trace_status): Initialize p. | |
1883 | ||
67f41397 JK |
1884 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1885 | ||
1886 | Work around kgdb. | |
1887 | * remote.c (remote_get_trace_status): New variable ex. Put | |
1888 | remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it. | |
1889 | ||
d1b66e6d TT |
1890 | 2011-07-13 Tom Tromey <tromey@redhat.com> |
1891 | ||
1892 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use | |
1893 | value_from_contents for final conversion. | |
1894 | ||
1632a688 JK |
1895 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1896 | ||
1897 | Code cleanup. | |
1898 | * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full): | |
1899 | Indent prototypes so they do not get into tags. | |
1900 | ||
a7035dbb JK |
1901 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
1902 | ||
1903 | Code cleanup making also optimized out values lazy. | |
1904 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
1905 | allocate_optimized_out_value. Twice. | |
1906 | (loclist_read_variable) Use allocate_optimized_out_value. Once. | |
1907 | * findvar.c (read_var_value): Likewise. | |
1908 | * value.c (allocate_optimized_out_value): New function. | |
1909 | * value.h (allocate_optimized_out_value): New declaration. | |
1910 | ||
d07ed419 JK |
1911 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
1912 | ||
1913 | Fix occasional crash of CTRL-C during DWARF read in. | |
1914 | * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU. | |
1915 | ||
86d31898 TT |
1916 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
1917 | ||
1918 | * regcache.c (struct regcache_descr): Fix typo. | |
1919 | * i387-tdep.c (i387_supply_xsave): Fix typo. | |
1920 | ||
2ab95328 TT |
1921 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
1922 | ||
1923 | * dwarf2read.c (handle_DW_AT_stmt_list): New function. | |
1924 | (read_file_scope, read_type_unit_scope): Use it. | |
1925 | ||
04ad99e6 JK |
1926 | 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1927 | ||
1928 | * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host | |
1929 | `int'. | |
1930 | ||
713389e0 PM |
1931 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
1932 | ||
1933 | PR python/12438 | |
1934 | * python/python.c: Set gdbpy_should_print_stack default to off. | |
1935 | (set_python): Deprecate maint set python print-stack to | |
1936 | class_deprecate. | |
1937 | (_initialize_python): Deprecate maint set/show python print-stack. | |
1938 | Add new prefix command, python. Add new setting, print-backtrace. | |
1939 | * NEWS: Document set python print-stack. Document default change. | |
1940 | ||
754eadd1 PM |
1941 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
1942 | ||
1943 | * python/py-inferior.c (infpy_dealloc): New function. | |
1944 | (inferior_to_inferior_object): Return a new object, or a | |
1945 | new reference to the existing object. | |
1946 | (find_thread_object): Cleanup references to inferior. | |
1947 | (delete_thread_object): Ditto. | |
1948 | * python/py-infthread.c (create_thread_object): Do not increment | |
1949 | inferior reference count. | |
1950 | ||
5e44ecb3 TT |
1951 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
1952 | ||
1953 | * dwarf2loc.c (locexpr_regname): New function. | |
1954 | (locexpr_describe_location_piece): Use it. | |
1955 | (disassemble_dwarf_expression): Add per_cu argument. Use | |
1956 | locexpr_regname. | |
1957 | <DW_OP_GNU_deref_type, DW_OP_GNU_const_type, | |
1958 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
1959 | New cases. | |
1960 | (locexpr_describe_location_1): Add per_cu argument. | |
1961 | (locexpr_describe_location): Update. | |
1962 | (loclist_describe_location): Update. | |
1963 | ||
e0e9434c TT |
1964 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
1965 | ||
1966 | * dwarf2expr.c (execute_stack_op): Add QUIT. | |
1967 | ||
26afc0d7 HZ |
1968 | 2011-07-07 Hui Zhu <teawater@gmail.com> |
1969 | ||
1970 | Revert: | |
1971 | 2011-07-06 Hui Zhu <teawater@gmail.com> | |
1972 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
1973 | remote_get_trace_status. | |
1974 | * tracepoint.c (disconnect_tracing): Ditto. | |
1975 | ||
a40a111f AB |
1976 | 2011-07-07 Andrew Burgess <aburgess@broadcom.com> |
1977 | ||
1978 | * cli/cli-setshow.c (do_setshow_command): Display var_zinteger | |
1979 | variables as signed, not unsigned. | |
1980 | ||
e2bd3b15 JB |
1981 | 2011-07-06 Joel Brobecker <brobecker@adacore.com> |
1982 | ||
1983 | * jit.c (jit_inferior_init): Reformat forward declaration. | |
1984 | ||
e3d961fe | 1985 | 2011-07-06 Matt Rice <ratmice@gmail.com> |
1986 | ||
1987 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1988 | ||
0f3428f0 HZ |
1989 | 2011-07-06 Hui Zhu <teawater@gmail.com> |
1990 | ||
1991 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
1992 | remote_get_trace_status. | |
1993 | * tracepoint.c (disconnect_tracing): Ditto. | |
1994 | ||
fc9f3a69 TT |
1995 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
1996 | ||
1997 | * symtab.c (operator_chars): Now static. | |
1998 | * linespec.c (operator_chars): Don't declare. | |
1999 | ||
26e519b9 TJB |
2000 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2001 | ||
2002 | * ui-out.h (ui_out_field_core_addr): Fix typo in comment. | |
2003 | ||
eb2a6f42 TT |
2004 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
2005 | ||
2006 | * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA. | |
2007 | * gdbtypes.h (struct cplus_struct_type) <is_java>: New field. | |
2008 | (TYPE_CPLUS_REALLY_JAVA): New macro. | |
2009 | * dwarf2read.c (process_structure_scope): Set | |
2010 | TYPE_CPLUS_REALLY_JAVA. | |
2011 | ||
21083d0f | 2012 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
177b42fe TJB |
2013 | |
2014 | * ada-lang.c: Fix typos. | |
2015 | * amd64-tdep.c: Likewise. | |
2016 | * breakpoint.c: Likewise. | |
2017 | * cli/cli-decode.c: Likewise. | |
2018 | * findcmd.c: Likewise. | |
2019 | * inline-frame.c: Likewise. | |
2020 | * mi/mi-main.c: Likewise. | |
2021 | * minsyms.c: Likewise. | |
2022 | * monitor.c: Likewise. | |
2023 | * monitor.h: Likewise. | |
2024 | * prologue-value.c: Likewise. | |
2025 | * reverse.c: Likewise. | |
2026 | * s390-tdep.c: Likewise. | |
2027 | ||
3b2a0cf2 JB |
2028 | 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
2029 | ||
2030 | * jit.c (jit_inferior_init): Forward declare. | |
2031 | (jit_breakpoint_re_set_internal): Call jit_inferior_init. | |
2032 | ||
efae1d92 JB |
2033 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
2034 | ||
2035 | * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting. | |
2036 | ||
6040a59d JB |
2037 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
2038 | ||
2039 | * ada-tasks.c (KNOWN_TASKS_LIST): New macro. | |
2040 | (tcb_fieldno): Add activation_link field. | |
2041 | (get_known_tasks_addr): Moved and rewritten. | |
2042 | (get_tcb_types_info): Set activation_link field. | |
2043 | (read_known_tasks_array): Add parameter. Rewritten. | |
2044 | (read_known_tasks_list): New function. | |
2045 | (read_known_tasks): New function. | |
2046 | (ada_build_task_list): Call read_known_tasks instead of | |
2047 | read_known_tasks_array. | |
2048 | * ravenscar-thread.c: Add first_task_name constant. | |
2049 | (has_ravenscar_runtime): Check for task list too. | |
2050 | ||
cb741e45 JB |
2051 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
2052 | ||
2053 | * ada-tasks.c: Renames fieldno to actb_fieldno. | |
2054 | (ada_get_task_number): Indentation. | |
2055 | (get_tcb_types_info): Remove all parameters. Write directly | |
2056 | the globals. | |
2057 | (ptid_from_atcb_common): Adjust. | |
2058 | (read_atcb): Adjust. | |
2059 | ||
7475b06c TJB |
2060 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2061 | ||
2062 | * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit. | |
2063 | ||
15230f37 TJB |
2064 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2065 | ||
2066 | * ui-out.c (ui_out_field_core_addr): Mention that the function | |
2067 | description is in the header file. | |
2068 | * ui-out.h (ui_out_field_core_addr): Document function. | |
2069 | ||
65743aba TJB |
2070 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2071 | ||
2072 | * ui-out.c (ui_out_get_field_separator): Remove unused function. | |
2073 | * ui-out.h (ui_out_get_field_separator): Remove prototype. | |
2074 | ||
c37a5aab TJB |
2075 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2076 | ||
2077 | * symtab.c (expand_line_sal): Remove empty line. | |
2078 | ||
59adf69e TS |
2079 | 2011-07-04 Thomas Schwinge <thomas@schwinge.name> |
2080 | ||
2081 | * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the | |
2082 | same way as ELFOSABI_NONE. | |
2083 | <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases. | |
2084 | ||
e5dd4106 TJB |
2085 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2086 | ||
2087 | * breakpoint.c: Fix typos in comments. | |
2088 | * linespec.c: Likewise. | |
2089 | * symtab.c: Likewise. | |
2090 | ||
d40102a1 JB |
2091 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
2092 | ||
2093 | * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame | |
2094 | section in separate object files. | |
2095 | ||
2f741504 JK |
2096 | 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
2097 | ||
2098 | Fix false GCC warning. | |
2099 | * linespec.c (decode_line_1): Initialize values. | |
2100 | ||
418c7cf7 JK |
2101 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2102 | ||
2103 | * linespec.c (find_method): Accept the function type automatically only | |
2104 | if it was specified with parameter types. | |
2105 | ||
3d50dd94 JK |
2106 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2107 | ||
2108 | Stop on first linespec terminator instead of eating what we can. | |
2109 | * linespec.c (is_linespec_boundary): New function. | |
2110 | (name_end): Remove function. | |
2111 | (keep_name_info): New parameter on_boundary, replace the body. | |
2112 | (decode_line_1): Provide the parameter to keep_name_info. | |
2113 | (decode_compound): Likewise. Drop the trailing java return type | |
2114 | handling. Twice. | |
2115 | ||
dcf9f4ab JK |
2116 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2117 | ||
2118 | Fall back linespec to minimal symbols. | |
2119 | * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect | |
2120 | decode_compound by TRY_CATCH, fall back on minsyms if it failed. | |
2121 | (find_method, symbol_found): Change error to cplusplus_error. | |
2122 | ||
3f542ed1 JK |
2123 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2124 | ||
bc68c4e5 | 2125 | * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE. |
3f542ed1 | 2126 | |
900e11f9 JK |
2127 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2128 | Tom Tromey <tromey@redhat.com> | |
2129 | ||
2130 | * dwarf2read.c (check_physname): New variable. | |
2131 | (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name. | |
2132 | (show_check_physname): New function. | |
2133 | (_initialize_dwarf2_read): Add `check-physname' for check_physname. | |
2134 | ||
2301925d JB |
2135 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2136 | ||
2137 | * machoread.c (macho_symfile_read): Delete OBE comment. | |
2138 | ||
38947cca JB |
2139 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2140 | ||
2141 | * machoread.c (struct macho_oso_data): Delete. | |
2142 | (current_oso): Delete. | |
2143 | (macho_relocate_common_syms): New function, mostly extracted | |
2144 | out of | |
2145 | (macho_add_oso_symfile): Call macho_relocate_common_syms. | |
2146 | Remove code that sets and unset current_oso. | |
2147 | (macho_symfile_relocate): Delete handling of common symbols, | |
2148 | now moved to macho_relocate_common_syms. | |
2149 | ||
a7aa0d73 JB |
2150 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2151 | ||
2152 | * darwin-nat.c (darwin_ptrace): Add documentation. | |
2153 | Set errno to zero before calling ptrace. If ptrace returns | |
2154 | -1 and errno is zero, then change then return zero. | |
2155 | (darwin_kill_inferior): Issue a warning instead of triggering | |
2156 | a failed assertion when the PT_KILL ptrace operations returned | |
2157 | nonzero. | |
2158 | ||
5e9bc145 JB |
2159 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2160 | ||
2161 | * darwin-nat.c (darwin_detach): Call darwin_resume_inferior | |
2162 | only when inf->private->no_ptrace. | |
2163 | ||
00eb2c4a JB |
2164 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2165 | ||
2166 | * ada-lang.c (print_it_exception): Print temporary catchpoints | |
2167 | as "Temporary catchpoint". | |
2168 | (print_mention_exception): Likewise. | |
2169 | ||
127c81bc TT |
2170 | 2011-07-01 Tom Tromey <tromey@redhat.com> |
2171 | ||
2172 | * jv-lang.c (java_language_defn): Use java_printchar, | |
2173 | java_printstr. | |
2174 | (java_get_encoding): New function. | |
2175 | (java_emit_char): Use generic_emit_char. | |
2176 | (java_printchar): New function. | |
2177 | (java_printstr): Likewise. | |
2178 | ||
25552254 JB |
2179 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2180 | ||
2181 | * ada-typeprint.c (print_record_type): If unable to decode | |
2182 | the name of the parent type, use the encoded name. | |
2183 | ||
d2d43431 JB |
2184 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
2185 | ||
2186 | * ada-typeprint.c (ada_print_type): Fix both PAD type and | |
2187 | pointer to constrained packed array type output. | |
2188 | * ada-valprint.c (ada_val_print_1): Fix pointer to constrained | |
2189 | packed array output. | |
2190 | ||
54ae186f JB |
2191 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
2192 | ||
2193 | * ada-typeprint.c (print_array_type): removed if condition on show | |
2194 | being negative for bounds printing. | |
2195 | ||
8f17729f JB |
2196 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2197 | ||
2198 | * ada-lang.c (ada_identical_enum_types_p): New function. | |
2199 | (symbols_are_identical_enums): New function. | |
2200 | (remove_extra_symbols): Do nothing if NSYMS < 2. | |
2201 | Use symbols_are_identical_enums. | |
2202 | ||
f5aa6869 JB |
2203 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2204 | ||
2205 | * ada-valprint.c (ada_value_print): Handle typedefs. | |
2206 | ||
8f465ea7 JB |
2207 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2208 | ||
2209 | * ada-lang.c (ada_evaluate_subexp): Add missing word in comment. | |
2210 | ||
828292f2 JB |
2211 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
2212 | ||
2213 | * ada-lang.c (thin_descriptor_type): Deal with typedefs. | |
2214 | (decode_constrained_packed_array): Likewise. | |
2215 | (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise. | |
2216 | ||
18920c42 JB |
2217 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2218 | ||
2219 | * ada-exp.y (convert_char_literal): Handle typedef types. | |
2220 | ||
c90092fe JB |
2221 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
2222 | ||
2223 | * ada-lang.c (ada_remove_trailing_digits): Expand documentation. | |
2224 | ||
f748fb40 TT |
2225 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
2226 | ||
2227 | * varobj.c (varobj_create): Call do_cleanups on early exit path. | |
2228 | * valops.c (find_overload_match): Call do_cleanups on early exit | |
2229 | path. | |
2230 | * solib.c (solib_find): Call do_cleanups on early exit path. | |
2231 | ||
3bb47e8b TT |
2232 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
2233 | ||
2234 | * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups. | |
2235 | * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all | |
2236 | return paths. Defer final do_cleanups until last return. | |
2237 | * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after | |
2238 | early return. | |
2239 | ||
4727bad3 TT |
2240 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
2241 | ||
2242 | * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1. | |
2243 | ||
bb361dbf AB |
2244 | 2011-06-30 Andrew Burgess <aburgess@broadcom.com> |
2245 | ||
2246 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
2247 | ||
e0d00bc7 JK |
2248 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
2249 | ||
2250 | Disable epilogue unwinders on recent GCCs. | |
2251 | * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab, | |
2252 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
2253 | * dwarf2read.c (process_full_comp_unit): Initialize | |
2254 | EPILOGUE_UNWIND_VALID. | |
2255 | * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab, | |
2256 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
2257 | * symtab.h (struct symtab): New field epilogue_unwind_valid. | |
2258 | ||
4632c0d0 JK |
2259 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
2260 | ||
2261 | Code cleanup - reformatting. | |
2262 | * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ... | |
2263 | (producer_is_gcc_ge_4): ... here, change the return value. | |
2264 | (process_full_comp_unit): New variable gcc_4_minor, adjust the value | |
2265 | interpretation. | |
2266 | ||
32019081 JK |
2267 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
2268 | ||
2269 | Fix non-only rename list for Fortran modules import. | |
2270 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the | |
2271 | cp_add_using_directive caller. | |
2272 | (cp_add_using_directive): New parameter excludes, describe it. New | |
2273 | variables ix and param. Compare if also excludes match. Allocate NEW | |
2274 | with variable size, initialize EXCLUDES there. | |
2275 | (cp_lookup_symbol_imports): New variable excludep, test | |
2276 | current->EXCLUDES with it. | |
2277 | * cp-support.h: Include vec.h. | |
2278 | (struct using_direct): New field excludes, describe it. | |
2279 | (DEF_VEC_P (const_char_ptr)): New. | |
2280 | (cp_add_using_directive): New parameter excludes. | |
2281 | * defs.h (const_char_ptr): New typedef. | |
2282 | * dwarf2read.c (read_import_statement): New variables child_die, | |
2283 | excludes and cleanups, read in excludes. | |
2284 | (read_namespace): Adjust the cp_add_using_directive caller. | |
2285 | ||
70c622a3 JK |
2286 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
2287 | ||
2288 | Code cleanup. | |
2289 | * cp-namespace.c (cp_add_using_directive): Turn positive comparison to | |
2290 | negative comparisons. | |
2291 | ||
39c4d40a TT |
2292 | 2011-06-29 André Pönitz <andre.poenitz@nokia.com> |
2293 | ||
2294 | * mi/mi-main.c (mi_cmd_list_features): Emit | |
2295 | breakpoint-notifications. | |
2296 | ||
3b2b8fea TT |
2297 | 2011-06-29 Tom Tromey <tromey@redhat.com> |
2298 | ||
2299 | PR fortran/10036: | |
2300 | * valprint.h (generic_emit_char, generic_printstr): Declare. | |
2301 | * valprint.c (wchar_printable, append_string_as_wide) | |
2302 | (print_wchar): Move from c-lang.c. | |
2303 | (generic_emit_char): New function; mostly taken from c_emit_char. | |
2304 | (generic_printstr): New function; mostly taken from c_printstr. | |
2305 | * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings | |
2306 | represented as arrays. | |
2307 | <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character | |
2308 | type. | |
2309 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat | |
2310 | identically to TYPE_CODE_INT. | |
2311 | * f-lang.c (f_get_encoding): New function. | |
2312 | (f_emit_char): Use generic_emit_char. | |
2313 | (f_printchar): Replace comment. | |
2314 | (f_printstr): Use generic_printstr. | |
2315 | * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran | |
2316 | "character" types specially. | |
2317 | <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR | |
2318 | for Fortran. | |
2319 | * c-lang.c (wchar_printable, append_string_as_wide, print_wchar): | |
2320 | Move to valprint.c | |
2321 | (c_emit_char): Call generic_emit_char. | |
2322 | (c_printstr): Call generic_printstr. | |
2323 | ||
168e6d44 GB |
2324 | 2011-06-29 Gary Benson <gbenson@redhat.com> |
2325 | ||
2326 | * breakpoint.c (bpstat_what): Removed duplicated case. | |
2327 | ||
1c033f8c TT |
2328 | 2011-06-28 Tom Tromey <tromey@redhat.com> |
2329 | ||
2330 | * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. | |
2331 | ||
5fe41fbf TT |
2332 | 2011-06-27 Tom Tromey <tromey@redhat.com> |
2333 | ||
2334 | * valops.c (find_overload_match): Call do_cleanups before early | |
2335 | return. | |
2336 | * top.c (execute_command): Call do_cleanups before early return. | |
2337 | (command_loop): Likewise. | |
2338 | * stack.c (backtrace_command): Make a null cleanup early. Don't | |
2339 | conditionally call do_cleanups. | |
2340 | * python/py-value.c (TRY_CATCH): Move cleanup handling into | |
2341 | TRY_CATCH. | |
2342 | * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange | |
2343 | so cleanups are always run. | |
2344 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups. | |
2345 | * findcmd.c (parse_find_args): Call do_cleanups on early return | |
2346 | path. | |
2347 | * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early. | |
2348 | Don't conditionally call do_cleanups. | |
2349 | * cli/cli-script.c (execute_user_command): Initialize 'old_chain' | |
2350 | later. | |
2351 | ||
e26bd57d EB |
2352 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
2353 | ||
2354 | * MAINTAINERS (Write After Approval): Use default email address. | |
2355 | ||
6c3097fc JB |
2356 | 2011-06-27 Joel Brobecker <brobecker@adacore.com> |
2357 | ||
2358 | * MAINTAINERS (Write After Approval): Add Eric Botcazou. | |
2359 | ||
369c397b JB |
2360 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
2361 | ||
2362 | * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset, | |
2363 | saved_regs_mask and copied_regs_mask fields. | |
2364 | (sparc_record_save_insn): New prototype. | |
2365 | * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields. | |
2366 | (sparc_record_save_insn): New function. | |
2367 | (sparc_analyze_prologue): Add head comment. Recognize store insns | |
2368 | of call-saved registers. Use OFFSET consistently. Recognize flat | |
2369 | frames and cache their settings. | |
2370 | (sparc32_skip_prologue): Handle flat frames. | |
2371 | (sparc_frame_cache): Add frame_offset to the base address. | |
2372 | (sparc32_frame_cache): Adjust to new frame description. | |
2373 | (sparc32_frame_prev_register): Likewise. | |
2374 | * sparc64-tdep.c (sparc64_frame_prev_register): Likewise. | |
2375 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
2376 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
2377 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the | |
2378 | frame by calling sparc_record_save_insn. | |
2379 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise. | |
2380 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise. | |
2381 | * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise. | |
2382 | ||
b315ab21 TG |
2383 | 2011-06-27 Tristan Gingold <gingold@adacore.com> |
2384 | ||
2385 | * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped | |
2386 | field by map_addr and map_len. | |
2387 | (dwarf2_read_section): Adjust for the new bfd_mmap api. | |
2388 | (munmap_section_buffer): Likewise. | |
2389 | ||
ddd49eee TT |
2390 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
2391 | ||
2392 | * varobj.c (update_dynamic_varobj_children): Make 'name' const. | |
2393 | * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. | |
2394 | * python/python.c (gdbpy_parameter): Make 'arg' const. | |
2395 | (execute_gdb_command): Likewise. | |
2396 | (gdbpy_decode_line): Likewise. Copy it. | |
2397 | (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it. | |
2398 | (gdbpy_write): Make 'arg' const. | |
2399 | * python/py-type.c (typy_lookup_typename): Make 'type_name' | |
2400 | const. | |
2401 | (gdbpy_lookup_type): Likewise. | |
2402 | * python/py-prettyprint.c (print_children): Make 'name' const. | |
2403 | * python/py-param.c (parmpy_init): Make 'name' const. Copy it. | |
2404 | * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a | |
2405 | Py_ssize_t. | |
2406 | * python/py-function.c (fnpy_init): Make 'name' const. | |
2407 | * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it. | |
2408 | (gdbpy_string_to_argv): Make 'input' const. | |
2409 | * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy | |
2410 | it. | |
2411 | * gdbtypes.h (lookup_typename): Update. | |
2412 | * gdbtypes.c (lookup_typename): Make 'name' const. | |
2413 | (lookup_struct): Likewise. | |
2414 | (lookup_union): Likewise. | |
2415 | (lookup_enum): Likewise. | |
2416 | ||
5998129b TT |
2417 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
2418 | ||
2419 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to | |
2420 | gdb_thread_db.h. Move all common/ entries to be together. | |
2421 | (TAGS): Don't depend on DEPFILES. | |
2422 | ||
6e586cc5 YQ |
2423 | 2011-06-23 Yao Qi <yao@codesourcery.com> |
2424 | ||
2425 | * infrun.c (start_remote): Move call init_wait_for_inferior to ... | |
2426 | * remote.c (remote_start_remote): ... here. | |
2427 | * monitor.c (monitor_open): ... here. | |
2428 | ||
86c3c1fc AB |
2429 | 2011-06-23 Andrew Burgess <aburgess@broadcom.com> |
2430 | ||
2431 | * gdbtypes.c (append_composite_type_field_aligned): Fix | |
2432 | calculation of bit position based on alignment. | |
2433 | ||
28010a5d PA |
2434 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2435 | ||
2436 | * breakpoint.c (bpstat_stop_status): Call the check_status | |
2437 | breakpoint_ops method. | |
2438 | (print_one_breakpoint_location): Also print the condition for Ada | |
2439 | exception catchpoints. | |
2440 | (allocate_bp_location): New, factored out from | |
2441 | allocate_bp_location. | |
2442 | (allocate_bp_location): Adjust. Call the owner breakpoint's | |
2443 | allocate_location method, if there is one. | |
2444 | (free_bp_location): Call the locations's dtor method, if there is | |
2445 | one. | |
2446 | (init_raw_breakpoint_without_location): New breakpoint_ops | |
2447 | parameter. Use it. | |
2448 | (set_raw_breakpoint_without_location): Adjust. | |
2449 | (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down. | |
2450 | (set_raw_breakpoint): Adjust. | |
2451 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
2452 | (catch_syscall_breakpoint_ops): Install NULL allocate_location, | |
2453 | re_set and check_status methods. | |
2454 | (init_catchpoint): Don't memset, initialize thread, addr_string | |
2455 | and enable_state. Pass the ops down to init_raw_breakpoint. | |
2456 | (install_catchpoint): Rename to ... | |
2457 | (install_breakpoint): ... this, and make extern. | |
2458 | (create_fork_vfork_event_catchpoint): Adjust. | |
2459 | (catch_exec_breakpoint_ops): Install NULL allocate_location, | |
2460 | re_set and check_status methods. | |
2461 | (create_syscall_event_catchpoint): Adjust. | |
2462 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
2463 | (masked_watchpoint_breakpoint_ops): Install NULL | |
2464 | allocate_location, re_set and check_status methods. | |
2465 | (catch_exec_command_1): Adjust. | |
2466 | (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location, | |
2467 | re_set and check_status methods. | |
2468 | (create_ada_exception_breakpoint): Rename to ... | |
2469 | (init_ada_exception_breakpoint): ... this. Add a struct | |
2470 | breakpoint parameter, and delete the exp_string, cond_string and | |
2471 | cond parameters. Use init_raw_breakpoint, and don't install or | |
2472 | mention the breakpoint yet. Don't clear breakpoint fields that | |
2473 | init_raw_breakpoint already clears. | |
2474 | (re_set_breakpoint): Delete, split into ... | |
2475 | (breakpoint_re_set_default, prepare_re_set_context): ... these new | |
2476 | functions. | |
2477 | (breakpoint_re_set_one): Call the breakpoint's | |
2478 | breakpoint_ops->re_set implementation, if there's one. Adjust. | |
2479 | * breakpoint.h: Forward declare struct bpstats and struct bp_location. | |
2480 | (struct bp_location_ops): New type. | |
2481 | (struct bp_location): New field `ops'. | |
2482 | (struct breakpoint_ops): New `allocate_location', `re_set' and | |
2483 | `check_status' fields. Make `breakpoint_hit''s description match | |
2484 | reality. | |
2485 | (init_bp_location): Declare. | |
2486 | (breakpoint_re_set_default): Declare. | |
2487 | (create_ada_exception_breakpoint): Rename to ... | |
2488 | (init_ada_exception_breakpoint): ... this. Add a struct | |
2489 | breakpoint parameter, and delete the exp_string, cond_string and | |
2490 | cond parameters. | |
2491 | (install_breakpoint): Declare. | |
2492 | * ada-lang.c: Include exceptions.h. | |
2493 | <Ada exceptions description>: Update. | |
2494 | (struct ada_catchpoint_location): New type. | |
2495 | (ada_catchpoint_location_dtor): New function. | |
2496 | (ada_catchpoint_location_ops): New global. | |
2497 | (ada_catchpoint): New type. | |
2498 | (create_excep_cond_exprs): New function. | |
2499 | (dtor_exception, allocate_location_exception, re_set_exception) | |
2500 | (should_stop_exception, check_status_exception): New functions. | |
2501 | (print_one_exception, print_mention_exception) | |
2502 | (print_recreate_exception): Adjust. | |
2503 | (dtor_catch_exception, allocate_location_catch_exception) | |
2504 | (re_set_catch_exception, check_status_catch_exception): New | |
2505 | functions. | |
2506 | (catch_exception_breakpoint_ops): Install them. | |
2507 | (dtor_catch_exception_unhandled) | |
2508 | (allocate_location_catch_exception_unhandled) | |
2509 | (re_set_catch_exception_unhandled) | |
2510 | (check_status_catch_exception_unhandled): New functions. | |
2511 | (catch_exception_unhandled_breakpoint_ops): Install them. | |
2512 | (dtor_catch_assert, allocate_location_catch_assert) | |
2513 | (re_set_catch_assert, check_status_catch_assert): New functions. | |
2514 | (catch_assert_breakpoint_ops): Install them. | |
2515 | (ada_exception_catchpoint_p): Delete. | |
2516 | (catch_ada_exception_command_split) | |
2517 | (ada_exception_catchpoint_cond_string): Rename exp_string | |
2518 | parameter to excep_string. Adjust. | |
2519 | (ada_parse_catchpoint_condition): Delete. | |
2520 | (ada_exception_sal): Rename the exp_string parameter to | |
2521 | excep_string. Delete the cond_string and cond parameters. | |
2522 | Adjust. | |
2523 | (ada_decode_exception_location): Rename the exp_string parameter | |
2524 | to excep_string. Delete the cond_string and cond parameters. | |
2525 | Adjust. | |
2526 | (create_ada_exception_catchpoint): New function. | |
2527 | (catch_ada_exception_command, ada_decode_assert_location) | |
2528 | (catch_assert_command): Adjust. | |
2529 | * ada-lang.h (ada_exception_catchpoint_p): Delete declaration. | |
2530 | ||
9ac4176b PA |
2531 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2532 | ||
2533 | * ada-lang.c: Include arch-utils.h. | |
2534 | (ada_decode_exception_location): Make static. | |
2535 | (catch_ada_exception_command): Moved here from breakpoint.c. | |
2536 | (ada_decode_assert_location): Make static. | |
2537 | (catch_assert_command): Moved here from breakpoint.c. | |
2538 | (_initialize_ada_lang): Install the exception and assert | |
2539 | catchpoint commands here. | |
2540 | * ada-lang.h (ada_decode_exception_location) | |
2541 | (ada_decode_assert_location): Delete declarations. | |
2542 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to | |
2543 | breakpoint.h. | |
2544 | (create_ada_exception_breakpoint): Make extern. | |
2545 | (catch_ada_exception_command, catch_assert_command): Moved to | |
2546 | ada-lang.c. | |
2547 | (add_catch_command): Make extern. | |
2548 | (_initilize_breakpoint): Don't install the exception and assert | |
2549 | catchpoint commands here. | |
2550 | * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from | |
2551 | breakpoint.c | |
2552 | (add_catch_command, create_ada_exception_breakpoint): Declare. | |
2553 | ||
c56053d2 PA |
2554 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2555 | ||
2556 | * breakpoint.c (init_raw_breakpoint_without_location): Don't add | |
2557 | the breakpoint to the breakpoint chain here. | |
2558 | (set_raw_breakpoint_without_location): Add the breakpoint to the | |
2559 | breakpoint chain here. | |
2560 | (init_raw_breakpoint): Adjust comments. | |
2561 | (set_raw_breakpoint): Add the breakpoint to the breakpoint chain | |
2562 | here. | |
2563 | (init_catchpoint): Don't set the catchpoint's breakpoint number | |
2564 | here. | |
2565 | (install_catchpoint): New function. | |
2566 | (create_fork_vfork_event_catchpoint) | |
2567 | (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to | |
2568 | use install_catchpoint. | |
2569 | ||
d2f3fc74 PA |
2570 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2571 | ||
2572 | * breakpoint.c (create_catchpoint_without_mention) | |
2573 | (create_catchpoint): Delete. | |
2574 | ||
b4d90040 PA |
2575 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2576 | ||
2577 | * breakpoint.h (struct breakpoint): Delete field `exec_pathname'. | |
2578 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
2579 | reference to exec_pathname. | |
2580 | (struct exec_catchpoint): New type. | |
2581 | (dtor_catch_exec): New function. | |
2582 | (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust. | |
2583 | (catch_exec_breakpoint_ops): Install dtor_catch_syscall. | |
2584 | (catch_exec_command_1): Adjust to use init_catchpoint. | |
2585 | (delete_breakpoint): Remove reference to exec_pathname. | |
2586 | ||
be5c67c1 PA |
2587 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2588 | ||
2589 | * breakpoint.h (struct breakpoint_ops): New field `dtor'. | |
2590 | (struct breakpoint): Delete field `syscalls_to_be_caught'. | |
2591 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
2592 | reference to syscalls_to_be_caught. | |
2593 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a | |
2594 | NULL `dtor'. | |
2595 | (struct syscall_catchpoint): New type. | |
2596 | (dtor_catch_syscall): New function. | |
2597 | (insert_catch_syscall, remove_catch_syscall) | |
2598 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
2599 | (print_recreate_catch_syscall): Adjust. | |
2600 | (catch_syscall_breakpoint_ops): Install dtor_catch_syscall. | |
2601 | (catch_exec_breakpoint_ops): Install a NULL `dtor'. | |
2602 | (create_syscall_event_catchpoint): Adjust to use init_catchpoint. | |
2603 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
2604 | (masked_watchpoint_breakpoint_ops) | |
2605 | (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'. | |
2606 | (delete_breakpoint): Call the `dtor' breakpoint_ops method, if | |
2607 | there is one. Remove references to syscalls_to_be_caught. | |
2608 | (catching_syscall_number): Adjust. | |
2609 | * ada-lang.c (catch_exception_breakpoint_ops) | |
2610 | (catch_exception_unhandled_breakpoint_ops) | |
2611 | (catch_assert_breakpoint_ops): Install a NULL `dtor'. | |
2612 | ||
e29a4733 PA |
2613 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2614 | ||
2615 | * breakpoint.h (struct breakpoint): Delete forked_inferior_pid | |
2616 | field. | |
2617 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
2618 | reference to forked_inferior_pid. | |
2619 | (struct fork_catchpoint): New type. | |
2620 | (breakpoint_hit_catch_fork, print_it_catch_fork) | |
2621 | (print_one_catch_fork, breakpoint_hit_catch_vfork) | |
2622 | (print_it_catch_vfork, print_one_catch_vfork): Adjust. | |
2623 | (create_fork_vfork_event_catchpoint): Adjust to use | |
2624 | init_catchpoint. | |
2625 | ||
346774a9 PA |
2626 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
2627 | ||
2628 | * breakpoint.c (add_to_breakpoint_chain) | |
2629 | (init_raw_breakpoint_without_location): New functions, factored | |
2630 | out from ... | |
2631 | (set_raw_breakpoint_without_location): ... this one. | |
2632 | (init_raw_breakpoint): New function, factored out from | |
2633 | set_raw_breakpoint and adjusted to use | |
2634 | init_raw_breakpoint_without_location. | |
2635 | (set_raw_breakpoint): Adjust. | |
2636 | (init_catchpoint): New function, factored out from | |
2637 | create_catchpoint_without_mention and adjusted to use | |
2638 | init_raw_breakpoint. | |
2639 | (create_catchpoint_without_mention): Adjust. | |
2640 | ||
c38c4bc5 TT |
2641 | 2011-06-22 Tom Tromey <tromey@redhat.com> |
2642 | ||
2643 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type | |
2644 | argument of 0 specially. | |
2645 | ||
b138ce37 YQ |
2646 | 2011-06-22 Yao Qi <yao@codesourcery.com> |
2647 | ||
2648 | * infrun.c (handle_inferior_event): Remove write-only local variable | |
2649 | `sw_single_step_trap_p'. | |
2650 | ||
03de6823 TT |
2651 | 2011-06-20 Tom Tromey <tromey@redhat.com> |
2652 | ||
2653 | * symtab.c (lookup_language_this): End loop if block is NULL. | |
2654 | ||
66a17cb6 TT |
2655 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
2656 | ||
2657 | * valops.c (value_of_this): Use lookup_language_this. | |
2658 | * symtab.h (lookup_language_this): Declare. | |
2659 | * symtab.c (lookup_language_this): New function. | |
2660 | (lookup_symbol_aux): Use lookup_language_this. | |
2661 | * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this. | |
2662 | ||
7518bff5 TT |
2663 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
2664 | ||
2665 | * value.h (value_of_this): Update. | |
2666 | (value_of_local): Remove. | |
2667 | * valops.c (value_of_this): Rename from value_of_local. Change | |
2668 | parameters. | |
2669 | * p-exp.y (exp): Update. | |
2670 | (variable): Likewise. | |
2671 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this. | |
2672 | ||
aee28ec6 TT |
2673 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
2674 | ||
2675 | * valops.c (value_of_local): Complain if NAME is NULL. | |
2676 | * std-operator.def (OP_OBJC_SELF): Remove. | |
2677 | * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove. | |
2678 | * objc-exp.y (name_not_typename): Use OP_THIS. | |
2679 | * expprint.c (print_subexp_standard) <OP_THIS>: Print language's | |
2680 | name for "this". | |
2681 | <OP_OBJC_SELF>: Remove. | |
2682 | * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove. | |
2683 | ||
eed8f803 TG |
2684 | 2011-06-16 Tristan Gingold <gingold@adacore.com> |
2685 | ||
2686 | * python/py-events.h (gdb_py_events): Make it extern. | |
2687 | * python/py-evtregistry.c (gdb_py_events): Declare. | |
2688 | ||
864ac8a7 HZ |
2689 | 2011-06-16 Hui Zhu <teawater@gmail.com> |
2690 | ||
2691 | * remote.c (remote_trace_set_readonly_regions): Add check for | |
2692 | remote_protocol_packets[PACKET_qXfer_traceframe_info].support before | |
2693 | output warning. | |
2694 | ||
ef7e8358 UW |
2695 | 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org> |
2696 | ||
2697 | * arm-linux-tdep.c: Include "auxv.h". | |
2698 | (AT_HWCAP): Define. | |
2699 | (ARM_LINUX_SIZEOF_VFP): Define. | |
2700 | (arm_linux_supply_vfp): New function. | |
2701 | (arm_linux_collect_vfp): Likewise. | |
2702 | (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections. | |
2703 | (arm_linux_fpa_regset_sections): New variable. | |
2704 | (arm_linux_vfp_regset_sections): Likewise. | |
2705 | (arm_linux_core_read_description): New function. | |
2706 | (arm_linux_init_abi): Install arm_linux_core_read_description and | |
2707 | arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as | |
2708 | appropriate for the architecture. | |
2709 | * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset". | |
2710 | (tdesc_arm_with_m): Declare. | |
2711 | (tdesc_arm_with_iwmmxt): Likewise. | |
2712 | (tdesc_arm_with_vfpv2): Likewise. | |
2713 | (tdesc_arm_with_vfpv3): Likewise. | |
2714 | (tdesc_arm_with_neon): Likewise. | |
2715 | * arm-linux-nat.c: Move features/*.c includes ... | |
2716 | * arm-tdep.c: ... here. | |
2717 | * arm-linux-nat.c (arm_linux_read_description): Move initializing | |
2718 | target description data structures ... | |
2719 | * arm-tdep.c (_initialize_arm_tdep): ... here. | |
2720 | * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3, | |
2721 | HWCAP_VFPv3D16): Move definitions ... | |
2722 | * arm-linux-tdep.h: ... here. | |
2723 | ||
c2fa21f1 HZ |
2724 | 2011-06-15 Hui Zhu <teawater@gmail.com> |
2725 | ||
2726 | * remote.c (remote_trace_set_readonly_regions): Add a check for | |
2727 | target_buf_size. | |
2728 | ||
dd707e8e TT |
2729 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
2730 | ||
2731 | * coffread.c (coffread_objfile): Rename from current_objfile. | |
2732 | * dbxread.c (dbxread_objfile): Rename from current_objfile. | |
2733 | * mdebugread.c (mdebugread_objfile): Rename from current_objfile. | |
2734 | ||
86cc0029 TT |
2735 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
2736 | ||
2737 | * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile) | |
2738 | (class_symtab): Remove. | |
2739 | (jv_dynamics_progspace_key): New global. | |
2740 | (jv_per_objfile_free): Reset program space data. Update assert. | |
2741 | Don't clear globals. | |
2742 | (get_dynamics_objfile): Use and set program space data. | |
2743 | (get_java_class_symtab): Use get_dynamics_objfile. | |
2744 | (add_class_symbol): Likewise. | |
2745 | (java_link_class_type): Likewise. | |
2746 | (java_object_type, jv_clear_object_type, set_java_object_type): | |
2747 | Remove. | |
2748 | (get_java_object_type): Update. Don't cache result. | |
2749 | (is_object_type): Don't call set_java_object_type. | |
2750 | (_initialize_java_language): Don't set jv_type_objfile_data_key; | |
2751 | initialize jv_dynamics_progspace_key. | |
2752 | ||
91a81f69 TT |
2753 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
2754 | ||
2755 | * symtab.h (current_objfile): Don't declare. | |
2756 | * objfiles.h (current_objfile): Don't declare. | |
2757 | * objfiles.c (current_objfile): Remove. | |
2758 | * mdebugread.c (current_objfile): New file-scope global. | |
2759 | * dbxread.c (current_objfile): New file-scope global. | |
2760 | * coffread.c (current_objfile): New file-scope global. | |
2761 | ||
dc7eb48e PA |
2762 | 2011-06-13 Pedro Alves <pedro@codesourcery.com> |
2763 | ||
2764 | * top.h (line): Rename to ... | |
2765 | (saved_command_line): ... this. | |
2766 | (linesize): Rename to ... | |
2767 | (saved_command_line_size): ... this. | |
2768 | * top.c (line): Rename to ... | |
2769 | (saved_command_line): ... this. | |
2770 | (linesize): Rename to ... | |
2771 | (saved_command_line_size): ... this. | |
2772 | (dont_repeat, command_line_input, dont_repeat_command): Adjust. | |
2773 | * event-top.c (command_line_handler): Adjust. | |
2774 | * main.c (captured_main): Adjust. | |
2775 | ||
0d6c2135 MK |
2776 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
2777 | ||
2778 | * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call | |
2779 | get_frame_func instead of get_frame_pc to determine the code | |
2780 | address used to construct the frame ID. | |
2781 | (i386_epilogue_frame_unwind_stop_reason): Fix coding style. | |
2782 | (i386_epilogue_frame_this_id): Likewise. | |
2783 | (i386_epilogue_frame_prev_register): New function. | |
2784 | (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register. | |
2785 | (i386_stack_tramp_frame_sniffer): Fix coding style. | |
2786 | (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register. | |
2787 | (i386_gdbarch_init): Fix comments. | |
2788 | ||
8bbdd3f4 MK |
2789 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
2790 | ||
2791 | * i386-tdep.c (i386_match_insn_block): Use length of the proper | |
2792 | instruction when walking back through the instruction stream. | |
2793 | ||
533a737e JK |
2794 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
2795 | ||
2796 | * symtab.c (output_partial_symbol_filename): Exchange the filename and | |
2797 | fullname parameters order. | |
2798 | ||
44b13c5a JK |
2799 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
2800 | ||
2801 | Code cleanup. | |
2802 | * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype | |
2803 | for fun. | |
2804 | * psymtab.c (map_symbol_filenames_psymtab) | |
2805 | (map_partial_symbol_filenames): Likewise. | |
2806 | * psymtab.h: Include symfile.h. | |
2807 | (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. | |
2808 | * symfile.h (symbol_filename_ftype): New. | |
2809 | (struct quick_symbol_functions): Use symbol_filename_ftype for fun of | |
2810 | map_symbol_filenames, clarify more the naming in comment. | |
2811 | ||
0b5574da DE |
2812 | 2011-06-07 Doug Evans <dje@google.com> |
2813 | ||
2814 | * cc-with-index.sh: Fix typos in comment. | |
b8e9bd6c | 2815 | Look for ../../gdb, for fullname.exp. |
0b5574da | 2816 | |
5be4dfca JK |
2817 | 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2818 | Pedro Alves <pedro@codesourcery.com> | |
2819 | ||
2820 | * cli/cli-cmds.c (shell_escape): Use waitpid. | |
2821 | * rs6000-nat.c (exec_one_dummy_insn): Likewise. | |
2822 | ||
316a8b21 TG |
2823 | 2011-06-07 Tristan Gingold <gingold@adacore.com> |
2824 | ||
2825 | * xcoffread.c (dwarf2_xcoff_names): New variable. | |
2826 | (aix_process_linenos): Add a guard. | |
2827 | (xcoff_symfile_finish): Free dwarf2. | |
2828 | (xcoff_initial_scan): Add dwarf2 support. | |
2829 | ||
3dd5b83d PA |
2830 | 2011-06-06 Pedro Alves <pedro@codesourcery.com> |
2831 | ||
2832 | * infcall.c (run_inferior_call): Don't mask async. Instead force | |
2833 | a synchronous wait, if the target can async. | |
2834 | ||
2835 | * target.h (struct target_ops): Delete to_async_mask. | |
2836 | (target_async_mask): Delete. | |
2837 | * target.c (update_current_target): Delete references to to_async_mask. | |
2838 | * linux-nat.c (linux_nat_async_mask_value): Delete. | |
2839 | (linux_nat_is_async_p, linux_nat_can_async_p): Remove references | |
2840 | to linux_nat_async_mask_value. | |
2841 | (linux_nat_async_mask): Delete. | |
2842 | (linux_nat_async, linux_nat_close): Remove references to | |
2843 | linux_nat_async_mask_value. | |
2844 | * record.c (record_async_mask_value): Delete. | |
2845 | (record_async): Remove references to record_async_mask_value. | |
2846 | (record_async_mask): Delete. | |
2847 | (record_can_async_p, record_is_async_p): Remove references to | |
2848 | record_async_mask_value. | |
2849 | (init_record_ops, init_record_core_ops): Remove references to | |
2850 | record_async_mask. | |
2851 | * remote.c (remote_async_mask_value): Delete. | |
2852 | (init_remote_ops): Remove reference to remote_async_mask. | |
2853 | (remote_can_async_p, remote_is_async_p): Remove references to | |
2854 | remote_async_mask_value. | |
2855 | (remote_async): Remove references to remote_async_mask_value. | |
2856 | (remote_async_mask): Delete. | |
2857 | ||
2858 | * infrun.c (fetch_inferior_event): Don't claim registers changed | |
2859 | if the current thread is already not executing. | |
2860 | ||
64b9b334 JB |
2861 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix) |
2862 | ||
2863 | From Stephen Kitt <steve@sk2.org> | |
2864 | * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c, | |
2865 | gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes. | |
2866 | ||
325663dc JB |
2867 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> |
2868 | ||
2869 | * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle | |
2870 | the case where ADDR_SIZE is different from TYPE_LENGTH (type). | |
2871 | ||
8cf64490 TT |
2872 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
2873 | ||
2874 | * python/py-inferior.c (python_inferior_exit): Use inferior's exit | |
2875 | code fields. | |
2876 | * python/py-exitedevent.c (create_exited_event_object): Change | |
2877 | type of 'exit_code'. Optionally add exit_code attribute. | |
2878 | (emit_exited_event): Change type of 'exit_code'. | |
2879 | * python/py-event.h (emit_exited_event): Update. | |
2880 | * mi/mi-interp.c (mi_inferior_exit): Print exit code. | |
2881 | * infrun.c (handle_inferior_event): Set exit code fields on | |
2882 | inferior. | |
2883 | * inferior.h (struct inferior) <has_exit_code, exit_code>: New | |
2884 | fields. | |
2885 | * inferior.c (exit_inferior_1): Initialize new fields. | |
2886 | ||
8ddd9a20 TT |
2887 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
2888 | ||
2889 | * dwarf2expr.c (get_signed_type): New function. | |
2890 | (execute_stack_op) <DW_OP_shra>: Always perform a signed shift. | |
2891 | ||
8dfd1e6d KS |
2892 | 2011-06-02 Keith Seitz <keiths@redhat.com> |
2893 | ||
2894 | * objc-lang.c (find_methods): Increment objfile_csym earlier. | |
2895 | ||
65fdb766 PA |
2896 | 2011-06-02 Pedro Alves <pedro@codesourcery.com> |
2897 | ||
2898 | * top.h (simplified_command_loop): Delete declaration. | |
2899 | ||
f4b8c29b MF |
2900 | 2011-06-01 Mike Frysinger <vapier@gentoo.org> |
2901 | ||
2902 | * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and | |
2903 | gdb_sysroot to the "len" variable. Append both to "arg_buf". | |
2904 | ||
1706c199 YQ |
2905 | 2011-06-01 Yao Qi <yao@codesourcery.com> |
2906 | ||
2907 | * objfiles.h (obj_section_addr): Update reference to objfile from | |
2908 | `abfd' to `obfd'. | |
2909 | (obj_section_endaddr): Likewise. | |
2910 | ||
d19cd713 | 2911 | 2011-06-01 Daniel Jacobowitz <drow@false.org> |
8d07004d DJ |
2912 | |
2913 | * MAINTAINERS: Update my email address and affiliation. Also | |
2914 | update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org. | |
2915 | ||
e8eb7bc5 KS |
2916 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
2917 | ||
2918 | PR c++/12750 | |
2919 | * linespec.c (get_search_block): New function. | |
2920 | (find_methods): Add FILE_SYMTATB parameter and use it and | |
2921 | get_search_block to pass an appropriate block to | |
2922 | lookup_symbol_in_namespace. | |
2923 | (decode_line_1): Record if *ARGPTR is single-quote enclosed. | |
2924 | Check if *ARGPTR starts with a filename first. | |
2925 | If it does, call locate_first_half again to locate the next | |
2926 | "first half" of the linespec. | |
2927 | Pass FILE_SYMTATB to decode_objc and decode_compound. | |
2928 | Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED. | |
2929 | (locate_first_half): Stop on the first colon seen. | |
2930 | (decode_compound): Add FILE_SYMTAB parameter. | |
2931 | Pass FILE_SYMTAB to lookup_prefix_sym and find_method. | |
2932 | (lookup_prefix_sym): Add FILE_SYMTAB parameter and use | |
2933 | get_search_block with lookup_symbol. | |
2934 | (find_method): Add FILE_SYMTAB parameter and pass it to | |
2935 | find_methods. | |
2936 | (decode_objc): Use get_search_block. | |
2937 | ||
2b1dbab0 KS |
2938 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
2939 | ||
2940 | PR symtab/12704 | |
2941 | * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. | |
2942 | (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR | |
2943 | and CP_ANONYMOUS_NAMESPACE_LEN. | |
2944 | (cp_is_anonymous): Likewise. | |
2945 | * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. | |
2946 | (CP_ANONYMOUS_NAMESPACE_LEN): Define. | |
2947 | * dwarf2read.c (namespace_name): Likewise. | |
2948 | (fixup_partial_die): Likewise. | |
2949 | * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is | |
2950 | seen in the input, keep it. | |
2951 | ||
6d549500 PA |
2952 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
2953 | ||
2954 | * target.h (enum inferior_event_type): Delete INF_QUIT_REQ. | |
2955 | * inf-loop.h (inferior_event_handler_wrapper): Delete. | |
2956 | * inf-loop.c (inferior_event_handler_wrapper): Delete. | |
2957 | (inferior_event_handler): Don't handle INF_QUIT_REQ. | |
2958 | * remote.c (_initialize_remote): Register | |
2959 | async_remote_interrupt_twice directly as | |
2960 | sigint_remote_twice_token event. | |
2961 | ||
395bff70 PA |
2962 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
2963 | ||
2964 | * target.h (enum inferior_event_type): Delete INF_ERROR. | |
2965 | * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR. | |
2966 | ||
97224164 PA |
2967 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
2968 | ||
2969 | * interps.c (interp_set): Don't cancel continuations. | |
2970 | ||
07e78767 JK |
2971 | 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
2972 | ||
2973 | * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf. | |
2974 | ||
fa4cd53f PA |
2975 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
2976 | ||
2977 | * continuations.h (continuation_ftype): Add `err' parameter. | |
2978 | Document parameters. | |
2979 | (do_all_continuations, do_all_continuations_thread) | |
2980 | (do_all_intermediate_continuations) | |
2981 | (do_all_intermediate_continuations_thread) | |
2982 | (do_all_inferior_continuations): Add `err' parameter. | |
2983 | * continuations.c (do_my_continuations_1, do_my_continuations) | |
2984 | (do_all_inferior_continuations, do_all_continuations_ptid) | |
2985 | (do_all_continuations_thread_callback) | |
2986 | (do_all_continuations_thread, do_all_continuations) | |
2987 | (do_all_intermediate_continuations_thread_callback) | |
2988 | (do_all_intermediate_continuations_thread) | |
2989 | (do_all_intermediate_continuations): Add `err' parameter, and pass | |
2990 | it down all the way to the continuations proper. | |
2991 | * inf-loop.c (inferior_event_handler): If fetching an inferior | |
2992 | event throws an error, don't pop the target, and still call the | |
2993 | continuations, but with `err' set. Adjust all other continuation | |
2994 | calls. | |
2995 | * breakpoint.c (until_break_command_continuation): Add `err' | |
2996 | parameter. | |
2997 | * infcmd.c (step_1_continuation): Add `err' parameter. Don't | |
2998 | issue another step if `err' is set. | |
2999 | (struct until_next_continuation_args): New. | |
3000 | (until_next_continuation): Add `err' parameter. Adjust. | |
3001 | (until_next_command): Adjust. | |
3002 | (struct finish_command_continuation_args): Add `thread' field. | |
3003 | (finish_command_continuation): Add `err' parameter. Handle it. | |
3004 | (finish_forward): Adjust. | |
3005 | (attach_command_continuation): Add `err' parameter. Handle it. | |
3006 | * infrun.c (infrun_thread_stop_requested_callback): Adjust to | |
3007 | cancel the continuations. | |
3008 | * interps.c (interp_set): Adjust to cancel the continuations. | |
3009 | * thread.c (clear_thread_inferior_resources): Adjust to cancel the | |
3010 | continuations rather than discarding. | |
3011 | (free_thread): Don't clear thread inferior resources here. | |
3012 | (delete_thread_1): Do it here instead. And do it before removing | |
3013 | the thread from the threads list. Tag the thread as exited before | |
3014 | clearing thread inferior resources. | |
3015 | ||
c2949be0 JB |
3016 | 2011-05-30 Joel Brobecker <brobecker@adacore.com> |
3017 | ||
3018 | * infcall.c (call_function_by_hand): Rephrase error message. | |
3019 | ||
619cebe8 PA |
3020 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
3021 | ||
3022 | * defs.h (struct thread_info, struct inferior): Delete forward | |
3023 | declarations. | |
3024 | * breakpoint.h (struct thread_info): New forward declaration. | |
3025 | * observer.sh (struct inferior): New forward declaration. | |
3026 | * python/python-internal.h (struct inferior): New forward | |
3027 | declaration. | |
3028 | ||
be34f849 PA |
3029 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
3030 | ||
3031 | * defs.h (struct continuation, continuation_ftype) | |
3032 | (continuation_free_arg_ftype, add_continuation) | |
3033 | (do_all_continuations, do_all_continuations_thread) | |
3034 | (discard_all_continuations, discard_all_continuations_thread) | |
3035 | (add_intermediate_continuation, do_all_intermediate_continuations) | |
3036 | (do_all_intermediate_continuations_thread) | |
3037 | (discard_all_intermediate_continuations) | |
3038 | (discard_all_intermediate_continuations_thread) | |
3039 | (add_inferior_continuation, do_all_inferior_continuations) | |
3040 | (discard_all_inferior_continuations): Move to ... | |
3041 | * continuations.h: ... this new file. | |
3042 | * breakpoint.c, continuations.c, event-top.c, inf-loop.c, | |
3043 | infcmd.c, inferior.c, infrun.c, interps.c: Include | |
3044 | continuations.h. | |
3045 | ||
432b4d03 JK |
3046 | 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3047 | Doug Evans <dje@google.com> | |
3048 | ||
3049 | Fix PR 10970, PR 12702. | |
3050 | * linux-nat.c (linux_lwp_is_zombie): New function. | |
3051 | (wait_lwp): Initialize status. New variable prev_mask. Block signals. | |
3052 | Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend. | |
3053 | ||
b0f260d6 PA |
3054 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
3055 | ||
3056 | * defs.h (continuation_ftype, continuation_free_arg_ftype): New | |
3057 | typedefs. | |
3058 | (add_continuation, add_intermediate_continuation) | |
3059 | (add_inferior_continuation): Use them. | |
3060 | * continuations.c (struct continuation): Use them. | |
3061 | (make_continuation_ftype): Delete. | |
3062 | (make_continuation, add_inferior_continuation, add_continuation) | |
3063 | (add_intermediate_continuation): Use continuation_ftype and | |
3064 | continuation_free_arg_ftype. Rename parameters to shorter names. | |
3065 | ||
af1e9a32 PA |
3066 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
3067 | ||
3068 | * continuations.c (make_continuation): Make it return void. | |
3069 | (do_my_continuations): Rename to ... | |
3070 | (do_my_continuations_1): ... this. Remove old_chain parameter and | |
3071 | adjust. | |
3072 | (do_my_continuations): New. | |
3073 | (discard_my_continuations): Rename to ... | |
3074 | (discard_my_continuations_1): ... this. Remove old_chain | |
3075 | parameter and adjust. | |
3076 | (discard_my_continuations): New. | |
3077 | (add_inferior_continuation): Simplify. | |
3078 | (do_all_inferior_continuations): Reimplement on top | |
3079 | do_my_continuations. | |
3080 | (discard_all_inferior_continuations): Simplify. | |
3081 | (add_continuation): Simplify. | |
3082 | (do_all_continuations_ptid): Simplify. | |
3083 | (discard_all_continuations_thread_callback): Simplify. | |
3084 | (add_intermediate_continuation): Simplify. | |
3085 | (discard_all_intermediate_continuations_thread_callback): | |
3086 | Simplify. | |
3087 | ||
50c0c017 PA |
3088 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
3089 | ||
3090 | * utils.c (struct continuation, add_continuation) | |
3091 | (add_inferior_continuation) | |
3092 | (do_all_inferior_continuations, discard_all_inferior_continuations) | |
3093 | (restore_thread_cleanup, do_all_continuations_ptid) | |
3094 | (do_all_continuations_thread_callback) | |
3095 | (do_all_continuations_thread, do_all_continuations) | |
3096 | (discard_all_continuations_thread_callback) | |
3097 | (discard_all_continuations_thread, discard_all_continuations) | |
3098 | (add_intermediate_continuation) | |
3099 | (do_all_intermediate_continuations_thread_callback) | |
3100 | (do_all_intermediate_continuations_thread) | |
3101 | (do_all_intermediate_continuations) | |
3102 | (discard_all_intermediate_continuations_thread_callback) | |
3103 | (discard_all_intermediate_continuations_thread) | |
3104 | (discard_all_intermediate_continuations): Move to ... | |
3105 | * continuations.c: ... this new file, and adjust to no longer | |
3106 | implement continuations on top of cleanups. | |
3107 | * Makefile.in (SFILES): Add continuations.c. | |
3108 | (COMMON_OBS): Add continuations.o. | |
3109 | ||
d8b34453 PA |
3110 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3111 | ||
3112 | * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR. | |
3113 | * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR. | |
3114 | Internal error on invalid values. | |
3115 | * reverse.c: Don't handle EXEC_ERROR. | |
3116 | * mi/mi-main.c: Don't handle EXEC_ERROR. | |
3117 | ||
32231432 PA |
3118 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3119 | ||
3120 | * record.c: Include event-loop.h, inf-loop.h. | |
3121 | (record_beneath_to_async): New global. | |
3122 | (tmp_to_async): New global. | |
3123 | (record_async_inferior_event_token): New global. | |
3124 | (record_open_1): Don't error out if async is enabled. | |
3125 | (record_open): Handle to_async. Create an async event source in | |
3126 | the event loop. | |
3127 | (record_close): Delete the async event source. | |
3128 | (record_resumed): New global. | |
3129 | (record_execution_dir): New global. | |
3130 | (record_resume, record_core_resume): Set them. Register the | |
3131 | target on the event loop. | |
3132 | (record_wait): Rename to ... | |
3133 | (record_wait_1): ... this. Add more debug output. Handle | |
3134 | TARGET_WNOHANG, and the target beneath returning | |
3135 | TARGET_WAITKIND_IGNORE. | |
3136 | (record_wait): Reimplement on top of record_wait_1. | |
3137 | (record_async_mask_value): New global. | |
3138 | (record_async, record_async_mask, record_can_async_p) | |
3139 | (record_is_async_p, record_execution_direction): New functions. | |
3140 | (init_record_ops, init_record_core_ops): Install new methods. | |
3141 | * infrun.c (fetch_inferior_event): Temporarily switch the global | |
3142 | execution direction to the direction the target was going. | |
3143 | (execution_direction): Change type to int. | |
3144 | * target.c (default_execution_direction): New function. | |
3145 | (update_current_target): Inherit and de_fault | |
3146 | to_execution_direction. | |
3147 | * target.h (struct target_ops) <to_execution_direction>: New | |
3148 | field. | |
3149 | (target_execution_direction): New macro. | |
3150 | * inferior.h (execution_direction): Change type to int. | |
3151 | ||
949dc678 PA |
3152 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3153 | ||
3154 | * infcall.c (call_function_by_hand): Don't allow calling functions | |
3155 | in reverse execution mode. | |
3156 | ||
c13bd2b5 PA |
3157 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3158 | ||
3159 | * infcmd.c (finish_command): Allow async finish in reverse. | |
3160 | ||
6938fd34 YQ |
3161 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
3162 | ||
3163 | * gdb_thread_db.h: Delete. Move to ... | |
3164 | * common/gdb_thread_db.h: ... here. | |
3165 | ||
9da8c2a0 PA |
3166 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3167 | ||
3168 | * infcmd.c (finish_backward): Set a step-resume breakpoint at the | |
3169 | function's entry point instead of a manually managed momentary | |
3170 | breakpoint, and only ever issue one proceed call. | |
3171 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If | |
3172 | doing a reverse-finish, switch to stepi mode, to do another step. | |
3173 | (insert_step_resume_breakpoint_at_sal): Make public. | |
3174 | (normal_stop): No need to save function value return registers if | |
3175 | going reverse. | |
3176 | * inferior.h (insert_step_resume_breakpoint_at_sal): Declare. | |
3177 | ||
2c03e5be PA |
3178 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3179 | ||
3180 | * breakpoint.h (enum bptype) <bp_hp_step_resume>: New. | |
3181 | (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME | |
3182 | before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME | |
3183 | at the end. | |
3184 | * breakpoint.c (update_breakpoints_after_exec): Also delete hp | |
3185 | step-resume breakpoints. | |
3186 | (print_it_typical): Handle bp_hp_step_resume. | |
3187 | (bpstat_what): Ditto. | |
3188 | (bptype_string): Ditto. | |
3189 | (print_one_breakpoint_location): Ditto. | |
3190 | (allocate_bp_location): Ditto. | |
3191 | (mention): Ditto. | |
3192 | (breakpoint_re_set_one): Ditto. | |
3193 | * infrun.c (handle_inferior_event): Adjust. Split | |
3194 | BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and | |
3195 | BPSTAT_WHAT_HP_STEP_RESUME. | |
3196 | (insert_step_resume_breakpoint_at_sal): Rename to ... | |
3197 | (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype | |
3198 | parameter. Handle it. | |
3199 | (insert_step_resume_breakpoint_at_sal): Reimplement on top of | |
3200 | insert_step_resume_breakpoint_at_sal_1. | |
3201 | (insert_step_resume_breakpoint_at_frame): Rename to ... | |
3202 | (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to | |
3203 | set a high-priority step-resume breakpoint. | |
3204 | (insert_step_resume_breakpoint_at_frame): Adjust comment. | |
3205 | (insert_step_resume_breakpoint_at_caller): Ditto. | |
3206 | ||
51be5b68 PA |
3207 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3208 | ||
3209 | * breakpoint.c (iterate_over_related_breakpoints): New. | |
3210 | (do_map_delete_breakpoint): New. | |
3211 | (delete_command): Pass do_map_delete_breakpoint to | |
3212 | map_breakpoint_numbers. | |
3213 | (do_disable_breakpoint): New. | |
3214 | (do_map_disable_breakpoint): Iterate over the breakpoint's related | |
3215 | breakpoints. | |
3216 | (do_enable_breakpoint): Rename to ... | |
3217 | (enable_breakpoint_disp): ... this. | |
3218 | (enable_breakpoint): Adjust. | |
3219 | (do_enable_breakpoint): New. | |
3220 | (enable_once_breakpoint): Delete. | |
3221 | (do_map_enable_breakpoint): New. | |
3222 | (do_map_enable_once_breakpoint): New. | |
3223 | (enable_once_command, enable_delete_command) | |
3224 | (delete_trace_command): Iterate over the breakpoint's related | |
3225 | breakpoints. | |
3226 | ||
4a1be8d2 PA |
3227 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
3228 | ||
3229 | * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true | |
3230 | for ALPHA_ZERO_REGNUM. | |
3231 | (alpha_supply_int_regs): Explicitly supply zero as the value for | |
3232 | ALPHA_ZERO_REGNUM in the register cache. | |
3233 | * alpha-nat.c (fetch_osf_core_registers): Ditto. | |
3234 | ||
59d70315 YQ |
3235 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
3236 | ||
3237 | * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T. | |
3238 | ||
251d32d9 TG |
3239 | 2011-05-26 Tristan Gingold <gingold@adacore.com> |
3240 | ||
3241 | * symfile.h (struct dwarf2_section_names): New type. | |
3242 | (struct dwarf2_debug_sections): New type. | |
3243 | (dwarf2_has_info): Add parameter. | |
3244 | * dwarf2read.c (dwarf2_elf_names): New variable. | |
3245 | (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION) | |
3246 | (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION) | |
3247 | (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove. | |
3248 | (dwarf2_has_info): Add names parameter. Pass names | |
3249 | to dwarf2_locate_sections. | |
3250 | (section_is_p): Rewrite using the names parameter. | |
3251 | (dwarf2_locate_sections): Use section names from the names parameter. | |
3252 | * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info. | |
3253 | * elfread.c (read_psyms): Ditto. | |
3254 | * machoread.c (macho_symfile_read): Ditto. | |
3255 | ||
652c71b4 AS |
3256 | 2011-05-25 Andreas Schwab <schwab@redhat.com> |
3257 | ||
3258 | PR gdb/8677 | |
3259 | * event-loop.c (handle_file_event): Don't handle POLLHUP as error. | |
3260 | ||
f17170e5 KS |
3261 | 2011-05-24 Keith Seitz <keiths@redhat.com> |
3262 | ||
3263 | PR breakpoint/12803 | |
3264 | * linespec.c (keep_name_info): Add handling for "volatile" keyword. | |
3265 | (decode_compound): Unconditionally call keep_name_info. | |
3266 | ||
cdac0397 PA |
3267 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
3268 | ||
3269 | * breakpoint.c (watchpoint_check): If the watchpoint went out of | |
3270 | scope, clear its command list. | |
3271 | (map_breakpoint_numbers): Don't walk the related breakpoints list | |
3272 | of each breakpoint. | |
3273 | ||
91d4fe3f TT |
3274 | 2011-05-24 Tom Tromey <tromey@redhat.com> |
3275 | ||
3276 | * MAINTAINERS: Move Jim Blandy to past maintainers. | |
3277 | ||
3017a003 TG |
3278 | 2011-05-24 Tristan Gingold <gingold@adacore.com> |
3279 | ||
3280 | * symfile.h (enum dwarf2_section_enum): New type. | |
3281 | (dwarf2_get_section_info): New prototype. | |
3282 | * dwarf2read.c (dwarf2_get_section_info): Replace parameter | |
3283 | section_name by sect. Use a switch to select the info. | |
3284 | * dwarf2-frame.c (warf2_get_section_info): Remove prototype. | |
3285 | (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info. | |
3286 | ||
c91c8c16 PA |
3287 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
3288 | ||
3289 | * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting | |
3290 | shared library event breakpoint if there's no execution. | |
3291 | ||
77bc418a TJB |
3292 | 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3293 | ||
3294 | * breakpont.c (remove_hw_watchpoints): Remove unused function. | |
3295 | * breakpoint.h remove_hw_watchpoints(): Remove prototype. | |
3296 | ||
c50491a7 TT |
3297 | 2011-05-23 Tom Tromey <tromey@redhat.com> |
3298 | ||
3299 | * c-lang.c (evaluate_subexp_c): Use expect_type if it is not | |
3300 | NULL. | |
3301 | ||
6d64e6d4 DE |
3302 | 2011-05-23 Doug Evans <dje@google.com> |
3303 | ||
3304 | * python/lib/gdb/printing.py (register_pretty_printer): Add missing | |
3305 | entry for RuntimeError to doc string. | |
3306 | ||
2067c8d4 JG |
3307 | 2011-05-23 Jerome Guitton <guitton@adacore.com> |
3308 | ||
3309 | * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction | |
3310 | sequence for probing loops. | |
3311 | ||
b136cd05 PA |
3312 | 2011-05-23 Pedro Alves <pedro@codesourcery.com> |
3313 | ||
3314 | * infrun.c (user_visible_resume_ptid): Fix typos in describing | |
3315 | comment. | |
3316 | ||
22e74ef9 MK |
3317 | 2011-05-21 Mark Kettenis <kettenis@gnu.org> |
3318 | ||
3319 | * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply | |
3320 | zero as the value for %g0 in the register cache. | |
3321 | * sparc-tdep.c (sparc32_supply_gregset): Likewise. | |
3322 | * sparc64-tdep.c (sparc64_supply_gregset): Likewise. | |
3323 | ||
842951eb PA |
3324 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3325 | ||
3326 | * infrun.c (proceed): Set previous_inferior_ptid here. | |
3327 | (init_wait_for_inferior): Initialize previous_inferior_ptid from | |
3328 | inferior_ptid, not null_ptid. | |
3329 | (wait_for_inferior): Don't initialize previous_inferior_ptid here. | |
3330 | (fetch_inferior_event): Nor here. | |
3331 | ||
46cf51e6 PA |
3332 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3333 | ||
3334 | * inf-loop.c (inferior_event_handler): Only output a message if | |
3335 | verbose. | |
3336 | ||
29ef4c46 LM |
3337 | 2011-05-20 Luis Machado <lgustavo@codesourcery.com> |
3338 | ||
3339 | * MAINTAINERS: Update my e-mail address. | |
3340 | ||
f148b27e PA |
3341 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3342 | ||
3343 | * infrun.c (proceed): Switch the inferior event loop to | |
3344 | INF_EXEC_COMPLETE if the target refused to resume from a | |
3345 | vfork/fork. | |
3346 | ||
09cee04b PA |
3347 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3348 | ||
3349 | * infcmd.c: Include "inf-loop.h". | |
3350 | (step_once): When stepping into an inline subroutine, pretend the | |
3351 | target has run. If the target can async, switch the inferior | |
3352 | event loop to INF_EXEC_COMPLETE. | |
3353 | * inferior.h (user_visible_resume_ptid): Declare. | |
3354 | * infrun.c (user_visible_resume_ptid): New function, factored out | |
3355 | from `resume'. | |
3356 | (resume): Use it. | |
3357 | * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion | |
3358 | that the current thread is running. Merge async and sync | |
3359 | branches. | |
3360 | ||
751b8ce1 PA |
3361 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3362 | ||
3363 | * infcmd.c (step_1): Simplify synchronous case. | |
3364 | ||
e93a69ed PA |
3365 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3366 | ||
3367 | * tracepoint.c: Include exceptions.h. | |
3368 | (TFILE_PID): Move higher in file. | |
3369 | (tfile_open): Delay pushing the tfile target until we're assured | |
3370 | the tfile header is present in the file. Wrap reading the initial | |
3371 | newline-terminated lines in TRY_CATCH. Pop the target if the | |
3372 | initial setup failed. Add the tfile's thread immediately | |
3373 | aftwards, before any non-essential setup. Don't skip | |
3374 | post_create_inferior if there are no traceframes present in the | |
3375 | file. | |
3376 | (tfile_close): Remove redundant check for null before xfree call. | |
3377 | (tfile_thread_alive): New function. | |
3378 | (init_tfile_ops): Register it as to_thread_alive callback. | |
3379 | ||
6823e2b1 PA |
3380 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
3381 | ||
3382 | * tracepoint.c (tfile_open): Delete #if 0'd code. | |
3383 | ||
b3c8eb43 JK |
3384 | 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
3385 | ||
3386 | Fix -readnow for -gdwarf-4 unused type units. | |
3387 | * dwarf2read.c (struct signatured_type): Remove the field offset. | |
3388 | (create_signatured_type_table_from_index): Remove its initialization. | |
3389 | (create_debug_types_hash_table): Likewise. Initialize per_cu.offset | |
3390 | instead. Add a complaint call. | |
3391 | (process_psymtab_comp_unit): Change assignment to gdb_assert. | |
3392 | (process_type_comp_unit, lookup_die_type, dump_die_shallow) | |
3393 | (lookup_signatured_type_at_offset, read_signatured_type) | |
3394 | (write_one_signatured_type): Update the field for per_cu. | |
3395 | ||
310afc76 TT |
3396 | 2011-05-19 Tom Tromey <tromey@redhat.com> |
3397 | ||
3398 | * python/py-inferior.c (python_inferior_exit): Use | |
3399 | target_gdbarch. | |
3400 | (python_on_resume): Likewise. | |
3401 | ||
cf6c5ffb TT |
3402 | 2011-05-19 Matt Rice <ratmice@gmail.com> |
3403 | ||
3404 | * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. | |
3405 | ||
fb80a3c5 HZ |
3406 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
3407 | ||
3408 | * tracepoint.c (tfile_trace_find): Return directly when num is -1. | |
3409 | ||
3672b1be HZ |
3410 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
3411 | ||
3412 | * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved. | |
3413 | ||
ff355380 TT |
3414 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
3415 | ||
3416 | * dwarf2read.c (dwarf2_add_field): Constify. | |
3417 | * value.c (value_static_field): Constify. | |
3418 | * gdbtypes.h (struct main_type) <field.field_location.physname>: | |
3419 | Now const. | |
3420 | * ax-gdb.c (gen_static_field): Constify | |
3421 | ||
ed731959 JK |
3422 | 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
3423 | ||
3424 | * linux-nat.c (kill_callback): Use SIGKILL first. | |
3425 | ||
967cff16 JB |
3426 | 2011-05-18 Joel Brobecker <brobecker@adacore.com> |
3427 | ||
3428 | * ada-lang.c (print_it_exception): Avoid use of sprintf. | |
3429 | ||
1d06ead6 TT |
3430 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
3431 | ||
3432 | * value.c (value_fn_field): Constify. | |
3433 | * symtab.c (gdb_mangle_name): Constify. | |
3434 | * stabsread.c (update_method_name_from_physname): Make 'physname' | |
3435 | argument const. | |
3436 | * p-typeprint.c (pascal_type_print_method_args): Make arguments | |
3437 | const. Use explicit fputc_filtered loop. | |
3438 | (pascal_type_print_base): Constify. | |
3439 | * p-lang.h (pascal_type_print_method_args): Update. | |
3440 | * linespec.c (add_matching_methods): Constify. | |
3441 | (add_constructors): Likewise. | |
3442 | * jv-typeprint.c (java_type_print_base): Constify. | |
3443 | * gdbtypes.h (struct cplus_struct_type) | |
3444 | <fn_fieldlist.fn_field.physname>: Now const. | |
3445 | * dwarf2read.c (compute_delayed_physnames): Constify. | |
3446 | (dwarf2_add_member_fn): Likewise. | |
3447 | * c-typeprint.c (c_type_print_base): Constify. Use cleanups. | |
3448 | ||
0d9a9a5f PA |
3449 | 2011-05-18 Pedro Alves <pedro@codesourcery.com> |
3450 | ||
3451 | * infrun.c (resume): Mention which is the current thread, and its | |
3452 | current PC in debug output. | |
3453 | (prepare_to_proceed): Mention the thread switching in debug | |
3454 | output. | |
3455 | ||
05386e9e TT |
3456 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
3457 | ||
3458 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute | |
3459 | path check. Use xmalloc and cleanups. | |
3460 | (try_thread_db_load_from_dir): Use xmalloc and cleanups. | |
3461 | ||
ee86786c TT |
3462 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
3463 | ||
3464 | * cp-valprint.c (cp_print_value_fields): Catch errors from | |
3465 | value_static_field. | |
3466 | ||
9ff3b74f TT |
3467 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
3468 | ||
3469 | * dwarf2read.c (dwarf2_get_die_type): Call | |
3470 | get_die_type_at_offset. | |
3471 | * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from | |
3472 | get_base_type function. | |
3473 | ||
cd3da28e PA |
3474 | 2011-05-17 Tomas Martinec <fyzmat@gmail.com> |
3475 | ||
3476 | * infrun.c (handle_inferior_event) <handling deferred step>: Clear | |
3477 | trap_expected. | |
3478 | ||
fd20d931 DE |
3479 | 2011-05-16 Doug Evans <dje@google.com> |
3480 | ||
3481 | * python/py-auto-load.c (source_section_scripts): Mention objfile | |
3482 | name in warning. | |
3483 | ||
75fc9810 DE |
3484 | 2011-05-15 Doug Evans <dje@google.com> |
3485 | ||
290351b8 DE |
3486 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. |
3487 | (try_thread_db_load_from_pdir): Call it. If unable to find | |
3488 | libthread_db in directory of libpthread, see if we're looking at | |
3489 | the separate-debug-info copy. | |
3490 | ||
75fc9810 DE |
3491 | * python/py-autoload.c (print_script): Print "Missing" instead of |
3492 | "No" for missing scripts. | |
3493 | (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". | |
3494 | ||
9f7bc587 DE |
3495 | 2011-05-13 Doug Evans <dje@google.com> |
3496 | ||
3497 | * ui-file.c (stdio_file_write_async_safe): Add comment. | |
3498 | ||
093cee7d HZ |
3499 | 2011-05-14 Hui Zhu <teawater@gmail.com> |
3500 | ||
3501 | * ui-file.c (stdio_file_write_async_safe): Add empty check for build. | |
3502 | ||
dbaefcf7 DE |
3503 | 2011-05-13 Doug Evans <dje@google.com> |
3504 | ||
98a5dd13 DE |
3505 | Support $pdir and $sdir in libthread-db-search-path. |
3506 | * NEWS: Mention $sdir,$pdir. | |
3507 | * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir. | |
3508 | * linux-thread-db.c (try_thread_db_load_from_pdir): New function. | |
3509 | (try_thread_db_load_from_sdir): New function. | |
3510 | (try_thread_db_load_from_dir): New function. | |
3511 | (thread_db_load_search): Handle $pdir, $sdir. Remove trying of | |
3512 | system directories if search of libthread-db-search-path fails, | |
3513 | that is now done via $sdir. | |
3514 | (has_libpthread): New function. | |
3515 | (thread_db_load): Remove search for libthread_db in directory of | |
3516 | libpthread, that is now done via $pdir. | |
3517 | ||
dbaefcf7 DE |
3518 | * NEWS: Mention "info auto-load-scripts". |
3519 | * python/py-auto-load.c (struct auto_load_pspace_info): New member | |
3520 | script_not_found_warning_printed. | |
3521 | (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash, | |
3522 | all callers updated. Initialize script_not_found_warning_printed. | |
3523 | (get_auto_load_pspace_data_for_loading): New function. | |
3524 | (maybe_add_script): New function. | |
3525 | (source_section_scripts): Simplify. Only print one warning regardless | |
3526 | of the number of auto-load scripts not found. | |
3527 | (clear_section_scripts): Clear script_not_found_warning_printed. | |
3528 | (auto_load_objfile_script): Record script in hash table. | |
3529 | (count_matching_scripts): New function. | |
3530 | (maybe_print_script): Renamed from maybe_print_section_script, all | |
3531 | callers updated. Rewrite to use ui_out_*. | |
3532 | (info_auto_load_scripts): Renamed from | |
3533 | maintenance_print_section_scripts, all callers updated. | |
3534 | (gdbpy_initialize_auto_load): "maintenance print section-scripts" | |
3535 | renamed as "info auto-load-scripts". | |
3536 | ||
9930639c TT |
3537 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
3538 | ||
3539 | * dwarf2expr.c (read_uleb128): Cast intermediate result. | |
3540 | (read_sleb128): Likewise. | |
3541 | ||
06826322 TT |
3542 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
3543 | ||
3544 | * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction | |
3545 | offset display. | |
3546 | ||
01124a23 DE |
3547 | 2011-05-13 Doug Evans <dje@google.com> |
3548 | ||
3549 | * linux-nat.c (debug_linux_nat_async): Delete. | |
3550 | Replace all references to use debug_linux_nat instead. | |
3551 | (show_debug_linux_nat_async): Delete. | |
3552 | (sigchld_handler): Call ui_file_write_async_safe instead of | |
3553 | fprintf_unfiltered. | |
3554 | (_initialize_linux_nat): Remove `set debug lin-lwp-async'. | |
3555 | * ui-file.c (struct ui_file): New member to_write_async_safe. | |
3556 | (null_file_write_async_safe): New function. | |
3557 | (ui_file_write_async_safe): New function. | |
3558 | (set_ui_file_write_async_safe): New function. | |
3559 | (ui_file_new): Initialize to_write_async_safe. | |
3560 | (stdio_file_write_async_safe): New function. | |
3561 | (struct stdio_file): New member fd. | |
3562 | (stdio_file_new): Initialize to_write_async_safe, fd. | |
bbfac39e DE |
3563 | (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling |
3564 | fileno. | |
01124a23 DE |
3565 | * ui-file.h (ui_file_write_async_safe_ftype): New typedef. |
3566 | (set_ui_file_write_async_safe): Declare. | |
3567 | (ui_file_write_async_safe): Declare. | |
3568 | ||
72fc29ff TT |
3569 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
3570 | ||
3571 | * utils.c (do_value_free): New function. | |
3572 | (make_cleanup_value_free): Likewise. | |
3573 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value | |
3574 | freeing correctly. | |
3575 | (dwarf2_loc_desc_needs_frame): Call | |
3576 | make_cleanup_value_free_to_mark. | |
3577 | * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field. | |
3578 | * dwarf2expr.c (free_dwarf_expr_context): Don't call | |
3579 | value_free_to_mark. | |
3580 | (new_dwarf_expr_context): Don't call value_mark. | |
3581 | * dwarf2-frame.c (execute_stack_op): Call | |
3582 | make_cleanup_value_free_to_mark. | |
3583 | * defs.h (make_cleanup_value_free): Declare. | |
3584 | ||
028d0ed5 TJB |
3585 | 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3586 | ||
3587 | * mi/mi-main.c (mi_cmd_execute): Use cleanup from | |
3588 | prepare_execute_command. | |
3589 | * top.c (prepare_execute_command): Return cleanup. | |
3590 | (execute_command): Use cleanup from prepare_execute_command. | |
3591 | * top.h (prepare_execute_command): Change prototype to return | |
3592 | cleanup. | |
3593 | * defs.h (struct value): Add opaque declaration. | |
3594 | (make_cleanup_value_free_to_mark): Add prototype. | |
3595 | * utils.c (do_value_free_to_mark): New function. | |
3596 | (make_cleanup_value_free_to_mark): Likewise. | |
3597 | ||
b087e0ed TT |
3598 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
3599 | ||
3600 | * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally | |
3601 | cast left-hand-side to unsigned. | |
3602 | ||
8a9b8146 TT |
3603 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
3604 | ||
3605 | PR gdb/12617: | |
3606 | * value.h (value_from_contents): Declare. | |
3607 | * value.c (value_from_contents): New function. | |
3608 | * dwarf2read.c (dwarf_stack_op_name): Add new values. | |
3609 | (dwarf2_get_die_type): New function. | |
3610 | * dwarf2loc.c (dwarf_expr_get_base_type): New function. | |
3611 | (allocate_piece_closure): Acquire reference to values. | |
3612 | (read_pieced_value): Update for value-based expressions. | |
3613 | (write_pieced_value): Likewise. | |
3614 | (free_pieced_value_closure): Call value_free as needed. | |
3615 | (dwarf2_evaluate_loc_desc_full): Set get_base_type field. | |
3616 | Update for value-based expressions. | |
3617 | * dwarf2loc.h (dwarf2_get_die_type): Declare. | |
3618 | * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type. | |
3619 | <get_base_type>: New field. | |
3620 | (struct dwarf_expr_piece) <v.value>: Change type. | |
3621 | <v.regno>: New field. | |
3622 | (struct dwarf_expr_context) <mark>: New field. | |
3623 | (dwarf_expr_piece, dwarf_expr_fetch): Update. | |
3624 | (dwarf_expr_pop, dwarf_expr_push): Remove. | |
3625 | (dwarf_expr_push_address): Declare. | |
3626 | * dwarf2expr.c (dwarf_arch_cookie): New global. | |
3627 | (struct dwarf_gdbarch_types): New. | |
3628 | (dwarf_gdbarch_types_init, dwarf_expr_address_type): New | |
3629 | functions. | |
3630 | (dwarf_expr_push): Change type of 'value' argument. Update. Now | |
3631 | static. | |
3632 | (dwarf_expr_push_address): New function. | |
3633 | (dwarf_expr_pop): Now static. | |
3634 | (dwarf_expr_fetch): Change return type. | |
3635 | (dwarf_require_integral): New function. | |
3636 | (dwarf_expr_fetch): Simplify. | |
3637 | (add_piece): Update. | |
3638 | (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New | |
3639 | functions. | |
3640 | (execute_stack_op) <sign_ext>: Remove. | |
3641 | Use values for DWARF stack. | |
3642 | <DW_OP_GNU_const_type, DW_OP_GNU_deref_type, | |
3643 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
3644 | New cases. | |
3645 | (_initialize_dwarf2expr): New function. | |
3646 | (add_piece): Update. | |
3647 | (new_dwarf_expr_context): Set new field. | |
3648 | (free_dwarf_expr_context): Call value_free_to_mark. | |
3649 | * dwarf2-frame.c (no_base_type): New function. | |
3650 | (execute_stack_op): Set get_base_type field. Update. | |
3651 | ||
e8d28ef4 TT |
3652 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
3653 | ||
3654 | * dwarf2read.c (read_common_block): Fix formatting. | |
3655 | ||
d248b706 KY |
3656 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
3657 | ||
3658 | * breakpoint.c (disable_breakpoint): Disable all locations | |
3659 | associated with a tracepoint on target if a trace experiment is | |
3660 | running. | |
3661 | (disable_command): Disable a specific tracepoint location on target if | |
3662 | a trace experiment is running. | |
3663 | (do_enable_breakpoint): Enable all locations associated with a | |
3664 | tracepoint on target if a trace experiment is running. | |
3665 | (enable_command) Enable a specific tracepoint location on target if a | |
3666 | trace experiment is running. | |
3667 | * target.c (update_current_target): Add INHERIT and de_fault clauses for | |
3668 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
3669 | to_disable_tracepoint. | |
3670 | * target.h: Add declaration of struct bp_location. | |
3671 | (struct target_ops): Add new functions | |
3672 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
3673 | to_disable_tracepoint to target operations. | |
3674 | (target_supports_enable_disable_tracepoint): New macro. | |
3675 | (target_enable_tracepoint): New macro. | |
3676 | (target_disable_tracepoint): New macro. | |
3677 | * remote.c (struct remote_state): Add new field. | |
3678 | (remote_enable_disable_tracepoint_feature): New. | |
3679 | (remote_protocol_features): Add new entry. | |
3680 | (remote_supports_enable_disable_tracepoint): New. | |
3681 | (remote_enable_tracepoint): New. | |
3682 | (remote_disable_tracepoint): New. | |
3683 | (init_remote_ops): Add remote_enable_tracepoint, | |
3684 | remote_disable_tracepoint and remote_supports_enable_disable_tracepoint | |
3685 | to remote operations. | |
3686 | * tracepoint.c (start_tracing): Allow tracing to start without any | |
3687 | tracepoints enabled with just a warning if they can be re-enabled | |
3688 | later. | |
3689 | * NEWS: Add news item for the new behaviour of the enable and disable | |
3690 | GDB commands when applied to tracepoints. | |
3691 | Add news items for the new remote packets QTEnable and QTDisable. | |
3692 | ||
cc88a640 JK |
3693 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3694 | ||
3695 | * config.in: Regenerate. | |
3696 | * configure: Regenerate. | |
3697 | * configure.ac <--with-system-readline> (for readline_echoing_p): | |
3698 | Remove the test. | |
3699 | * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... | |
3700 | (tui_old_rl_echoing_p): ... here. | |
3701 | (tui_setup_io): Rename extern declaration readline_echoing_p to | |
3702 | _rl_echoing_p. Adjust assignments for the both renames. | |
3703 | ||
1f84b619 TJB |
3704 | 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3705 | ||
3706 | * symtab.c (lookup_symtab): Run cleanup before returning. | |
3707 | ||
74ac6d43 TT |
3708 | 2011-05-11 Tom Tromey <tromey@redhat.com> |
3709 | ||
3710 | * dwarf2read.c (handle_data_member_location): New function. | |
3711 | (dwarf2_add_field): Use it. | |
3712 | (read_common_block): Likewise. | |
3713 | ||
5488dafb JK |
3714 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3715 | ||
3716 | Make addrs->SECTINDEX always defined. | |
3717 | * symfile.c (relative_addr_info_to_section_offsets): Check for | |
3718 | SECTINDEX -1, not for zero ADDR. | |
3719 | (addrs_section_compar): Remove checking for invalid SECTINDEX. | |
3720 | (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries. | |
3721 | * symfile.h (struct section_addr_info) <sectindex>: Update the comment | |
3722 | on its validity. | |
3723 | ||
84e578fb DE |
3724 | 2011-05-10 Doug Evans <dje@google.com> |
3725 | ||
2471d008 DE |
3726 | * linux-thread-db.c: Whitespace cleanup. |
3727 | (try_thread_db_load_1): Fix comment. | |
3728 | ||
84e578fb DE |
3729 | * linux-thread-db.c (set_libthread_db_search_path): New function. |
3730 | (_initialize_thread_db): Add setter for libthread-db-search-path. | |
3731 | ||
673c2bbe DE |
3732 | 2011-05-09 Doug Evans <dje@google.com> |
3733 | ||
478aac75 DE |
3734 | * NEWS: Mention --with-iconv-bin. |
3735 | * configure.ac: New option --with-iconv-bin. | |
3736 | * configure: Regenerate. | |
3737 | * config.in: Regenerate. | |
3738 | * defs.h (relocate_gdb_directory): Declare. | |
3739 | * main.c (relocate_gdb_directory): Renamed from relocate_directory, | |
3740 | removed progname parameter, and exported. All callers updated. | |
3741 | * charset.c (find_charset_names): Use --with-iconv-bin if specified. | |
3742 | ||
673c2bbe DE |
3743 | * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, |
3744 | adding missing call to restore_child_signals_mask. | |
3745 | ||
e4c8541f PA |
3746 | 2011-05-09 Pedro Alves <pedro@codesourcery.com> |
3747 | ||
3748 | * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' | |
3749 | parameter. | |
3750 | * infrun.c (proceed, start_remote): Adjust. | |
3751 | (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter, | |
3752 | and adjust to not handle it. | |
3753 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
3754 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
3755 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
3756 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
3757 | * windows-nat.c (do_initial_windows_stuff): Adjust. | |
3758 | * infcmd.c (attach_command): Adjust. | |
3759 | (notice_new_inferior): Adjust. | |
3760 | ||
a536c6d7 UW |
3761 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
3762 | ||
3763 | * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. | |
3764 | (ppu2spu_unwind_register): Mark pseudo registers unavailable. | |
3765 | * spu-tdep.c (op_selb): Use correct value. | |
3766 | ||
7845b013 UW |
3767 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
3768 | ||
3769 | * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL | |
3770 | "parent" parameter to symbol_file_add_from_bfd call. | |
3771 | ||
9c06b0b4 TJB |
3772 | 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
3773 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3774 | ||
3775 | Implement support for PowerPC BookE masked watchpoints. | |
3776 | * NEWS: Mention masked watchpoint support. Create "Changed commands" | |
3777 | section. | |
3778 | * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New | |
3779 | method. Initialize to NULL in all existing breakpoint_ops instances. | |
3780 | (struct breakpoint) <hw_wp_mask>: New field. | |
3781 | * breakpoint.c (is_masked_watchpoint): Add prototype. | |
3782 | (update_watchpoint): Don't set b->val for masked watchpoints. Call | |
3783 | breakpoint's breakpoint_ops.works_in_software_mode if available. | |
3784 | (watchpoints_triggered): Handle the case of a hardware masked | |
3785 | watchpoint trigger. | |
3786 | (watchpoint_check): Likewise. | |
3787 | (works_in_software_mode_watchpoint): New function. | |
3788 | (insert_masked_watchpoint, remove_masked_watchpoint) | |
3789 | (resources_needed_masked_watchpoint) | |
3790 | (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint) | |
3791 | (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint) | |
3792 | (print_recreate_masked_watchpoint, is_masked_watchpoint): New | |
3793 | functions. | |
3794 | (masked_watchpoint_breakpoint_ops): New structure. | |
3795 | (watch_command_1): Check for the existence of the `mask' parameter. | |
3796 | Set b->ops according to the type of hardware watchpoint being created. | |
3797 | * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint) | |
3798 | (ppc_linux_remove_mask_watchpoint) | |
3799 | (ppc_linux_masked_watch_num_registers): New functions. | |
3800 | (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint, | |
3801 | to_remove_mask_watchpoint and to_masked_watch_num_registers. | |
3802 | * target.c (update_current_target): Mention to_insert_mask_watchpoint, | |
3803 | to_remove_mask_watchpoint, and to_masked_watch_num_registers. | |
3804 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
3805 | (target_masked_watch_num_registers): New functions. | |
3806 | * target.h (struct target_ops) <to_insert_mask_watchpoint>, | |
3807 | <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New | |
3808 | methods. | |
3809 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
3810 | (target_masked_watch_num_registers): Add prototypes. | |
3811 | ||
8be455d7 JK |
3812 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3813 | ||
3814 | PR 12573 | |
3815 | * dwarf2read.c (struct dwarf2_cu): New field has_loclist. | |
3816 | (producer_is_gcc_ge_4_0): New function. | |
3817 | (process_full_comp_unit): Set also symtab->locations_valid. Move the | |
3818 | symtab->language code. | |
3819 | (var_decode_location): Set cu->has_loclist. | |
3820 | * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and | |
3821 | skip. Intialize force_skip from locations_valid. Move the prologue | |
3822 | skipping code into two passes. | |
3823 | * symtab.h (struct symtab): Make the primary field a bitfield. New | |
3824 | field locations_valid. | |
3825 | ||
d8228535 JK |
3826 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3827 | ||
3828 | * c-exp.y (qualified_name): Call destructor_name_p with $1.type. | |
3829 | (classify_inner_name): Call cp_lookup_nested_type with | |
3830 | yylval.tsym.type. | |
3831 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
3832 | saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call | |
3833 | type_name_no_tag_or_error with saved_parent_type. | |
3834 | * dwarf2read.c (load_partial_dies): Read in any children of | |
3835 | DW_TAG_typedef with complaint in such case. | |
3836 | * gdbtypes.c (type_name_no_tag_or_error): New function. | |
3837 | * gdbtypes.h (type_name_no_tag_or_error): New prototype. | |
3838 | * valops.c (destructor_name_p): New comment for parameter type. Remove | |
3839 | type const. Make dname and cp const. Call type_name_no_tag_or_error. | |
3840 | * value.h (destructor_name_p): Remove type const. | |
3841 | ||
1976171a JK |
3842 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3843 | ||
3844 | * symtab.c (compare_symbol_name): New function. | |
3845 | (completion_list_add_name, expand_partial_symbol_name): Call it, | |
3846 | remove the variable ncmp. | |
3847 | (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN, | |
3848 | gdb_assert it. | |
3849 | ||
a9634178 TJB |
3850 | 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3851 | ||
3852 | Demote to sw watchpoint only in update_watchpoint. | |
3853 | * breakpoint.c (update_watchpoint): Change between software and | |
3854 | hardware watchpoint for all kinds of watchpoints, not just | |
3855 | read/write ones. Determine b->exact value here instead of | |
3856 | in watch_command_1. Error out if there are not enough resources | |
3857 | for a read or access hardware watchpoint. | |
3858 | (watch_command_1): Remove logic of checking whether there are | |
3859 | enough resources available, since update_watchpoint will do that | |
3860 | work now. Don't set b->exact here. Catch exceptions thrown by | |
3861 | update_watchpoint and delete the watchpoint. | |
3862 | (can_use_hardware_watchpoint): Remove exact_watchpoints argument. | |
3863 | Use target_exact_watchpoints instead. | |
3864 | (delete_breakpoint): Notify observers only if deleted watchpoint | |
3865 | has a breakpoint number assigned to it. | |
3866 | ||
4c67c798 JJ |
3867 | 2011-05-05 Janis Johnson <janisjo@codesourcery.com> |
3868 | ||
3869 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
3870 | ||
a3fcb948 JG |
3871 | 2011-05-05 Jerome Guitton <guitton@adacore.com> |
3872 | ||
3873 | * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): | |
3874 | New functions. | |
3875 | (i386_stack_tramp_frame_unwind): New static global. | |
3876 | (i386_match_pattern): New function, extracted from i386_match_insn. | |
3877 | (i386_match_insn): Use i386_match_pattern. | |
3878 | (i386_match_insn_block): New function. | |
3879 | (i386_tramp_chain_in_reg_insns) | |
3880 | (i386_tramp_chain_on_stack_insns): New static variables. | |
3881 | (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list | |
3882 | of unwinders. | |
3883 | ||
4d393d60 JM |
3884 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
3885 | ||
3886 | * configure.host (xscale*): Don't handle target. | |
3887 | * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't | |
3888 | handle targets. | |
3889 | ||
f70bd40b YQ |
3890 | 2011-05-04 Yao Qi <yao@codesourcery.com> |
3891 | ||
3892 | * gdb_wait.h: remove WAITTYPE and WCOREDUMP. | |
3893 | ||
dd3295ee JB |
3894 | 2011-05-03 Joel Brobecker <brobecker@adacore.com> |
3895 | ||
3896 | Revert: | |
3897 | | 2011-03-07 Michael Snyder <msnyder@vmware.com> | |
3898 | | * elfread.c (elf_symtab_read): Stop memory leak. | |
3899 | ||
90375a0e PM |
3900 | 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
3901 | ||
3902 | * nto-tdep.c (nto_target): Replace deprecated call to | |
3903 | cygwin_conv_to_posix_path functions by cygwin_conv_path calls. | |
3904 | ||
d07205c2 JK |
3905 | 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3906 | ||
3907 | Fix false GCC warning. | |
3908 | * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. | |
3909 | ||
1e718ff1 TJB |
3910 | 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3911 | ||
3912 | * breakpoint.c (update_watchpoint): Move code to change | |
3913 | the enable state of breakpoint from here ... | |
3914 | (do_enable_breakpoint): ... to here. | |
3915 | ||
35bef4fd TT |
3916 | 2011-04-26 Andrew Gontarek <andrewg@cray.com> |
3917 | ||
78290264 PP |
3918 | * valprint.c (val_print_array_elements): Fixed poor performance |
3919 | of printing very large arrays with repeat_count_threshold set | |
3920 | to unlimited. New comment. | |
35bef4fd | 3921 | |
38a714bb TT |
3922 | 2011-04-29 Tom Tromey <tromey@redhat.com> |
3923 | ||
3924 | * mi/mi-parse.c (mi_parse): Remove incorrect sizeof. | |
3925 | (mi_parse): Likewise. | |
3926 | * breakpoint.c (break_range_command): Use sizeof char*, not | |
3927 | char**. | |
3928 | (create_breakpoint): Likewise. | |
3929 | (parse_breakpoint_sals): Likewise. | |
3930 | ||
eb73ad13 PA |
3931 | 2011-04-29 Pedro Alves <pedro@codesourcery.com> |
3932 | ||
3933 | * linux-nat.c (linux_child_remove_fork_catchpoint) | |
3934 | (linux_child_remove_vfork_catchpoint) | |
3935 | (linux_child_remove_exec_catchpoint): New functions. | |
3936 | (linux_target_install_ops): Install them. | |
3937 | ||
d65aec65 PM |
3938 | 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> |
3939 | ||
3940 | PR mi/12531 | |
3941 | ||
3942 | * varobj.c (install_default_visualizer): Do not install a | |
3943 | visualizer if the varobj is CPLUS_FAKE_CHILD. | |
3944 | (construct_visualizer): Likewise. | |
3945 | ||
165195f4 JK |
3946 | 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3947 | ||
3948 | * symtab.c (expand_partial_symbol_name): New variable NCMP. Support | |
3949 | case insensitive comparison. | |
3950 | ||
30852783 UW |
3951 | 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org> |
3952 | ||
3953 | * infrun.c (proceed): Revert previous change. | |
3954 | (resume): Instead, handle the case of signal delivery while stepping | |
3955 | off a breakpoint location here, and only if software single-stepping | |
3956 | is used. Handle nested signals. | |
3957 | ||
7ff120b4 YQ |
3958 | 2011-04-28 Yao Qi <yao@codesourcery.com> |
3959 | ||
3960 | * arm-tdep.c (copy_unmodified): Rename to ... | |
3961 | (arm_copy_unmodified): .. this. New. | |
3962 | (copy_preload): Move common part to ... | |
3963 | (install_preload): .. this. New. | |
3964 | (arm_copy_preload): New. | |
3965 | (copy_preload_reg): Move common part to ... | |
3966 | (install_preload_reg): ... this. New. | |
3967 | (arm_copy_preload_reg): New. | |
3968 | (copy_b_bl_blx): Move common part to ... | |
3969 | (install_b_bl_blx): .. this. New. | |
3970 | (arm_copy_b_bl_blx): New. | |
3971 | (copy_bx_blx_reg): Move common part to ... | |
3972 | (install_bx_blx_reg): ... this. New. | |
3973 | (arm_copy_bx_blx_reg): New. | |
3974 | (copy_alu_reg): Move common part to ... | |
3975 | (install_alu_reg): ... this. New. | |
3976 | (arm_copy_alu_reg): New. | |
3977 | (copy_alu_shifted_reg): Move common part to ... | |
3978 | (install_alu_shifted_reg): ... this. New. | |
3979 | (copy_ldr_str_ldrb_strb): Move common part to ... | |
3980 | (install_ldr_str_ldrb_strb): ... this. New. | |
3981 | (arm_copy_ldr_str_ldrb_strb): New. | |
3982 | (copy_copro_load_store): Move some common part to ... | |
3983 | (install_copy_copro_load_store): ... this. New. | |
3984 | (arm_copy_copro_load_store): New. | |
3985 | (copy_svc): Delete. | |
3986 | (arm_copy_svc): Renamed from copy_svc. | |
3987 | (copy_undef): Delete. | |
3988 | (arm_copy_undef): Renamed from copy_undef. | |
3989 | (decode_ext_reg_ld_st): Delete. | |
3990 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
3991 | (decode_svc_copro): Delete. | |
3992 | (arm_decode_svc_copro): Renamed from decode_svc_copro. | |
3993 | (copy_copro_load_store, copy_alu_imm): update callers. | |
3994 | (copy_extra_ld_st, copy_block_xfer): Likewise. | |
3995 | (decode_misc_memhint_neon, decode_unconditional): Likewise. | |
3996 | (decode_miscellaneous, decode_dp_misc): Likewise. | |
3997 | (decode_ld_st_word_ubyte, decode_media): Likewise. | |
3998 | (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. | |
3999 | (decode_svc_copro, decode_misc_memhint_neon): Likewise. | |
4000 | (decode_unconditional, decode_miscellaneous): Likewise. | |
4001 | (decode_media, decode_b_bl_ldmstm): Likewise. | |
4002 | (arm_process_displaced_insn): Likewise.. | |
4003 | (decode_misc_memhint_neon): Delete. | |
4004 | (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. | |
4005 | (decode_miscellaneous): Delete. | |
4006 | (arm_decode_miscellaneous): Renamed from decode_miscellaneous. | |
4007 | (decode_dp_misc): Delete. | |
4008 | (arm_decode_dp_misc): Renamed from decode_dp_misc. | |
4009 | (decode_ld_st_word_ubyte): Delete. | |
4010 | (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. | |
4011 | (decode_media): Delete. | |
4012 | (arm_decode_media): Renamed from decode_media. | |
4013 | (decode_b_bl_ldmstm): Delete. | |
4014 | (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. | |
4015 | (decode_ext_reg_ld_st): Delete. | |
4016 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
4017 | (decode_unconditional): Delete. | |
4018 | (arm_decode_unconditional): Renamed from decode_unconditional. | |
4019 | ||
559a7a62 JK |
4020 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4021 | ||
4022 | Case insensitive lookups implementation. | |
4023 | * dwarf2read.c: Include ctype.h. | |
4024 | (struct mapped_index): New field version. | |
4025 | (mapped_index_string_hash): New parameter index_version. New comment | |
4026 | for it. Call tolower appropriately. | |
4027 | (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. | |
4028 | Choose the right index version for mapped_index_string_hash. | |
4029 | (dwarf2_read_index): Support also the index version 5. Initialize the | |
4030 | new struct mapped_index field version. | |
4031 | (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. | |
4032 | (find_slot): Explain the version needs. Pass INT_MAX for the new | |
4033 | parameter. | |
4034 | (write_psymtabs_to_index): Produce version 5. | |
4035 | * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, | |
4036 | use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. | |
4037 | * psymtab.c (lookup_partial_symbol): Find the | |
4038 | SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching | |
4039 | entries. | |
4040 | * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off | |
4041 | NAME lowercasing. | |
4042 | (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. | |
4043 | (completion_list_add_name): New variable ncmp, initialize it, use it. | |
4044 | * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. | |
4045 | * utils.c (strcmp_iw): Support case_sensitive_off. | |
4046 | (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. | |
4047 | New function comment part. New variables saved_string1, | |
4048 | saved_string2 and case_pass. Add a proper second pass. | |
4049 | ||
681bf369 JK |
4050 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4051 | ||
4052 | Replace re_comp/re_exec by regcomp/regexec. | |
4053 | * symtab.c (struct search_symbols_data): New fields preg, preg_p. | |
4054 | (search_symbols_name_matches): Use them, use regexec. | |
4055 | (search_symbols): New variable retval_chain, adjust the use of | |
4056 | old_chain against it. Replace re_comp by regcomp. Use the new struct | |
4057 | search_symbols_data fields, use regexec instead of re_exec. | |
4058 | ||
b11b1f88 JK |
4059 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4060 | ||
4061 | Format the code for the next patch. | |
4062 | * dwarf2read.c (struct mapped_index): Include delimiting newlines. | |
4063 | * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. | |
4064 | New variables c1 and c2. | |
4065 | ||
2484c66b UW |
4066 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
4067 | ||
4068 | * infrun.c (proceed): Do not single-step into signal delivery | |
4069 | when stepping off a breakpoint location. | |
4070 | (insert_step_resume_breakpoint_at_frame): Move prototype earlier. | |
4071 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
4072 | (insert_step_resume_breakpoint_at_sal): Likewise. | |
4073 | (insert_longjmp_resume_breakpoint): Likewise. | |
4074 | ||
47423772 YQ |
4075 | 2011-04-27 Yao Qi <yao@codesourcery.com> |
4076 | ||
4077 | * common/linux-ptrace.h: Remove include <sys/wait.h>. | |
4078 | ||
13bdd2e7 JB |
4079 | 2011-04-27 Joel Brobecker <brobecker@adacore.com> |
4080 | ||
4081 | * procfs.c (procfs_pass_signals): Fix advance declaration. | |
4082 | ||
2455069d UW |
4083 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
4084 | ||
4085 | * target.h (struct target_ops): Remove to_notice_signals; | |
4086 | add to_pass_signals. | |
4087 | (target_notice_signals): Remove. | |
4088 | (target_pass_signals): Add prototype. | |
4089 | * target.c (update_current_target): Remove to_notice_signals; | |
4090 | mention to_pass_signals. | |
4091 | (target_pass_signals): New function. | |
4092 | (debug_to_notice_signals): Remove. | |
4093 | (setup_target_debug): Do not install debug_to_notice_signals. | |
4094 | ||
4095 | * infrun.c (signal_pass): New global. | |
4096 | (resume): Call target_pass_signals. | |
4097 | (handle_inferior_event): Report all signals while stepping over | |
4098 | non-steppable watchpoint. Reset trap_expected to ensure breakpoints | |
4099 | are re-inserted when stepping over a signal handler. | |
4100 | (signal_cache_update): New function. | |
4101 | (signal_stop_update): Call it. | |
4102 | (signal_print_update): Likewise. | |
4103 | (signal_pass_update): Likewise. | |
4104 | (handle_command): Call signal_cache_update and target_pass_signals | |
4105 | instead of target_notice_signals. | |
4106 | (_initialize_infrun): Initialize signal_pass. | |
4107 | ||
4108 | * linux-nat.c (pass_mask): New global. | |
4109 | (linux_nat_pass_signals): New function. | |
4110 | (linux_nat_create_inferior): Report all signals initially. | |
4111 | (linux_nat_attach): Likewise. | |
4112 | (linux_nat_resume): Use pass_mask to decide whether to directly | |
4113 | handle an inferior signal. | |
4114 | (linux_nat_wait_1): Likewise. | |
4115 | (linux_nat_add_target): Install to_pass_signals callback. | |
4116 | ||
4117 | * nto-procfs.c (notice_signals): Remove. | |
4118 | (procfs_resume): Do not call notice_signals. | |
4119 | (procfs_notice_signals): Remove. | |
4120 | (procfs_pass_signals): New function. | |
4121 | (init_procfs_ops): Install to_pass_signals callback instead of | |
4122 | to_notice_signals callback. | |
4123 | (_initialize_procfs): Report all signals initially. | |
4124 | ||
4125 | * procfs.c (procfs_notice_signals): Remove. | |
4126 | (procfs_pass_signals): New function. | |
4127 | (procfs_target): Install to_pass_signals callback instead of | |
4128 | to_notice_signals callback. | |
4129 | (register_gdb_signals): Remove. | |
4130 | (procfs_debug_inferior): Report all signals initially. | |
4131 | (procfs_init_inferior): Remove redundant register_gdb_signals call. | |
4132 | ||
4133 | * remote.c (remote_pass_signals): Add numsigs and pass_signals | |
4134 | parameters; use them instead of calling signal_..._state routines. | |
4135 | (remote_notice_signals): Remove. | |
4136 | (remote_start_remote): Report all signals initially. | |
4137 | (remote_resume): Do not call remote_pass_signals. | |
4138 | (_initialize_remote): Install to_pass_signals callback instead of | |
4139 | to_notice_signals callback. | |
4140 | ||
46c6471b PA |
4141 | 2011-04-27 Pedro Alves <pedro@codesourcery.com> |
4142 | ||
4143 | * breakpoint.c (user_settable_breakpoint): Delete. | |
4144 | (user_breakpoint_p): Remove check on user_settable_breakpoint. | |
4145 | (delete_command): Check user_breakpoint_p instead of looking at | |
4146 | the breakpoint's type. | |
4147 | (disable_command): Ditto. | |
4148 | (enable_command): Ditto. | |
4149 | (delete_trace_command): Use user_breakpoint_p instead of looking | |
4150 | at the breakpoint number directly. When checking if there are | |
4151 | user visible tracepoints, in order to know whether to ask the user | |
4152 | for confirmation, check whether the breakpoint is actually a | |
4153 | tracepoint. | |
4154 | ||
f6d90398 VP |
4155 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
4156 | ||
4157 | * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix | |
4158 | compilation. | |
4159 | ||
8d3788bd VP |
4160 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
4161 | ||
4162 | MI breakpoint notifications. | |
4163 | ||
f33edef8 PP |
4164 | * annotate.c (breakpoint_changed): Adjust parameter type. |
4165 | * breakpoint.c (set_breakpoint_condition): Adjust to change | |
4166 | in breakpoint_modified type. | |
4167 | (breakpoint_set_commands): Likewise. | |
4168 | (do_map_commands_command): Likewise. | |
4169 | (bpstat_check_breakpoint_conditions): Notify that breakpoint has | |
4170 | changed after bumping hit count. | |
4171 | (bpstat_stop_status): Likewise. | |
4172 | (print_one_breakpoint_location): Don't wrap in tuple here. | |
4173 | (print_one_breakpoint): Always print individual locations. | |
4174 | For locations, use unnamed tuple. | |
4175 | (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint | |
4176 | has changed. | |
4177 | (create_catchpoint, create_syscall_event_catchpoint): Call | |
4178 | breakpoint_created obsever. | |
4179 | (mention): Don't call breakpoint_created observer. | |
4180 | (create_breakpoint_sal): Call breakpoint_created observer. | |
4181 | (create_breakpoint, watch_command_1): Likewise. | |
4182 | (create_ada_exception_breakpoint): Likewise. | |
4183 | (delete_breakpoint): Call breakpoint_deleted breakpoint. | |
4184 | (locations_are_equal): New. | |
4185 | (update_breakpoint_locations): If locations were changed, notify. | |
4186 | (set_ignore_count, disable_breakpoint, do_enable_breakpoint): | |
4187 | Call breakpoint_modified observer. | |
4188 | ||
4189 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
4190 | (mi_cmd_break_insert): Don't set observers for modify and delete. | |
4191 | * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New. | |
4192 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
4193 | (mi_breakpoint_modified): New. | |
4194 | (mi_interpreter_init): Hook the above. | |
4195 | * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications | |
4196 | while -break-* commands are executing. | |
4197 | * mi/mi-main.h (mi_suppress_breakpoint_notifications): New. | |
4198 | * mi/mi-out.c (struct ui_out_data): New field original_buffer. | |
4199 | (mi_redirect): New. | |
4200 | (mi_ui_out_impl): Hook in mi_redirect. | |
4201 | (mi_field_skip): True to the name, skip the field, don't output | |
4202 | a field with an empty value. | |
4203 | ||
4204 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
4205 | (gdbpy_breakpoint_deleted): Adjust. | |
4206 | * tui/tui-hooks.c (tui_event_create_breakpoint) | |
4207 | (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust. | |
8d3788bd | 4208 | |
a8f42b45 UW |
4209 | 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com> |
4210 | ||
4211 | * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype. | |
4212 | (procfs_remove_hw_watchpoint): Likewise. | |
4213 | ||
57e12211 TT |
4214 | 2011-04-26 Michael Walle <michael@walle.cc> |
4215 | ||
4216 | * remote.c (remote_start_remote): Ack packet after sending the | |
4217 | interrupt sequence. | |
4218 | ||
af96c192 YQ |
4219 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
4220 | ||
f33edef8 PP |
4221 | * linux-nat.c: Move common macros to ... |
4222 | Include linux-ptrace.h. | |
4223 | * common/linux-ptrace.h: ... here. New. | |
af96c192 | 4224 | |
3e03848b JK |
4225 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4226 | ||
4227 | * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by | |
4228 | !objfile_has_partial_symbols. New comment. | |
4229 | * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if | |
4230 | SYM_READ_PSYMBOLS is not present. Extend the comment. | |
4231 | * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment. | |
4232 | ||
1ae0d051 JK |
4233 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4234 | ||
4235 | * defs.h (ENUM_BITFIELD): Remove. | |
4236 | ||
03f2bd59 JK |
4237 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
4238 | Eli Zaretskii <eliz@gnu.org> | |
4239 | ||
4240 | * NEWS: Document the new gdbserver --once option. | |
4241 | ||
4161fbb0 JZ |
4242 | 2011-04-21 Jie Zhang <jzhang918@gmail.com> |
4243 | ||
4244 | * MAINTAINERS: Update my email address. | |
4245 | ||
bcb28afc PM |
4246 | 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4247 | ||
4248 | * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro. | |
4249 | (INTERMEDIATE_ENCODING): Change value to intermediate_encoding | |
4250 | function call if __STDC_ISO_10646__ macro is defined. | |
4251 | (intermediate_encoding): New prototype. | |
4252 | * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable | |
4253 | to generate compile time error for unsupported gdb_wchar_t size. | |
4254 | (ENDIAN_SUFFIX): New macro. | |
4255 | (intermediate_encoding): New function. | |
4256 | ||
7b08b9eb JK |
4257 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
4258 | ||
4259 | * ada-lang.c (struct add_partial_datum): Update the comment for | |
4260 | expand_partial_symbol_name. | |
4261 | (ada_add_partial_symbol_completions): Rename to ... | |
4262 | (ada_expand_partial_symbol_name): ... here, change return type, update | |
4263 | function comment, call symbol_completion_match instead of | |
4264 | symbol_completion_add. | |
4265 | (ada_make_symbol_completion_list): Use now expand_partial_symbol_names | |
4266 | and ada_expand_partial_symbol_name. | |
4267 | * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL | |
4268 | FILE_MATCHER. | |
4269 | (dw2_map_symbol_names): Remove. | |
4270 | (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names. | |
4271 | * psymtab.c (map_symbol_names_psymtab): Remove. | |
4272 | (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER. | |
4273 | Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check | |
4274 | order. | |
4275 | (psym_functions): Unlist map_symbol_names_psymtab. | |
4276 | (map_partial_symbol_names): Rename to ... | |
4277 | (expand_partial_symbol_names): ... here, change the FUN type, call | |
4278 | expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now. | |
4279 | * psymtab.h (map_partial_symbol_names): Rename to ... | |
4280 | (expand_partial_symbol_names): ... here, change the FUN type. | |
4281 | * symfile.h (struct quick_symbol_functions): Update the description of | |
4282 | expand_symtabs_matching. Remove map_symbol_names. | |
4283 | * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment. | |
4284 | (struct add_name_data): Update the comment for | |
4285 | expand_partial_symbol_name. | |
4286 | (add_partial_symbol_name): Rename to ... | |
4287 | (expand_partial_symbol_name): ... here. Replace | |
4288 | completion_list_add_name call by strncmp. | |
4289 | (default_make_symbol_completion_list_break_on): Use now | |
4290 | expand_partial_symbol_names and expand_partial_symbol_name. | |
4291 | * symtab.h (enum search_domain): New element ALL_DOMAIN. | |
4292 | ||
90476074 TT |
4293 | 2011-04-20 Tom Tromey <tromey@redhat.com> |
4294 | ||
4295 | * dwarf2read.c (save_gdb_index_command): Replace format | |
4296 | documentation with a pointer to the manual. | |
4297 | ||
c21236dc PA |
4298 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
4299 | ||
4300 | * regcache.c: Include remote.h. | |
4301 | (enum regcache_dump_what) <regcache_dump_remote>: New enum value. | |
4302 | (regcache_dump): Handle regcache_dump_remote. | |
4303 | (maintenance_print_remote_registers): New function. | |
4304 | (_initialize_regcache): Install "maint print remote-registers" | |
4305 | command. | |
4306 | * remote.c (map_regcache_remote_table): New function, factored out | |
4307 | from ... | |
4308 | (init_remote_state): ... here. | |
4309 | (remote_register_number_and_offset): New. | |
4310 | * remote.h (remote_register_number_and_offset): Declare. | |
4311 | ||
b78974c3 PA |
4312 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
4313 | ||
4314 | * regcache.c (get_thread_arch_regcache): If creating a regcache for | |
4315 | null_ptid, assume and allow a NULL address space, instead of | |
4316 | asking the target for the ptid's address space. | |
4317 | * infrun.c (ptid_is_pid): Remove assertion. | |
4318 | ||
7a9dd1b2 TT |
4319 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
4320 | ||
4321 | * windows-tdep.c (windows_xfer_shared_library): | |
4322 | * windows-nat.c (get_module_name, windows_make_so): | |
4323 | * v850-tdep.c (v850_handle_pushm): | |
4324 | * utils.c (null_cleanup, gdb_realpath): | |
4325 | * ui-out.c (get_next_header): | |
4326 | * tracepoint.c (clear_traceframe_info): | |
4327 | * symtab.c (lookup_symtab): | |
4328 | * serial.h (struct serial_ops): | |
4329 | * mipsread.c (read_alphacoff_dynamic_symtab): | |
4330 | * infcmd.c (print_return_value): | |
4331 | * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): | |
4332 | * f-exp.y (parse_number): | |
4333 | * exceptions.c (catch_exceptions): | |
4334 | * dummy-frame.c (dummy_frame_this_id): | |
4335 | * defs.h (struct cleanup): | |
4336 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): | |
4337 | * arm-tdep.c (arm_push_dummy_call): | |
4338 | * amd64-tdep.h (amd64_collect_xsave): | |
4339 | * amd64-tdep.c (amd64_collect_xsave): | |
4340 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): | |
4341 | * README (typing): Remove duplicate words. | |
4342 | * cli/cli-decode.c (lookup_cmd_composition): Add comma. | |
4343 | * infrun.c (siginfo_value_read): Fix typo. | |
4344 | * solib-frv.c (frv_fdpic_find_global_pointer): Likewise. | |
4345 | * top.c (source_line_number): Add comma. | |
4346 | ||
9941e0c5 MK |
4347 | 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com> |
4348 | ||
4349 | * thread.c (any_live_thread_of_process): Prioritize threads | |
4350 | that are not executing. | |
4351 | * gdbthread.h (any_live_thread_of_process): Update comment | |
4352 | as per above change. | |
4353 | ||
ed4b0e6a AS |
4354 | 2011-04-19 Andreas Schwab <schwab@linux-m68k.org> |
4355 | ||
4356 | * xcoffread.c (process_xcoff_symbol): Remove useless cast. | |
4357 | (scan_xcoff_symtab): Likewise. | |
4358 | ||
9b13a2db PM |
4359 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4360 | ||
4361 | * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment | |
4362 | inside if clause. | |
4363 | ||
1c6e1b0d PM |
4364 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4365 | Pedro Alves <pedro@codesourcery.com> | |
4366 | ||
4367 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local | |
4368 | variables to simplify code and avoid == operator at end of | |
4369 | line as this is against GNU coding standards. | |
4370 | ||
74de0234 PM |
4371 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4372 | ||
4373 | * solib-svr4.c (svr4_keep_data_in_core): Rename local variable | |
4374 | lm_name to name_lm to avoid conflict with lm_name function. | |
4375 | ||
b23518f0 PM |
4376 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4377 | ||
4378 | ARI fixes: Use only lowercase function name for static functions. | |
4379 | * nto-tdep.c (LM_ADDR): Rename to... | |
4380 | (lm_addr): New function name. | |
4381 | (nto_relocate_section_addresses): Adapt to change above. | |
4382 | * solib-sunos.c (LM_ADDR): Rename to... | |
4383 | (lm_addr): New function name. | |
4384 | (LM_NEXT): Rename to... | |
4385 | (lm_next): New function name. | |
4386 | (sunos_current_sos, sunos_relocate_section_addresses): Adapt to | |
4387 | function name changes above. | |
4388 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to... | |
4389 | (lm_addr_from_link_map): New function name. | |
4390 | (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
4391 | (has_lm_dynamic_from_link_map): New function name. | |
4392 | (LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
4393 | (lm_dynamic_from_link_map): New function name. | |
4394 | (LM_ADDR_CHECK): Rename to... | |
4395 | (lm_addr_check): New function name. | |
4396 | (LM_NEXT): Rename to... | |
4397 | (lm_next): New function name. | |
4398 | (LM_PREV): Rename to... | |
4399 | (lm_prev): New function name. | |
4400 | (LM_NAME): Rename to... | |
4401 | (lm_name): New function name. | |
4402 | (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to... | |
4403 | (ignore_first_link_map_entry): New function name. | |
4404 | (svr4_keep_data_in_core): Adapt to function name changes above. | |
4405 | (svr4_current_sos): Likewise. | |
4406 | (enable_break): Likewise. | |
4407 | (svr4_relocate_section_addresses): Likewise. | |
4408 | ||
1448a0a2 PM |
4409 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
4410 | ||
4411 | ARI cleanup. | |
4412 | * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of | |
4413 | sprintf. Simplify code and avoid loosing memory. | |
4414 | (xtensa_register_reggroup_p): Extract assignment out of IF clause. | |
4415 | (call0_frame_cache): Remove && operator from end of line. | |
4416 | ||
02835898 JK |
4417 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4418 | ||
4419 | Fix libraries displacement if they change whether they were prelinked. | |
4420 | * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer | |
4421 | does not match. Comment why. | |
4422 | ||
9a845ea2 JK |
4423 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4424 | ||
4425 | * corelow.c: Include wrapper.h. | |
4426 | (core_open): Call now gdb_target_find_new_threads. | |
4427 | * wrapper.c: Include target.h. | |
4428 | (gdb_target_find_new_threads): New. | |
4429 | * wrapper.h (gdb_target_find_new_threads): New declaration. | |
4430 | ||
254f582e JK |
4431 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4432 | ||
4433 | * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID | |
4434 | even if !TARGET_HAS_EXECUTION. | |
4435 | ||
63524580 JK |
4436 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4437 | ||
4438 | Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip. | |
4439 | * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to | |
4440 | bfd_get_synthetic_symtab. | |
4441 | * jit.c (jit_register_code): Pass NULL to the new parameter parent. | |
4442 | * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new | |
4443 | parameter parent, remove the call to add_separate_debug_objfile. | |
4444 | * solib.c (solib_read_symbols): Pass NULL to the new parameter parent. | |
4445 | * symfile-mem.c (symbol_file_add_from_memory): Likewise. | |
4446 | * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter | |
4447 | parent, new comment for it, call add_separate_debug_objfile for it. | |
4448 | (symbol_file_add_separate): Pass objfile as the parameter parent, | |
4449 | remove the call to add_separate_debug_objfile. | |
4450 | (symbol_file_add_from_bfd): New parameter parent, pass it. | |
4451 | (symbol_file_add): Pass NULL to the new parameter parent. | |
4452 | * symfile.h (symbol_file_add_from_bfd): New parameter parent. | |
4453 | ||
90359a16 JK |
4454 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4455 | ||
4456 | * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are | |
4457 | BSF_SYNTHETIC. | |
4458 | ||
626e7282 JK |
4459 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4460 | ||
4461 | Fix Python access to inlined frames. | |
4462 | * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block. | |
4463 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
4464 | ||
cf31e6f9 TT |
4465 | 2011-04-15 Tom Tromey <tromey@redhat.com> |
4466 | ||
4467 | * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length. | |
4468 | ||
c8d895f1 GB |
4469 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
4470 | ||
4471 | * MAINTAINERS: Add myself to write-after-approval section. | |
4472 | ||
56a9aa1d MF |
4473 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
4474 | ||
4475 | * remote-sim.c (sim_command_completer): New function. | |
4476 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
4477 | ||
ba770c9c TJB |
4478 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4479 | ||
4480 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
4481 | (print_it_exception_catchpoint): ... this. | |
4482 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
4483 | for print_it_exception_catchpoint. | |
4484 | ||
51bf2553 EBM |
4485 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
4486 | ||
4487 | * MAINTAINERS: Add myself for write after approval privileges. | |
4488 | ||
d242658c MP |
4489 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
4490 | ||
4491 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
4492 | ||
4a4106ca TJB |
4493 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4494 | ||
4495 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
4496 | ||
26063d49 TJB |
4497 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4498 | ||
4499 | * breakpoint.c (save_breakpoints): Verify whether | |
4500 | breakpoint_ops.print_recreate is defined before calling it. | |
4501 | ||
7782b183 GB |
4502 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
4503 | ||
4504 | Fix failure with --enable-maintainer-mode. | |
4505 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
4506 | ||
e8930875 JK |
4507 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
4508 | ||
4509 | Code cleanup. | |
4510 | * symtab.c (search_symbols): Reorder the KIND description in the | |
4511 | function comment. Remove the unused 4th element of types, types2, | |
4512 | types3 and types4. New gdb_assert on KIND. | |
4513 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
4514 | New gdb_assert on KIND. | |
4515 | * symtab.h (enum search_domain): New warning in the enum comment. | |
4516 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
4517 | TYPES_DOMAIN. | |
4518 | ||
b4f2f049 JK |
4519 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
4520 | ||
4521 | Fix crash of gdb save-index on a STABS file. | |
4522 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
4523 | PSYMTABS_ADDRMAP. | |
4524 | ||
60d5a603 JK |
4525 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
4526 | ||
4527 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
4528 | * dwarf2read.c: Include ctype.h. | |
4529 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
4530 | functions. | |
4531 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
4532 | dwarf2_default_access_attribute. Restructure setting accessibility | |
4533 | vs. virtuality. | |
4534 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
4535 | is_private and is_protected by calling | |
4536 | dwarf2_default_access_attribute. | |
4537 | ||
e0f68161 KB |
4538 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
4539 | ||
4540 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
4541 | to the initialization. | |
4542 | ||
2e1aae43 SE |
4543 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
4544 | ||
4545 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
4546 | initalization. | |
4547 | ||
c6ca3dab PM |
4548 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
4549 | ||
4550 | Remove support for old Cygwin 1.5 versions. | |
4551 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
4552 | function on old Cygwin version. | |
4553 | * windows-nat.c: Remove cygwin version check and always define | |
4554 | __USEWIDE for Cygwin compilation. | |
4555 | ||
bd18283a YQ |
4556 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
4557 | ||
4558 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
4559 | and TO. | |
4560 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
4561 | (arm_copy_svc): Remove parameters INSN and TO. | |
4562 | (decode_svc_copro): Update caller. | |
4563 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
4564 | from function pointer `copy_svc_os'. | |
4565 | ||
8c8dba6d YQ |
4566 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
4567 | ||
4568 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
4569 | LR for ARM and Thumb. | |
4570 | ||
59d7bcaf JK |
4571 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
4572 | ||
4573 | Code cleanup. | |
4574 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
4575 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
4576 | in the function comment, a new note on values compatibility. | |
4577 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
4578 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
4579 | ||
e7db58ea TJB |
4580 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4581 | ||
4582 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
4583 | Set it based on the memory region referenced in the condition | |
4584 | expression. Update all callers. | |
4585 | ||
9f743ef6 JK |
4586 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
4587 | ||
4588 | Fix crash regression on systems featuring .gdb_index. | |
4589 | * objfiles.c (free_objfile): Move the | |
4590 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
4591 | Extend the comment for objfile_free_data. | |
4592 | ||
9182c5bc JK |
4593 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
4594 | ||
4595 | Fix regression of displaying the debug format. | |
4596 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
4597 | subfile. | |
4598 | ||
04bd08de TT |
4599 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4600 | ||
4601 | * cli/cli-interp.c (struct captured_execute_command_args): | |
4602 | Remove. | |
4603 | (do_captured_execute_command): Remove. | |
4604 | (safe_execute_command): Use TRY_CATCH. | |
4605 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
4606 | Remove. | |
4607 | (wrapped_read_command_file): Remove. | |
4608 | (script_from_file): Use TRY_CATCH. | |
4609 | * exceptions.c (catch_exception): Remove. | |
4610 | * exceptions.h (catch_exception): Remove. | |
4611 | (deprecated_throw_reason): Update comment. | |
4612 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
4613 | argument to 'context'. | |
4614 | (mi_execute_command): Use TRY_CATCH. | |
4615 | * remote.c (struct start_remote_args): Remove. | |
4616 | (remote_start_remote): Update; change arguments. | |
4617 | (remote_open_1): Use TRY_CATCH. | |
4618 | ||
58438ac1 TT |
4619 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4620 | ||
4621 | * tracepoint.c (scope_info): Update. | |
4622 | * symtab.c (decode_line_spec): Update. | |
4623 | * python/python.c (gdbpy_decode_line): Update. | |
4624 | * linespec.h (decode_line_1): Update. | |
4625 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
4626 | (decode_compound, find_method, symtab_from_filename) | |
4627 | (decode_variable): Likewise. | |
4628 | * cli/cli-cmds.c (edit_command): Update. | |
4629 | (list_command): Update. | |
4630 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
4631 | argument. | |
4632 | (create_breakpoint): Update. | |
4633 | (until_break_command): Update. | |
4634 | (addr_string_to_sals): Update. | |
4635 | (decode_line_spec_1): Update. | |
4636 | ||
b78a6381 TT |
4637 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4638 | ||
4639 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
4640 | (do_captured_parse_breakpoint): Remove. | |
4641 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
4642 | Use TRY_CATCH directly. | |
4643 | ||
00174a86 TT |
4644 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4645 | ||
4646 | * symtab.h (free_symtab): Remove. | |
4647 | (forget_cached_source_info_for_objfile): Declare. | |
4648 | * symmisc.c (free_symtab): Remove. | |
4649 | * source.c (forget_cached_source_info_for_objfile): New function. | |
4650 | (forget_cached_source_info): Use it. | |
4651 | * objfiles.c (free_objfile): Simplify check before calling | |
4652 | clear_current_source_symtab_and_line. Call | |
4653 | forget_cached_source_info_for_objfile. | |
4654 | ||
30cc903e TT |
4655 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4656 | ||
4657 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
4658 | (new_symtab): Don't set `free_code' on symtab. | |
4659 | (new_linetable): Properly handle size==0. | |
4660 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
4661 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
4662 | free_func. | |
4663 | * jv-lang.c (struct jv_per_objfile_data): New. | |
4664 | (jv_per_objfile_free): Free the data. | |
4665 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
4666 | (get_java_class_symtab): Set the `dict' field on the | |
4667 | jv_per_objfile_data. | |
4668 | (free_class_block): Remove. | |
4669 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
4670 | the symtab. | |
4671 | ||
0c2e6019 TT |
4672 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4673 | ||
4674 | * symfile.c (reread_symbols): Update. | |
4675 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
4676 | field. | |
4677 | * objfiles.c (allocate_objfile): Update. | |
4678 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
4679 | declare. | |
4680 | * cp-namespace.c (lookup_symbol_file): Don't call | |
4681 | lookup_possible_namespace_symbol. | |
4682 | (initialize_namespace_symtab, get_possible_namespace_block) | |
4683 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
4684 | (check_possible_namespace_symbols_loop) | |
4685 | (check_one_possible_namespace_symbol) | |
4686 | (lookup_possible_namespace_symbol): Remove. | |
4687 | (maintenance_cplus_namespace): Replace with notice. | |
4688 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
4689 | ||
554d387d TT |
4690 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4691 | ||
4692 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
4693 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
4694 | * symmisc.c (free_symtab): Don't free debugformat. | |
4695 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
4696 | (record_debugformat, record_producer): Document. | |
4697 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
4698 | names on obstack. | |
4699 | (end_symtab): Don't free debugformat and producer fields. | |
4700 | (record_debugformat): Don't call xstrdup. | |
4701 | (record_producer): Likewise. | |
4702 | ||
d4d4db8a TT |
4703 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4704 | ||
4705 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
4706 | (source_line_charpos, source_charpos_line): Remove. | |
4707 | ||
8903c50d TT |
4708 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
4709 | ||
4710 | * symtab.h (domain_enum): Split in two... | |
4711 | (enum search_domain): New. | |
4712 | (search_symbols): Update. | |
4713 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
4714 | redundant declarations. | |
4715 | (search_symbols): Change 'kind' argument to search_domain. | |
4716 | Update. | |
4717 | (print_symbol_info): Likewise. | |
4718 | (symtab_symbol_info): Likewise. | |
4719 | * symfile.h (struct quick_symbol_functions) | |
4720 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
4721 | <expand_symtabs_matching>: Likewise. | |
4722 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
4723 | (expand_symtabs_matching_via_partial): Update. | |
4724 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
4725 | (dw2_expand_symtabs_for_function): Update. | |
4726 | * block.h: Moved anonymous enum... | |
4727 | * defs.h (enum block_enum): ... here. Now named. | |
4728 | ||
d9351f5f | 4729 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
4730 | ||
4731 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
4732 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
4733 | ||
d6e00af6 JB |
4734 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
4735 | ||
4736 | * NEWS: Create a new section for the next release branch. | |
4737 | Rename the section of the current branch, now that it has | |
4738 | been cut. | |
4739 | ||
2b9e5ea6 UW |
4740 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
4741 | ||
4742 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
4743 | for "fpscr" in target description. | |
4744 | ||
0cf03b49 JK |
4745 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4746 | ||
4747 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
4748 | initialize it. Delay HASH initialization. Strip the part after open | |
4749 | parenthesis for languages with qualifiers. Call do_cleanups. | |
4750 | ||
5d901a73 TT |
4751 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
4752 | ||
4753 | * utils.c (report_command_stats): Don't print `-' for negative | |
4754 | number. | |
4755 | ||
b0dd7688 JB |
4756 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
4757 | ||
4758 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
4759 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
4760 | typedefs. | |
4761 | ||
956a9fb9 JB |
4762 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
4763 | ||
4764 | * breakpoint.h (bpdisp_text): Add declaration. | |
4765 | * breakpoint.c (bpdisp_text): Make non-static. | |
4766 | * ada-lang.c: #include "mi/mi-common.h". | |
4767 | (print_it_exception): Rewrite to improve GDB/MI output. | |
4768 | ||
3352110b PA |
4769 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
4770 | ||
4771 | * arm-tdep.h (struct address_space): Add forward declaration. | |
4772 | ||
18819fa6 UW |
4773 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
4774 | ||
4775 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
4776 | * arm-tdep.c (arm_override_mode): New global. | |
4777 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
4778 | execution mode heuristics. | |
4779 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
4780 | second single-step breakpoint if needed, using | |
4781 | arm_insert_single_step_breakpoint. | |
4782 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
4783 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
4784 | (arm_get_next_pc): Encode execution mode in return value. Call | |
4785 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
4786 | (arm_insert_single_step_breakpoint): New function. | |
4787 | (arm_software_single_step): Call it. | |
4788 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
4789 | argument to return execution mode of sigreturn target. | |
4790 | (arm_linux_syscall_next_pc): Use it. | |
4791 | (arm_linux_copy_svc): Update call. | |
4792 | (arm_linux_software_single_step): Call | |
4793 | arm_insert_single_step_breakpoint. | |
4794 | ||
a6e293d1 JK |
4795 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
4796 | ||
4797 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
4798 | the comment. | |
4799 | ||
a4c8e806 TT |
4800 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
4801 | ||
4802 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
4803 | errors from iterator. | |
4804 | ||
df5c6c50 JK |
4805 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
4806 | ||
4807 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
4808 | struct linkage name twice. | |
4809 | ||
1dae3efc TT |
4810 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
4811 | ||
4812 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
4813 | missing ">" to message. | |
4814 | ||
f4f7ab05 TT |
4815 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
4816 | ||
4817 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
4818 | 'return'. | |
4819 | ||
fcf250e2 UW |
4820 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
4821 | ||
4822 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
4823 | if neither saved value nor register available (e.g. signal frame). | |
4824 | ||
ee6436e3 TJB |
4825 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4826 | ||
4827 | * macroexp.c (expand): Avoid uninitialized variable | |
4828 | compiler warning. | |
4829 | ||
423f41a5 TJB |
4830 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4831 | ||
4832 | * breakpoint.c (break_range_command): Fix typo in comment. | |
4833 | ||
f1310107 TJB |
4834 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4835 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
4836 | ||
4837 | Implement support for PowerPC BookE ranged breakpoints. | |
4838 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
4839 | * breakpoint.h (struct bp_target_info) <length>: New member | |
4840 | variable. | |
4841 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
4842 | instead of struct breakpoint as argument, and also add ASPACE | |
4843 | and BP_ADDR arguments. Update all callers. | |
4844 | (struct breakpoint_ops) <print_one_detail>: New method. | |
4845 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
4846 | * breakpoint.c (breakpoint_location_address_match): Add function | |
4847 | prototype. | |
4848 | (insert_bp_location): Set bl->target_info.length. | |
4849 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
4850 | (moribund_breakpoint_here_p): Likewise. | |
4851 | (regular_breakpoint_inserted_here_p): Likewise. | |
4852 | (breakpoint_thread_match): Likewise. | |
4853 | (bpstat_stop_status): Likewise. | |
4854 | (bpstat_check_location): Move call to | |
4855 | breakpoint_ops.breakpoint_hit to the top. | |
4856 | (print_one_breakpoint_location): Call | |
4857 | breakpoint_ops.print_one_detail if available. | |
4858 | (breakpoint_address_match_range): New function. | |
4859 | (breakpoint_location_address_match): Likewise. | |
4860 | (breakpoint_locations_match): Compare the length field of the | |
4861 | locations too. | |
4862 | (hw_breakpoint_used_count): Count resources used by all locations | |
4863 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
4864 | available. | |
4865 | (breakpoint_hit_ranged_breakpoint): New function. | |
4866 | (resources_needed_ranged_breakpoint): Likewise. | |
4867 | (print_it_ranged_breakpoint): Likewise. | |
4868 | (print_one_ranged_breakpoint): Likewise. | |
4869 | (print_one_detail_ranged_breakpoint): Likewise. | |
4870 | (print_mention_ranged_breakpoint): Likewise. | |
4871 | (print_recreate_ranged_breakpoint): Likewise. | |
4872 | (ranged_breakpoint_ops): New structure. | |
4873 | (find_breakpoint_range_end): New function. | |
4874 | (break_range_command): Likewise. | |
4875 | (delete_breakpoint): Free addr_string_range_end. | |
4876 | (update_breakpoint_locations): Add SALS_END argument. Update | |
4877 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
4878 | is given. Call breakpoint_locations_match instead of | |
4879 | breakpoint_address_match. | |
4880 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
4881 | ranged breakpoint. | |
4882 | (_initialize_breakpoint): Register break-range command. | |
4883 | * defs.h (print_core_address): Add function prototype. | |
4884 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
4885 | function. | |
4886 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
4887 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
4888 | (_initialize_ppc_linux_nat): Initialize | |
4889 | to_ranged_break_num_registers. | |
4890 | * target.c (update_current_target): Add comment about | |
4891 | to_ranged_break_num_registers. | |
4892 | (target_ranged_break_num_registers): New function. | |
4893 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
4894 | New method. | |
4895 | (target_ranged_break_num_registers): Add function prototype. | |
4896 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
4897 | * utils.c (print_core_address): ... here. | |
4898 | ||
02d20e4a UW |
4899 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
4900 | ||
4901 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
4902 | variable compiler warning. | |
4903 | ||
ef23e705 TJB |
4904 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4905 | ||
4906 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
4907 | code from here ... | |
4908 | (re_set_breakpoint): ... to here ... | |
4909 | (addr_string_to_sals): ... and here. | |
4910 | ||
311e6ab3 PM |
4911 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
4912 | ||
4913 | * Makefile.in (SFILES): Add missing C sources. | |
4914 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
4915 | Add missing headers. | |
4916 | ||
acd1d99c MF |
4917 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
4918 | ||
4919 | * .gitignore: New file. | |
4920 | ||
66ee2731 MF |
4921 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
4922 | ||
4923 | * NEWS: Mention new cfi device simulation. | |
4924 | ||
53832f31 TT |
4925 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
4926 | ||
4927 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
4928 | otherwise anonymous types. | |
4929 | (dwarf2_name): Likewise. | |
4930 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
4931 | type logic. Call error if j==-1. | |
4932 | ||
09b58708 JK |
4933 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
4934 | ||
4935 | Fix false GCC warning. | |
4936 | * infcall.c (find_function_addr): Initialize funaddr. | |
4937 | ||
6023c606 PM |
4938 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
4939 | ||
4940 | Fix mingw compilation with --enable-targets=all. | |
4941 | * remote-mips.c (gdb_usleep.h): Include header. | |
4942 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
4943 | ||
0e30163f JK |
4944 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4945 | ||
4946 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
4947 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
4948 | bp_gnu_ifunc_resolver_return. | |
4949 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
4950 | the loop. Support bp_gnu_ifunc_resolver and | |
4951 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
4952 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
4953 | breakpoints. | |
4954 | (bptype_string, print_one_breakpoint_location): Support | |
4955 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
4956 | (user_settable_breakpoint): Return true also for | |
4957 | bp_gnu_ifunc_resolver. | |
4958 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
4959 | bp_gnu_ifunc_resolver_return. | |
4960 | (set_breakpoint_location_function): New parameter explicit_loc, | |
4961 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
4962 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
4963 | EXPLICIT_LOC is not set. | |
4964 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
4965 | set_breakpoint_location_function. | |
4966 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
4967 | set_breakpoint_location_function. | |
4968 | (mention): Support bp_gnu_ifunc_resolver and | |
4969 | bp_gnu_ifunc_resolver_return. | |
4970 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
4971 | set_breakpoint_location_function. | |
4972 | (update_breakpoint_locations): Remove static. | |
4973 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
4974 | bp_gnu_ifunc_resolver_return. | |
4975 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
4976 | bp_gnu_ifunc_resolver_return. | |
4977 | (update_breakpoint_locations): New declaration. | |
4978 | * elfread.c: Include gdbthread.h and regcache.h. | |
4979 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
4980 | functions. | |
4981 | (elf_gnu_ifunc_fns): Install them. | |
4982 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
4983 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
4984 | (stub_gnu_ifunc_fns): Install them. | |
4985 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
4986 | and gnu_ifunc_resolver_return_stop. | |
4987 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
4988 | ||
07be84bf JK |
4989 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4990 | ||
4991 | STT_GNU_IFUNC reader implementation. | |
4992 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
4993 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
4994 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
4995 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
4996 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
4997 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
4998 | (elf_gnu_ifunc_resolve_addr): New. | |
4999 | (elf_symfile_read): Call elf_rel_plt_read. | |
5000 | (elf_gnu_ifunc_fns): New. | |
5001 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
5002 | Install elf_gnu_ifunc_fns. | |
5003 | * infcall.c (find_function_return_type): New function. | |
5004 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
5005 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
5006 | (stub_gnu_ifunc_resolve_name): New functions. | |
5007 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
5008 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
5009 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
5010 | ||
300f8e10 JK |
5011 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5012 | ||
5013 | Code cleanup for later STT_GNU_IFUNC support. | |
5014 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
5015 | dereferences for it. Move VALUE_TYPE initialization later. | |
5016 | ||
11c81455 JK |
5017 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5018 | ||
5019 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
5020 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
5021 | (clear_pc_function_cache): Clear it. | |
5022 | (find_pc_partial_function): Rename to ... | |
5023 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
5024 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
5025 | (find_pc_partial_function): New wrapper for this function. | |
5026 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
5027 | ||
0875794a JK |
5028 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5029 | ||
5030 | GDB internal type support for STT_GNU_IFUNC. | |
5031 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
5032 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
5033 | BSF_GNU_INDIRECT_FUNCTION. | |
5034 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
5035 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
5036 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
5037 | nodebug_got_plt_symbol. | |
5038 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
5039 | (TYPE_GNU_IFUNC): New. | |
5040 | (struct main_type): New field flag_gnu_ifunc. | |
5041 | (struct builtin_type): New field builtin_func_func. | |
5042 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
5043 | nodebug_got_plt_symbol. | |
5044 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
5045 | (in_gnu_ifunc_stub): New. | |
5046 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
5047 | mst_text_gnu_ifunc. | |
5048 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
5049 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
5050 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
5051 | in_gnu_ifunc_stub. | |
5052 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
5053 | * symtab.c (search_symbols): Likewise. | |
5054 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
5055 | and mst_slot_got_plt. | |
5056 | (in_gnu_ifunc_stub): New declaration. | |
5057 | ||
d0fb5eae JK |
5058 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5059 | ||
5060 | Support a ring of related breakpoints. | |
5061 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
5062 | other functions, add gdb_assert. | |
5063 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
5064 | watchpoint_del_at_next_stop. | |
5065 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
5066 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
5067 | (set_raw_breakpoint_without_location): Initialize ring in | |
5068 | related_breakpoint. | |
5069 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
5070 | watchpoint_del_at_next_stop. | |
5071 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
5072 | ||
9cded63f TT |
5073 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
5074 | ||
5075 | PR symtab/12441: | |
5076 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
5077 | with `language_minimal'. | |
5078 | ||
467d42c4 UW |
5079 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
5080 | ||
5081 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
5082 | instead of checking for STT_ARM_TFUNC symbol type. | |
5083 | ||
62853458 TT |
5084 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
5085 | ||
5086 | * linespec.c (symbol_found): Restore line-based result for | |
5087 | non-LOC_LABEL symbols. | |
5088 | ||
a7417d46 KT |
5089 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
5090 | ||
5091 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
5092 | instead of strcmp for comparison. | |
5093 | (tui_source_is_displayed): Likewise. | |
5094 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
5095 | ||
55f1336d TT |
5096 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
5097 | ||
f33edef8 PP |
5098 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in |
5099 | complaint. | |
5100 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
5101 | (find_partial_die_in_comp_unit): Likewise in comment. | |
5102 | (read_attribute_value): Likewise. | |
5103 | (lookup_die_type): Likewise. | |
5104 | (dwarf_form_name): Likewise. | |
5105 | (dump_die_shallow): Likewise. | |
5106 | (follow_die_ref_or_sig): Likewise. | |
55f1336d | 5107 | |
9ef07c8c TT |
5108 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
5109 | ||
5110 | PR breakpoints/11816: | |
5111 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
5112 | (decode_compound): Update. | |
5113 | (find_function_symbol): New function. | |
5114 | (decode_dollar): Update. | |
5115 | (decode_label): Add 'function_symbol' parameter. Handle | |
5116 | function-relative labels. | |
5117 | (decode_variable): Update. | |
5118 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
5119 | not its line. Set `special_display' and canonical name for | |
5120 | labels. | |
5121 | ||
56435ebe TT |
5122 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
5123 | ||
5124 | * linespec.h (struct linespec_result) <special_display>: New | |
5125 | field. | |
5126 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
5127 | field. | |
5128 | * breakpoint.c (print_breakpoint_location): Respect | |
5129 | display_canonical. | |
5130 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
5131 | (create_breakpoints_sal): Update. | |
5132 | (create_breakpoint): Update. | |
5133 | ||
7efd8fc2 TT |
5134 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
5135 | ||
5136 | * symtab.c (decode_line_spec): Update. | |
5137 | * linespec.c (build_canonical_line_spec): Change type of | |
5138 | 'canonical'. | |
5139 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
5140 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
5141 | (symbol_found): Likewise. | |
5142 | (init_linespec_result): New function. | |
5143 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
5144 | <canonical_p>: New field, replaces addr_string_p. | |
5145 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
5146 | 'addr_string'. | |
5147 | (parse_breakpoint_sals): Likewise. | |
5148 | (do_captured_parse_breakpoint): Update. | |
5149 | (create_breakpoint): Use struct linespec_result. | |
5150 | (until_break_command): Update. | |
5151 | (breakpoint_re_set_one): Update. | |
5152 | (decode_line_spec_1): Update. | |
5153 | * linespec.h (struct linespec_result): New. | |
5154 | (init_linespec_result): Declare. | |
5155 | ||
788c8b10 PA |
5156 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
5157 | ||
5158 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
5159 | given raw register, mark it as unavailable. | |
5160 | ||
0ba1096a KT |
5161 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
5162 | ||
5163 | * breakpoint.c (clear_command): Use filename_cmp | |
5164 | instead of strcmp for comparison. | |
5165 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
5166 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
5167 | checking just for slash. | |
5168 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
5169 | strrchr and filename_cmp instead of strcmp for filenames. | |
5170 | (add_old_header_file): Use filename_cmp | |
5171 | instead of strcmp for comparison. | |
5172 | * exec.c (exec_set_section_address): Likewise. | |
5173 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
5174 | (macro_lookup_inclusion): Likewise. | |
5175 | * elfread.c (_initialize_elfread): Likewise. | |
5176 | (elfstab_offset_sections): Likewise. | |
5177 | (elfstab_offset_sections): Use lbasename instead of | |
5178 | strrchr. | |
5179 | * mdebugread.c (parse_partial_symbols): Likewise. | |
5180 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
5181 | str(n)cmp for comparison. | |
5182 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
5183 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
5184 | * solib.c (solib_read_symbols): Likewise. | |
5185 | (reload_shared_libraries_1): Likewise. | |
5186 | * symmisc.c (maintenance_print_symbols): Likewise. | |
5187 | * symfile.c (separate_debug_file_exists): Likewise. | |
5188 | (reread_symbols): Likewise. | |
5189 | (find_separate_debug_file_by_debuglink): Likewise. | |
5190 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
5191 | * source.c (add_path): Likewise. | |
5192 | * symtab.c (filename_seen): Likewise. | |
5193 | (file_matches): Likewise. | |
5194 | (print_symbol_info): Likewise. | |
5195 | (maybe_add_partial_symtab_filename): Likewise. | |
5196 | (make_source_files_completion_list): Likewise. | |
5197 | * xml-syscall.c (init_sysinfo): Likewise. | |
5198 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
5199 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
5200 | ||
dd90784c JK |
5201 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
5202 | ||
5203 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
5204 | label abort_expression. | |
5205 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
5206 | DWARF_VALUE_OPTIMIZED_OUT. | |
5207 | ||
3167638f JK |
5208 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
5209 | ||
5210 | Code cleanup. | |
5211 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
5212 | to linkage_name. Invert its value. Update the function comment. | |
5213 | (c_type_print_varspec_suffix): Invert it at the caller. | |
5214 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
5215 | ||
ce406537 PA |
5216 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
5217 | ||
5218 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
5219 | errors when reading the `stop_pc'. | |
5220 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
5221 | get_frame_pc. | |
5222 | ||
da5d4055 PM |
5223 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
5224 | ||
5225 | * NEWS: Document gdb.Write stream keyword. | |
5226 | ||
29e0eb9c JK |
5227 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
5228 | ||
5229 | Revert: | |
5230 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
5231 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
5232 | (dwarf2_add_field): Fix new_field->accessibility for | |
5233 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
5234 | ||
05775840 PM |
5235 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
5236 | ||
f33edef8 | 5237 | PR python/12183 |
05775840 PM |
5238 | |
5239 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
5240 | other error classes. Do not print stack trace. | |
5241 | ||
a0cb7835 JK |
5242 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
5243 | ||
5244 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
5245 | (dwarf2_add_field): Fix new_field->accessibility for | |
5246 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
5247 | ||
d19f7eee UW |
5248 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
5249 | ||
5250 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
5251 | encountering a load via a non-SP register. | |
5252 | ||
4a2fbb50 UW |
5253 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
5254 | ||
5255 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
5256 | field in returned unwinder. | |
5257 | ||
3489610d JB |
5258 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
5259 | ||
5260 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
5261 | ||
8c1a34e7 JB |
5262 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
5263 | ||
5264 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
5265 | of xmalloc. | |
5266 | ||
8fbca658 PA |
5267 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
5268 | ||
5269 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
5270 | register failed. | |
5271 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
5272 | an unwind stop reason. | |
5273 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
5274 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
5275 | UNWIND_UNAVAILABLE>: New. | |
5276 | * inline-frame.c (inline_frame_unwind): Install | |
5277 | default_frame_unwind_stop_reason. | |
5278 | * frame-unwind.c: Include "exceptions.h". | |
5279 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
5280 | (default_frame_unwind_stop_reason): New. | |
5281 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
5282 | (default_frame_unwind_stop_reason): Declare. | |
5283 | (struct frame_unwind) <stop_reason>: New function pointer. | |
5284 | ||
5285 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
5286 | * dwarf2-frame.c: Include exceptions.h. | |
5287 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
5288 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
5289 | computing the CFA. If such an error was thrown, set | |
5290 | unavailable_retaddr. | |
5291 | (dwarf2_frame_unwind_stop_reason): New. | |
5292 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
5293 | unavailable. | |
5294 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
5295 | (dwarf2_signal_frame_unwind): Ditto. | |
5296 | ||
5297 | * amd64-tdep.c: Include "exceptions.h". | |
5298 | (struct amd64_frame_cache): New field "base_p". | |
5299 | (amd64_init_frame_cache): Clear it. | |
5300 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
5301 | Avoid reading registers with functions that throw if the register | |
5302 | is not necessary to compute the frame base. | |
5303 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
5304 | swallowing NOT_AVAILABLE_ERROR. | |
5305 | (amd64_frame_unwind_stop_reason): New. | |
5306 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
5307 | was unavailable. | |
5308 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
5309 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
5310 | base_p if the frame base was computable. | |
5311 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
5312 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
5313 | frame base was unavailable. | |
5314 | (amd64_sigtramp_frame_unwind): Install | |
5315 | amd64_sigtramp_frame_unwind_stop_reason. | |
5316 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
5317 | base_p if the frame base was computable. | |
5318 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
5319 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
5320 | frame base was unavailable. | |
5321 | (amd64_epilogue_frame_unwind): Install | |
5322 | amd64_epilogue_frame_unwind_stop_reason. | |
5323 | * i386-tdep.c: Include "exceptions.h". | |
5324 | (struct i386_frame_cache): New field "base_p". | |
5325 | (i386_init_frame_cache): Clear it. | |
5326 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
5327 | Avoid reading registers with functions that throw if the register | |
5328 | is not necessary to compute the frame base. | |
5329 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
5330 | swallowing NOT_AVAILABLE_ERROR. | |
5331 | (i386_frame_unwind_stop_reason): New. | |
5332 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
5333 | unavailable. | |
5334 | (i386_frame_prev_register): Handle unavailable SP. | |
5335 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
5336 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
5337 | base_p if the frame base was computable. | |
5338 | (i386_epilogue_frame_unwind_stop_reason): New. | |
5339 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
5340 | base was unavailable. | |
5341 | (i386_epilogue_frame_unwind): Install | |
5342 | i386_epilogue_frame_unwind_stop_reason. | |
5343 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
5344 | base_p if the frame base was computable. | |
5345 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
5346 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
5347 | base was unavailable. | |
5348 | (i386_sigtramp_frame_unwind): Install | |
5349 | i386_sigtramp_frame_unwind_stop_reason. | |
5350 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
5351 | type's size, not the register's. | |
5352 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
5353 | ||
5354 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
5355 | default_frame_unwind_stop_reason. | |
5356 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
5357 | (alpha_heuristic_frame_unwind): Ditto. | |
5358 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
5359 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
5360 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
5361 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
5362 | Ditto. | |
5363 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
5364 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
5365 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
5366 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
5367 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
5368 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
5369 | (hppa_stub_frame_unwind): Ditto. | |
5370 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
5371 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
5372 | (ia64_libunwind_frame_unwind) | |
5373 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
5374 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
5375 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
5376 | * m32c-tdep.c (m32c_unwind): Ditto. | |
5377 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
5378 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
5379 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
5380 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
5381 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
5382 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
5383 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
5384 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
5385 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
5386 | (mips_stub_frame_unwind): Ditto. | |
5387 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
5388 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
5389 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
5390 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
5391 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
5392 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
5393 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
5394 | (s390_sigtramp_frame_unwind): Ditto. | |
5395 | * score-tdep.c (score_prologue_unwind): Ditto. | |
5396 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
5397 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
5398 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
5399 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
5400 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
5401 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
5402 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
5403 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
5404 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
5405 | (sparc64obsd_trapframe_unwind): Ditto. | |
5406 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
5407 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
5408 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
5409 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
5410 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
5411 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
5412 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
5413 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
5414 | ||
f23d1b92 PA |
5415 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5416 | ||
5417 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
5418 | there's always a frame. Use get_frame_pc_if_available instead of | |
5419 | get_frame_pc, and if there's no PC available, don't look up a | |
5420 | symtab. | |
5421 | ||
1d4f5741 PA |
5422 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5423 | ||
5424 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
5425 | unavailable PC. | |
5426 | ||
dba09041 PA |
5427 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5428 | ||
5429 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
5430 | gracefully. | |
5431 | ||
9a26e44c PA |
5432 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5433 | ||
5434 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
5435 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
5436 | * stack.c (frame_info): Handle unavailable PC. | |
5437 | ||
5438 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
5439 | ||
5440 | * frame.c (frame_unwind_pc): Rename to ... | |
5441 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
5442 | parameter. Change return type to int. Gracefully handle | |
5443 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
5444 | happened, or 1 otherwise. | |
5445 | (frame_unwind_pc): Reimplement on top of | |
5446 | frame_unwind_pc_if_available. | |
5447 | (get_frame_func): Rename to ... | |
5448 | (get_frame_func_if_available): New `pc' output parameter. Change | |
5449 | return type to int. Gracefully handle the PC not being available. | |
5450 | (get_frame_func): Reimplement on top of | |
5451 | get_frame_func_if_available. | |
5452 | (select_frame): Handle the PC being unavailable. | |
5453 | (get_prev_frame): Handle the PC being unavailable. | |
5454 | (get_frame_pc_if_available): New. | |
5455 | (get_frame_address_in_block_if_available): New. | |
5456 | (find_frame_sal): Handle the frame PC not being available. | |
5457 | * frame.h (get_frame_pc_if_available): Declare. | |
5458 | (get_frame_address_in_block_if_available): Declare. | |
5459 | (get_frame_func_if_available): Declare. | |
5460 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
5461 | (find_frame_funname): Ditto. | |
5462 | (print_frame): Handle the PC being unavailable. | |
5463 | (get_frame_language): Ditto. | |
5464 | * blockframe.c (get_frame_block): Ditto. | |
5465 | * macroscope.c (default_macro_scope): Ditto. | |
5466 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
5467 | ||
5468 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
5469 | ||
5470 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
5471 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
5472 | ||
5473 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
5474 | ||
5475 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
5476 | returning that the register piece is unavailable/optimized out. | |
5477 | (write_pieced_value): Handle get_frame_register_bytes returning | |
5478 | that the register piece is unavailable/optimized out when doing a | |
5479 | read-modify write of a bitfield. | |
5480 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
5481 | returning that the register piece is unavailable/optimized out. | |
5482 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
5483 | and `unavailablep'. Throw error on bad debug info. Use | |
5484 | frame_register instead of frame_register_read, to fill in the new | |
5485 | arguments. | |
5486 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
5487 | and `unavailablep'. | |
5488 | * valops.c: (value_assign): Adjust, and handle | |
5489 | get_frame_register_bytes failing. | |
5490 | * spu-tdep.c: Include exceptions.h. | |
5491 | (spu_software_single_step): Adjust, and handle | |
5492 | get_frame_register_bytes failing. | |
5493 | (spu_get_longjmp_target): Ditto. | |
5494 | * gdbarch.sh (register_to_value): Change to return int. New | |
5495 | parameters `optimizedp' and `unavailablep'. | |
5496 | * gdbarch.h, gdbarch.c: Regenerate. | |
5497 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
5498 | gdbarch_register_to_value interface. | |
5499 | * i387-tdep.c (i387_register_to_value): Ditto. | |
5500 | * i387-tdep.h (i387_register_to_value): Ditto. | |
5501 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
5502 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
5503 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
5504 | * mips-tdep.c (mips_register_to_value): Ditto. | |
5505 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
5506 | ||
0fdb4f18 PA |
5507 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5508 | ||
5509 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
5510 | the register is unavailable. | |
5511 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
5512 | (frame_register): New `unavailablep' parameter. | |
5513 | (frame_register_read): Update comment. | |
5514 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
5515 | Set it if the register is unavailable. If the register is | |
5516 | unavailable, clear the output buffer. | |
5517 | (frame_register): New `unavailablep' parameter. Pass it down. | |
5518 | (frame_unwind_register): Adjust. | |
5519 | (put_frame_register): Adjust. | |
5520 | (frame_register_read): Adjust. Also return false if the register | |
5521 | is not available. | |
5522 | (frame_register_unwind_location): Adjust. | |
5523 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
5524 | is unavailable, mark the value accordingly. | |
5525 | * stack.c (frame_info): Handle unavailable registers. | |
5526 | ||
e69aa73e PA |
5527 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5528 | ||
5529 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
5530 | simplify, using regcache_cooked_read. | |
5531 | ||
05d1431c PA |
5532 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
5533 | ||
5534 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
5535 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
5536 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
5537 | (regcache_cooked_read, regcache_cooked_read_signed) | |
5538 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
5539 | (regcache_cooked_read_ftype): Change return to enum | |
5540 | register_status. | |
5541 | * regcache.c: Include exceptions.h | |
5542 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
5543 | (do_cooked_read): Change return to enum register_status. Always | |
5544 | forward to regcache_cooked_read. | |
5545 | (regcache_raw_read): Change return to enum register_status. If | |
5546 | the register is not REG_VALID, memset the buffer. Return the | |
5547 | register's status. | |
5548 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
5549 | return the register's status. | |
5550 | (regcache_raw_read_unsigned): Ditto. | |
5551 | (regcache_cooked_read): Change return to enum register_status. | |
5552 | Assert that with read-only regcaches, the register's status must | |
5553 | be known. If the regcache is read-only, and the register is not | |
5554 | REG_VALID, memset the buffer. Return the register's status. | |
5555 | (regcache_cooked_read_signed): Change return to enum | |
5556 | register_status. Handle non-REG_VALID registers and return the | |
5557 | register's status. | |
5558 | (regcache_cooked_read_unsigned): Change return to enum | |
5559 | register_status. Handle non-REG_VALID registers and return the | |
5560 | register's status. | |
5561 | (regcache_xfer_part, regcache_raw_read_part) | |
5562 | (regcache_cooked_read_part): Change return to enum | |
5563 | register_status. Return the register's status. | |
5564 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
5565 | unavailable. | |
5566 | (regcache_dump): Handle unavailable cooked registers. | |
5567 | * frame.c (do_frame_register_read): Adjust interface to match | |
5568 | regcache_cooked_read_ftype. | |
5569 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
5570 | register_status. | |
5571 | * gdbarch.h, gdbarch.c: Regenerate. | |
5572 | ||
5573 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
5574 | register_status. | |
5575 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
5576 | register_status. If reading a raw register indicates the raw | |
5577 | register is not valid, return the raw register's status, | |
5578 | otherwise, return REG_VALID. | |
5579 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
5580 | register_status. Handle non-REG_VALID raw registers and return | |
5581 | the register's status. | |
5582 | * arm-tdep.c (arm_neon_quad_read) | |
5583 | (arm_pseudo_read): Change return to enum register_status. Handle | |
5584 | non-REG_VALID raw registers and return the register's status. | |
5585 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
5586 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
5587 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
5588 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
5589 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
5590 | register_status. | |
5591 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
5592 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
5593 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
5594 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
5595 | (m32c_pseudo_register_read): Change return to enum | |
5596 | register_status. Adjust. | |
5597 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
5598 | enum register_status. Return the register's status. | |
5599 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
5600 | register_status. Return the register's status. | |
5601 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
5602 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
5603 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
5604 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
5605 | (e500_move_ev_register): Use it. Change return to enum | |
5606 | register_status. Return the register's status. | |
5607 | (do_regcache_raw_read): New function. | |
5608 | (do_regcache_raw_write): New function. | |
5609 | (e500_pseudo_register_read): Change return to enum | |
5610 | register_status. Return the register's status. Use | |
5611 | do_regcache_raw_read. | |
5612 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
5613 | (dfp_pseudo_register_read): Change return to enum register_status. | |
5614 | Return the register's status. | |
5615 | (vsx_pseudo_register_read): Ditto. | |
5616 | (efpr_pseudo_register_read): Ditto. | |
5617 | (rs6000_pseudo_register_read): Ditto. | |
5618 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
5619 | register_status. Return the register's status. | |
5620 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
5621 | (sh64_pseudo_register_read): Change return to enum | |
5622 | register_status. Use pseudo_register_read_portions. Return the | |
5623 | register's status. | |
5624 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
5625 | register_status. Return the register's status. | |
5626 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
5627 | (sh_pseudo_register_read): Change return to enum register_status. | |
5628 | Use pseudo_register_read_portions. Return the register's status. | |
5629 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
5630 | enum register_status. Return the register's status. | |
5631 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
5632 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
5633 | (spu_pseudo_register_read): Ditto. | |
5634 | * xtensa-tdep.c (xtensa_register_read_masked) | |
5635 | (xtensa_pseudo_register_read): Ditto. | |
5636 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
5637 | ||
e10abd8f PM |
5638 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
5639 | ||
5640 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
5641 | call. | |
5642 | ||
7ea6d463 PM |
5643 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
5644 | ||
5645 | ARI fixes: Add missing internationalization markups throughout | |
5646 | C source files. | |
5647 | * darwin-nat-info.c: Ditto. | |
5648 | * record.c: Ditto. | |
5649 | * remote.c: Ditto. | |
5650 | * mi/mi-main.c: Ditto. | |
5651 | ||
001083c6 PM |
5652 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
5653 | ||
5654 | ARI fixes: Add missing internationalization markups throughout | |
5655 | yacc files. | |
5656 | * c-exp.y: Ditto. | |
5657 | * cp-name-parser.y: Ditto. | |
5658 | * f-exp.y: Ditto. | |
5659 | * m2-exp.y: Ditto. | |
5660 | * objc-exp.y: Ditto. | |
5661 | * p-exp.y: Ditto. | |
5662 | ||
4f1cdeec PM |
5663 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
5664 | ||
5665 | ARI fixes: Messages should have no trailing new lines. | |
5666 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
5667 | warning function call message. | |
5668 | * record.c (bfdcore_read): Idem for error call. | |
5669 | ||
28e698f1 PM |
5670 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
5671 | ||
5672 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
5673 | function call message. | |
5674 | (target_signal_to_host): Add _ markup and remove trailing new line | |
5675 | from warning call message. | |
5676 | (target_signal_from_command): Add _ markup to error function call | |
5677 | message. | |
5678 | ||
99c3dc11 PM |
5679 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
5680 | ||
f33edef8 | 5681 | PR python/12149 |
99c3dc11 PM |
5682 | |
5683 | * python/python.c (gdbpy_write): Accept a stream argument and | |
5684 | operate to the appropriate stream. | |
5685 | (gdbpy_flush): Likewise. | |
5686 | (_initialize_python): Add stream constants. | |
5687 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
5688 | ||
c20800be KY |
5689 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
5690 | ||
5691 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
5692 | ||
f4a1794a KY |
5693 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
5694 | ||
5695 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
f33edef8 PP |
5696 | to store_signed_integer. Add debug message when relocating CALL |
5697 | instructions. Fix formatting of debug message. | |
5698 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
f4a1794a | 5699 | |
d4862372 JB |
5700 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
5701 | ||
5702 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
5703 | (target_lookup_symbol): Delete macro. | |
5704 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
5705 | (update_current_target, setup_target_debug): Remove handling | |
5706 | of to_lookup_symbol target_ops field. | |
5707 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
5708 | target_lookup_symbol. | |
5709 | * coffread.c (coff_symtab_read): Likewise. | |
5710 | * dbxread.c (read_dbx_symtab): Ditto. | |
5711 | ||
d645e32e JB |
5712 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
5713 | ||
5714 | PR gdb/12116: | |
5715 | * configure.ac: Add getthrds declaration check. | |
5716 | * configure, config.in: Regenerate. | |
5717 | * aix-thread.c (getthrds): Declare only if not already declared | |
5718 | in procinfo.h. More declaration out of get_signaled_thread to | |
5719 | global scope. | |
5720 | ||
29703da4 PM |
5721 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
5722 | ||
5723 | * python/py-symtab.c: Populate symtab_object_methods, | |
5724 | sal_object_methods. | |
5725 | (stpy_is_valid): New function. | |
5726 | (salpy_is_valid): Ditto. | |
5727 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
5728 | (sympy_is_valid): New function. | |
5729 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
5730 | (objfpy_is_valid): New function. | |
5731 | * python/py-inferior.c: Populate inferior_object_methods. | |
5732 | (infpy_is_valid): New function. | |
5733 | * python/py-infthread.c: Populate thread_object_methods. | |
5734 | (thpy_is_valid): New function. | |
5735 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
5736 | block_iterator_object_methods. Populate. | |
5737 | (blpy_is_valid): New function. | |
5738 | (blpy_iter_is_valid): Ditto. | |
5739 | ||
c00f8484 KS |
5740 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
5741 | ||
5742 | * linespec.c (find_methods): Canonicalize NAME before looking | |
5743 | up the symbol. | |
5744 | (name_end): New function. | |
5745 | (keep_name_info): New function. | |
5746 | (decode_line_1): Use keep_name_info. | |
5747 | (decode_compound): Likewise. | |
5748 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
5749 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
5750 | ||
5751 | PR c++/12273 | |
5752 | * linespec.c (locate_first_half): Keep overload information, too. | |
5753 | (decode_compound): Use a string to represent break characters | |
5754 | to escape the loop. | |
5755 | If P points to a break character, do not increment it. | |
5756 | For C++ and Java, keep overload information and relevant keywords. | |
5757 | If we cannot find a symbol, search the minimal symbols. | |
5758 | ||
5759 | PR c++/11734 | |
5760 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
5761 | THE_REAL_SAVED_ARG. | |
5762 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
5763 | single-quotes. | |
5764 | Pass a valid block to lookup_symbol. | |
5765 | (lookup_prefix_sym): Likewise. | |
5766 | (find_method): Construct search name based on SYM_CLASS instead | |
5767 | of SAVED_ARG. | |
5768 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
5769 | (lookup_symbol_aux_psymtabs): Likewise. | |
5770 | Don't assume that the psymtab we found was the right one. Search | |
5771 | for the desired symbol in the symtab to be certain. | |
5772 | (psymtab_search_name): New function. | |
5773 | (lookup_partial_symbol): Use psymtab_search_name. | |
5774 | Add language parameter. | |
5775 | (read_symtabs_for_function): Add language parameter and pass to | |
5776 | lookup_partial_symbol. | |
5777 | (find_symbol_file_from_partial): Likewise. | |
5778 | ||
c91513d8 PP |
5779 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
5780 | ||
5781 | PR gdb/12528 | |
5782 | * dwarf2read.c (noop_record_line): New function. | |
5783 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
5784 | ||
b37520b6 PM |
5785 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
5786 | ||
5787 | Fix ARI warnings about new lines at the end of messages, which | |
5788 | are unneeded as there is a new line added at the end of the message | |
5789 | automatically. | |
5790 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
5791 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
5792 | * dfp.c (decimal_to_number): Ditto. | |
5793 | * exec.c (print_section_info): Ditto. | |
5794 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
5795 | * osdata.c (get_osdata): Ditto. | |
5796 | * record.c (bfdcore_write): Ditto. | |
5797 | * remote-mips.c (mips_readchar): Ditto. | |
5798 | * remote.c (read_ptid): Ditto. | |
5799 | * ser-mingw.c (ser_windows_raw): Ditto. | |
5800 | * tracepoint.c (add_local_symbols): Ditto. | |
5801 | * windows-nat.c (fake_create_process): Ditto. | |
5802 | ||
b08ee6a2 TT |
5803 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
5804 | ||
5805 | * tracepoint.c (stop_tracing): Don't declare. | |
5806 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
5807 | ||
9a6f1302 PM |
5808 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
5809 | ||
5810 | * NEWS: Add Parameter sub-classing description. | |
5811 | ||
7ceb86b1 KT |
5812 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
5813 | ||
5814 | * MAINTAINERS: Update my e-mail address. | |
5815 | ||
efeff6cf AT |
5816 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
5817 | ||
5818 | * MAINTAINERS: Add myself for write after approval privileges. | |
5819 | ||
681c238c MS |
5820 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
5821 | ||
f3df5b08 MS |
5822 | * frame.c (find_frame_sal): Assert sym is not null. |
5823 | ||
13f6513c MS |
5824 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
5825 | ||
50412521 MS |
5826 | * objc-lang.c (selectors_info): Check strchr for null result. |
5827 | ||
681c238c MS |
5828 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
5829 | ||
6ced1581 PM |
5830 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
5831 | ||
5832 | Remove trailing spaces and tabulations from pascal language | |
5833 | support sources. | |
5834 | p-exp.y: Ditto. | |
5835 | p-lang.c: Ditto. | |
5836 | p-lang.h: Ditto. | |
5837 | p-valprint.c: Ditto. | |
5838 | ||
9373cf26 JK |
5839 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5840 | ||
5841 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
5842 | than LOW. Comment it. | |
5843 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
5844 | HIGHPC not strictly higher than LOWPC. | |
5845 | ||
9a1edae6 PM |
5846 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
5847 | ||
5848 | Fix formatting of function declarations returning a pointer in | |
5849 | previous commit. | |
5850 | * varobj.c (varobj_add_child): Ditto. | |
5851 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
5852 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
5853 | ||
24e9cda0 UW |
5854 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
5855 | ||
5856 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
5857 | for the "generic" vector ABI used with GCC 4.3 and later. | |
5858 | (ppc64_sysv_abi_return_value): Likewise. | |
5859 | ||
5860 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
5861 | |
5862 | * infcall.c (call_function_by_hand): Function return value is | |
5863 | always a non_lval, even when using struct_return. | |
5864 | ||
c9174737 PA |
5865 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
5866 | ||
5867 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
5868 | (map_display_numbers): New. | |
5869 | (do_delete_display): New. | |
5870 | (undisplay_command): Use map_display_numbers. | |
5871 | (do_enable_disable_display): New. | |
5872 | (enable_disable_display_command): New function. | |
5873 | (enable_display): Delete. | |
5874 | (enable_display_command): New. | |
5875 | (disable_display_command): Reimplement. | |
5876 | (_initialize_printcmd): Adjust "enable display" command to use | |
5877 | `enable_display_command' as callback. | |
5878 | ||
350c6c65 PM |
5879 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
5880 | ||
5881 | * NEWS: Add Python breakpoint 'stop' operation. | |
5882 | ||
824446ad PM |
5883 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
5884 | ||
5885 | * NEWS: Delete duplicate entry. Fix typo. | |
5886 | ||
2021ad3a PM |
5887 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
5888 | ||
5889 | Fix ARI warning about function names in first column. | |
5890 | Put prototype declaration on same line as return type. | |
5891 | * objc-exp.y: Ditto. | |
5892 | * p-exp.y: Ditto. | |
5893 | * python/py-stopevent.h: Ditto. | |
5894 | For long function names, split parameters to | |
5895 | allow function name on same line as return type. | |
5896 | * solib-pa64.c: Ditto. | |
5897 | * varobj.c: Ditto. | |
5898 | * varobj.h: Ditto. | |
5899 | For long function declaration, use single line. | |
5900 | * hppa-tdep.h: Ditto. | |
5901 | * inferior.h: Ditto. | |
5902 | ||
7371cf6d PM |
5903 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
5904 | ||
5905 | * python/python.h: Declare gdbpy_should_stop and | |
5906 | gdbpy_breakpoint_has_py_cond. | |
5907 | * python/python.c: Add python.h to includes. Remove python.h from | |
5908 | HAVE_PYTHON definition | |
5909 | (gdbpy_should_stop): New dummy function. | |
5910 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
5911 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
5912 | sub-classing capabilities. | |
5913 | (gdbpy_should_stop): New function. | |
5914 | (gdbpy_breakpoint_has_py_cond): New function. | |
5915 | (local_setattro): New function. | |
5916 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
5917 | operation. | |
5918 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
5919 | operation function as part of stop/continue tests. | |
5920 | ||
37b50a69 TT |
5921 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
5922 | ||
5923 | PR gdb/12576: | |
5924 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
5925 | (needs_frame_dwarf_call): Likewise. | |
5926 | ||
eeae04df PM |
5927 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
5928 | ||
5929 | Fix ARI warning about functions without parameters that do not | |
5930 | use (void). | |
5931 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
5932 | * f-exp.y (match_string_literal): Ditto. | |
5933 | (yylex): Ditto. | |
5934 | * m2-exp.y (yylex): Ditto. | |
5935 | * mep-tdep.c (current_me_module): Ditto. | |
5936 | (current_options): Ditto. | |
5937 | (current_cop_data_bus_width): Ditto. | |
5938 | (current_cr_names): Ditto. | |
5939 | (current_cr_is_float): Ditto. | |
5940 | (current_ccr_names): Ditto. | |
5941 | * objc-exp.y (yylex): Ditto. | |
5942 | * p-exp.y (yylex): Ditto. | |
5943 | * remote.c (send_interrupt_sequence): Ditto. | |
5944 | * tracepoint.c (current_trace_status): Ditto. | |
5945 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
5946 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
5947 | ||
6dc3565d MS |
5948 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
5949 | ||
1427fe5e MS |
5950 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
5951 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
5952 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
5953 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
5954 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
5955 | ||
60bc018f MS |
5956 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
5957 | (delete_async_event_handler): Ditto. | |
5958 | ||
f3be5b64 MS |
5959 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
5960 | ||
4c2d5724 MS |
5961 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
5962 | ||
6dc3565d MS |
5963 | * top.c (set_verbose): Assert showcmd was found. |
5964 | ||
4e6ca6d5 MG |
5965 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
5966 | ||
5967 | * xtensa-tdep.c (warning_once): Correct style issues. | |
5968 | ||
815a83e4 YQ |
5969 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
5970 | ||
5971 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
5972 | ||
f2eb0bc8 AS |
5973 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
5974 | ||
5975 | * common/aclocal.m4: Remove. | |
5976 | ||
b801de47 MG |
5977 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
5978 | ||
5979 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
5980 | (xtensa_write_register, xtensa_read_register): Likewise. | |
5981 | (xtensa_hextochar): Removed. | |
5982 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
5983 | ||
dbab50de MG |
5984 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
5985 | ||
5986 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 5987 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
5988 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
5989 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
5990 | (warning_once): New function. | |
5991 | (xtensa_insn_kind): New item c0opc_and. | |
5992 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
5993 | (call0_track_op): Change arguments. New local variable litbase. |
5994 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
5995 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
5996 | in the prologue. | |
dbab50de | 5997 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 5998 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
5999 | Add the variety of updates to handle extended prologues, which now can |
6000 | conduct dynamic stack adjustments. | |
6001 | (call0_frame_cache): Likewise. | |
6002 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
6003 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
6004 | ||
b2c04452 MS |
6005 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
6006 | ||
f8f67713 MS |
6007 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
6008 | (cmd_qtframe): Ditto. | |
6009 | (cmd_qtbuffer): Ditto. | |
6010 | (cmd_bigqtbuffer): Ditto. | |
6011 | ||
197f0a60 TT |
6012 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
6013 | ||
6014 | * tracepoint.c (trace_actions_command): Update. | |
6015 | * thread.c (thread_apply_command): Update. | |
6016 | * reverse.c (delete_bookmark_command): Update. | |
6017 | (bookmarks_info): Update. | |
6018 | * printcmd.c (undisplay_command): Update. | |
6019 | * memattr.c (mem_enable_command): Update. | |
6020 | (mem_disable_command): Update. | |
6021 | (mem_delete_command): Update. | |
6022 | * inferior.c (detach_inferior_command): Update. | |
6023 | (kill_inferior_command): Update. | |
6024 | (remove_inferior_command): Update. | |
6025 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
6026 | (init_number_or_range): Declare. | |
6027 | (get_number_or_range): Update. | |
6028 | * cli/cli-utils.c (init_number_or_range): New function. | |
6029 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
6030 | static variables. | |
6031 | (number_is_in_list): Update. | |
6032 | * breakpoint.h (get_tracepoint_by_number): Update. | |
6033 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
6034 | get_number_or_range. | |
6035 | (find_location_by_number): Use get_number, not | |
6036 | get_number_or_range. | |
6037 | (trace_pass_set_count): New function. | |
6038 | (trace_pass_command): Update for change to get_number_or_range. | |
6039 | Rework loop logic. | |
6040 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
6041 | 'state' parameter. | |
6042 | ||
ecec24e6 PM |
6043 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
6044 | ||
6045 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
6046 | parameters. Register Python object context. | |
6047 | (get_show_value): New function. | |
6048 | (get_set_value): New function. | |
6049 | (call_doc_function): New function. | |
6050 | (get_doc_string): Move behind get_show_value/get_set_value. | |
6051 | ||
6d6c6b1f JK |
6052 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
6053 | ||
6054 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
6055 | ||
68d6df83 MG |
6056 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
6057 | ||
dbab50de | 6058 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
6059 | (xtensa_write_register): Likewise. |
6060 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
6061 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
6062 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
6063 | (xtensa_exception_handler_t): Update to match coding conventions. | |
6064 | (xtensa_insn_kind): Likewise. | |
6065 | ||
85c9d6a6 MS |
6066 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
6067 | ||
6068 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
6069 | ||
91495617 PA |
6070 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
6071 | ||
6072 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
6073 | ||
eb8c0621 TT |
6074 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
6075 | ||
6076 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
6077 | (make_cleanup_restore_current_thread): Use | |
6078 | get_selected_frame_if_set. | |
6079 | * frame.h (get_selected_frame_if_set): Declare. | |
6080 | * frame.c (get_selected_frame_if_set): New function. | |
6081 | ||
9f37bbcc PA |
6082 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
6083 | ||
6084 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
6085 | * coffread.c (coff_start_symtab): Constify parameter. | |
6086 | (complete_symtab): Constify `name' parameter. | |
6087 | (coff_symtab_read): Constify `filestring' local. | |
6088 | (coff_getfilename): Constify return and `result' local. | |
6089 | Use lbasename. | |
6090 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
6091 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
6092 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
6093 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
6094 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
6095 | * procfs.c (procfs_make_note_section): Use lbasename. | |
6096 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
6097 | Use lbasename. | |
6098 | (print_filename): Constify parameters, and local `s'. | |
6099 | (tui_rl_display_match_list): Constify local `temp'. | |
6100 | ||
f8de3c55 JK |
6101 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6102 | ||
6103 | Revert: | |
6104 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
6105 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
6106 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
6107 | cu->header.version >= 3. | |
6108 | ||
d9837b00 YQ |
6109 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
6110 | ||
6111 | * common/Makefile.in: Remove. | |
6112 | * common/configure: Remove. | |
6113 | * common/configure.ac: Remove. | |
6114 | ||
e637a4f5 YQ |
6115 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
6116 | ||
6117 | Revert: | |
6118 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
6119 | ||
6120 | * common/Makefile.in: Add copyright header. | |
6121 | ||
6122 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
6123 | ||
6124 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
6125 | libcommon.a. | |
6126 | * configure.ac: Add common to sub dir. | |
6127 | * configure: Regenerate. | |
6128 | ||
f976a05d MG |
6129 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
6130 | ||
6131 | * xtensa-tdep.c (call0_ret): New function. | |
6132 | (xtensa_skip_prologue): Speed up analysis. | |
6133 | ||
57041825 MG |
6134 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
6135 | ||
6136 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
6137 | while executing MI command -data-list-changed-registers. | |
6138 | ||
08b9c608 MG |
6139 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
6140 | ||
6141 | * xtensa-tdep.c (xtensa_read_register): New function. | |
6142 | (xtensa_write_register): New function. | |
6143 | (xtensa_find_register_by_name): New function. | |
6144 | (xtensa_windowed_frame_cache): Update comments in type description. | |
6145 | (xtensa_frame_cache): Likewise. | |
6146 | (xtensa_window_interrupt_insn): New function. | |
6147 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
6148 | (xtensa_insn_kind): Add new instructions. | |
6149 | (rwx_special_register): New function. | |
6150 | (call0_classify_opcode): Add new instructions to the analysis. | |
6151 | (a0_saved, a7_saved, a11_saved): New variables. | |
6152 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
6153 | (execute_l32e): New function. | |
6154 | (execute_s32e): New function. | |
6155 | (xtensa_exception_handler_t): New type. | |
6156 | (execute_code): New function. | |
6157 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
6158 | analysis for Xtensa Window Exception handlers. | |
6159 | ||
4d1acb11 MG |
6160 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
6161 | ||
98689b25 MG |
6162 | * xtensa-tdep.c (TX_PS): New. |
6163 | (windowing_enabled): Update to count for Call0 ABI. | |
6164 | (xtensa_hextochar): New. | |
6165 | (xtensa_init_reggroups): Make algorithm generic. | |
6166 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
6167 | ||
6168 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
6169 | ||
6170 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 6171 | |
d3f323f3 MS |
6172 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
6173 | ||
3dcabaa8 MS |
6174 | * i386-tdep.c (i386_follow_jump): Check return value of |
6175 | target_read_memory. | |
6176 | (i386_analyze_struct_return): Ditto. | |
6177 | (i386_skip_probe): Ditto. | |
6178 | (i386_match_insn): Ditto. | |
6179 | (i386_skip_noop): Ditto. | |
6180 | (i386_analyze_frame_setup): Ditto. | |
6181 | (i386_analyze_register_saves): Ditto. | |
6182 | (i386_skip_prologue): Ditto. | |
6183 | (i386_skip_main_prologue): Ditto. | |
6184 | ||
13b3fd9b MS |
6185 | * target.c (read_whatever_is_readable): Fix memory leak. |
6186 | ||
d3f323f3 MS |
6187 | * i386-tdep.c (i386_process_record): Document fall through. |
6188 | ||
421d5c74 JK |
6189 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
6190 | ||
6191 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
6192 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
6193 | cu->header.version >= 3. | |
6194 | ||
63154eca PA |
6195 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
6196 | ||
6197 | * remote.c (remote_check_symbols): Skip if the target has no | |
6198 | execution. | |
6199 | ||
f1a507a1 JB |
6200 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
6201 | ||
6202 | * target.c (read_whatever_is_readable): Reformat comment, | |
6203 | with a minor typo fix. Minor reformatting of the code. | |
6204 | ||
36073a92 YQ |
6205 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
6206 | ||
6207 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
6208 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
6209 | Use cached result instead of calling displaced_in_arm_mode again. | |
6210 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
6211 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
6212 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
6213 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
6214 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
6215 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
6216 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
6217 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
6218 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
6219 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
6220 | (arm_catch_kernel_helper_return): Likewise. | |
6221 | * gdb/arm-tdep.h : Update function declarations. | |
6222 | ||
d3f323f3 | 6223 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 6224 | |
e0e40094 MS |
6225 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
6226 | ||
0b2381f5 MS |
6227 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
6228 | ||
0350914a MS |
6229 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
6230 | ||
69feea6f MS |
6231 | * elfread.c (elf_symtab_read): Stop memory leak. |
6232 | ||
e6040cbd MS |
6233 | * main.c (captured_main): Fix memory leak. |
6234 | ||
052874e8 AS |
6235 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
6236 | ||
6237 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
6238 | instead of string2. | |
6239 | ||
b11896a5 TT |
6240 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
6241 | ||
6242 | * xcoffread.c (xcoff_sym_fns): Update. | |
6243 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
6244 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
6245 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
6246 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
6247 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
6248 | * somread.c (som_sym_fns): Update. | |
6249 | * psymtab.h (require_partial_symbols): Declare. | |
6250 | * psymtab.c (require_partial_symbols): New function. | |
6251 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
6252 | (ALL_OBJFILE_PSYMTABS): Undef. | |
6253 | (ALL_PSYMTABS): Move from psympriv.h. | |
6254 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
6255 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
6256 | (find_last_source_symtab_from_partial) | |
6257 | (forget_cached_source_info_partial) | |
6258 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
6259 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
6260 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
6261 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
6262 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
6263 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
6264 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
6265 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
6266 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
6267 | psymtabs. | |
6268 | * mipsread.c (ecoff_sym_fns): Update. | |
6269 | * machoread.c (macho_sym_fns): Update. | |
6270 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
6271 | (read_psyms): New function. | |
6272 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
6273 | (elf_sym_fns_lazy_psyms): New global. | |
6274 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
6275 | dwarf2_build_psymtabs. | |
6276 | * dbxread.c (aout_sym_fns): Update. | |
6277 | * coffread.c (coff_sym_fns): Update. | |
6278 | ||
fda326dd TT |
6279 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
6280 | ||
6281 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
6282 | message. | |
6283 | ||
aeaec162 TT |
6284 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
6285 | ||
6286 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
6287 | parameter. | |
6288 | (target_has_execution_1): Update. | |
6289 | (target_has_execution_current): Declare. | |
6290 | (target_has_execution): Call target_has_execution_current. | |
6291 | (default_child_has_execution): Update. | |
6292 | * target.c (default_child_has_execution): Add 'the_ptid' | |
6293 | parameter. | |
6294 | (target_has_execution_1): Likewise. | |
6295 | (target_has_execution_current): New function. | |
6296 | (add_target): Update. | |
6297 | (init_dummy_target): Update. | |
6298 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
6299 | (init_m32r_ops): Use it. | |
6300 | * record.c (record_core_has_execution): Now static. Add | |
6301 | 'the_ptid' parameter. | |
6302 | * inferior.c (have_live_inferiors): Don't save current thread. | |
6303 | Use target_has_execution_1. | |
6304 | ||
08e14083 YQ |
6305 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
6306 | ||
6307 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
6308 | ||
c05d19c5 JB |
6309 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
6310 | ||
6311 | * elfread.c (elf_symtab_read): Minor reformatting. | |
6312 | ||
3e6ef9e4 JB |
6313 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
6314 | ||
6315 | * objc-lang.c (selectors_info): Minor reformatting. | |
6316 | ||
dbb8534f JB |
6317 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
6318 | ||
6319 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
6320 | ||
dd70cc93 JB |
6321 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
6322 | Michael Snyder <msnyder@vmware.com> | |
6323 | ||
6324 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
6325 | "byte_order" and "elttype" inside the block where these variables | |
6326 | are actually used. Remove some special handling for the case | |
6327 | where "elttype" and "eltlen" are null. Replace by a comment | |
6328 | and a couple of assertion checks. | |
6329 | ||
b27cf2b3 MS |
6330 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
6331 | ||
6332 | * source.c (add_path): Replace semicolon at end of block. | |
6333 | * dwarf2expr.c (execute_stack_op): Ditto. | |
6334 | ||
5387a0c6 MF |
6335 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
6336 | ||
6337 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
6338 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
6339 | (bfin-*-*): Likewise. | |
6340 | ||
e3aa49af MS |
6341 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
6342 | ||
82ae4854 MS |
6343 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
6344 | * mdebugread.c (parse_symbol): Ditto. | |
6345 | * parse.c (parse_exp_in_context): Ditto. | |
6346 | * source.c (add_path): Ditto. | |
6347 | * utils.c (gnu_debuglink_crc32): Ditto. | |
6348 | * varobj.c (variable_language): Ditto. | |
6349 | ||
e3aa49af MS |
6350 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
6351 | ||
154f592e MS |
6352 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
6353 | ||
da3ecdc6 MS |
6354 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
6355 | ||
9cc89665 MS |
6356 | * symfile.c (simple_overlay_update): Check for null return value |
6357 | from lookup_minimal_symbol. | |
6358 | ||
154f592e MS |
6359 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
6360 | ||
63ffa6ee TJB |
6361 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6362 | ||
6363 | * eval.c (parse_and_eval_address_1): Remove function. | |
6364 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
6365 | instead of parse_and_eval_address_1. | |
6366 | * value.h (parse_and_eval_address_1): Remove prototype. | |
6367 | ||
a17d146e MS |
6368 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
6369 | ||
6370 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
6371 | ||
1a6a67de TJB |
6372 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6373 | ||
6374 | * breakpointc (print_it_typical): Move NULL check from here... | |
6375 | (print_bp_stop_message): ... to here. | |
6376 | ||
488919c4 MS |
6377 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
6378 | ||
6379 | * breakpoint.c (enable_command): Use break instead of continue, | |
6380 | and fill in a missing break. | |
6381 | (disable_command): Ditto. | |
6382 | ||
1e182ce8 UW |
6383 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
6384 | ||
6385 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
6386 | (terminal_save_ours): Remove misleading comment. | |
6387 | (inflow_inferior_data_cleanup): Free ttystate. | |
6388 | (inflow_inferior_exit): Likewise. | |
6389 | (copy_terminal_info): Copy ttystate. | |
6390 | ||
6391 | * serial.c (serial_copy_tty_state): New function. | |
6392 | * serial.h (serial_copy_tty_state): Add prototype. | |
6393 | (struct serial_ops): Add copy_tty_state callback. | |
6394 | * ser-base.c (ser_base_copy_tty_state): New function. | |
6395 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
6396 | * ser-go32.c (dos_copy_tty_state): New function. | |
6397 | (dos_ops): Install copy_tty_state callback. | |
6398 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
6399 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
6400 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
6401 | (_initialize_ser_hardwire): Install it. | |
6402 | ||
b2c5f112 MS |
6403 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
6404 | ||
2abae994 MS |
6405 | * breakpoint.c (create_breakpoint): Add missing break statement. |
6406 | ||
7f5936f9 MS |
6407 | Reverting this patch: |
6408 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
6409 | ||
b2c5f112 MS |
6410 | Reverting this patch: |
6411 | * cli/cli-script.c (script_from_file): Add break for lint. | |
6412 | ||
42b1321c MS |
6413 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
6414 | ||
6415 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
6416 | ||
3e2a0cee TT |
6417 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
6418 | ||
6419 | PR gdb/12538: | |
6420 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
6421 | DW_STRING is NULL. | |
6422 | ||
58397cb7 MS |
6423 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
6424 | ||
2e3fd767 MS |
6425 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
6426 | fields of struct 'st' to zero. | |
6427 | ||
58397cb7 MS |
6428 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
6429 | sal.pspace before calling set_current_source_symtab_and_line. | |
6430 | ||
ced54c8f YQ |
6431 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
6432 | ||
6433 | * Makefile.in (configure-common): Remove. Let Makefile | |
6434 | in dir common to rebuild itself. | |
6435 | (common/Makefile): Likewise. | |
6436 | ||
3351ea09 JB |
6437 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
6438 | ||
6439 | * utils.c (parse_escape): Add i18n markup in error message. | |
6440 | ||
bf9f652a YQ |
6441 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
6442 | ||
6443 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
6444 | ARM_PC_REGNUM. | |
6445 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
6446 | (displaced_write_reg, displaced_read_reg): Likewise. | |
6447 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
6448 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
6449 | (cleanup_branch): Replace magic number 14 and 15 with | |
6450 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
6451 | ||
d42de051 MS |
6452 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
6453 | ||
240f9570 MS |
6454 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
6455 | ||
10dd8b54 MS |
6456 | * cli/cli-script.c (script_from_file): Add break for lint. |
6457 | ||
b98bd911 MS |
6458 | * mdebugread.c (parse_partial_symbols): Fix indent. |
6459 | ||
3494b66d MS |
6460 | * target-descriptions.c (tdesc_gdb_type): No need to call |
6461 | xstrdup, callee saves a copy. | |
6462 | ||
daac021a MS |
6463 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
6464 | ||
c38d16a7 MS |
6465 | * infcall.c (call_function_by_hand): Add break statements for lint. |
6466 | ||
905b671b MS |
6467 | * utils.c (parse_escape): Escape the escape char. |
6468 | ||
f2eb0bc8 | 6469 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
6470 | PyList_Append fails. |
6471 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
6472 | ||
8c6a60d1 MS |
6473 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
6474 | a function call. | |
6475 | ||
d42de051 MS |
6476 | * record.c (record_restore): Move printf to before error return. |
6477 | ||
4db71c0b YQ |
6478 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
6479 | ||
6480 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
6481 | is_thumb and insn_size. | |
6482 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
6483 | on both ARM and Thumb mode. | |
6484 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
6485 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
6486 | (arm_displaced_step_fixup): Likewise. | |
6487 | ||
a9dc8dcc MS |
6488 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
6489 | ||
53624a93 MS |
6490 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
6491 | ||
77766669 MS |
6492 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
6493 | ||
62d5b8da MS |
6494 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
6495 | ||
5e9e105f MS |
6496 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
6497 | ||
dc19db01 MS |
6498 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
6499 | with xmalloc. | |
6500 | ||
5ce64950 MS |
6501 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
6502 | which shadows function parameter. | |
6503 | ||
a0aa2878 MS |
6504 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
6505 | to xstrdup. Callee already calls xstrdup. | |
6506 | ||
e325fb69 MS |
6507 | * linespec.c (decode_line_1): Remove unnecessary null check. |
6508 | ||
21cbba77 MS |
6509 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
6510 | variable. | |
6511 | ||
63360adc MS |
6512 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
6513 | superfluous null check. | |
6514 | ||
18ea20ac | 6515 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 6516 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 6517 | |
d014929c MS |
6518 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
6519 | ||
6e9130cf MS |
6520 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
6521 | be null. | |
6522 | ||
5f01dbc0 MS |
6523 | * linespec.c (decode_line_1): Check for null before dereference. |
6524 | ||
d684ab85 MS |
6525 | * reverse.c (record_restore): Move null-check to before pointer |
6526 | dereference. | |
6527 | ||
bfffb7e3 MS |
6528 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
6529 | ||
a9dc8dcc MS |
6530 | * objc-lang.c (selectors_info): Add explanitory comment. |
6531 | (classes_info): Ditto. | |
6532 | ||
478fd957 UW |
6533 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
6534 | ||
6535 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
6536 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
6537 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
6538 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
6539 | (arm_linux_init_abi): Install it. | |
6540 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
6541 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
6542 | ||
0480cefa MS |
6543 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
6544 | ||
ac50ab3b MS |
6545 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
6546 | a little bigger, to avoid possibility of an overflow. | |
6547 | ||
f63fbe86 MS |
6548 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
6549 | buffers a little bigger, to avoid possibility of an overflow. | |
6550 | ||
9e91a352 MS |
6551 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
6552 | ||
f2eb0bc8 | 6553 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
6554 | avoid overflow. |
6555 | (classes_info): Error out on too long REGEXP. | |
6556 | ||
098ab512 MS |
6557 | * infrun.c (handle_inferior_event): Remove unused function call. |
6558 | ||
bcbd1de9 MS |
6559 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
6560 | unused variable. | |
6561 | ||
2e456570 MS |
6562 | * linux-thread-db.c (attach_thread): Discard unused value. |
6563 | ||
14571dad MS |
6564 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
6565 | ||
a9cbf802 MS |
6566 | * remote.c (remote_get_noisy_reply): Discard unused value. |
6567 | (remote_vcont_resume): Ditto. | |
6568 | (remote_stop_ns): Ditto. | |
6569 | ||
5715d26e MS |
6570 | * linespec.c (decode_objc): Delete unused variable. |
6571 | ||
4a9bca80 MS |
6572 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
6573 | ||
f47fb265 MS |
6574 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
6575 | (read_base_type): Delete unused variable. | |
6576 | ||
e81cff30 MS |
6577 | * dbxread.c (read_dbx_symtab): Discard unused value. |
6578 | ||
262acaeb MS |
6579 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
6580 | and discard unused values. | |
6581 | ||
df983543 MS |
6582 | * infcmd.c (_initialize_infcmd): Discard unused values. |
6583 | ||
89acf84d MS |
6584 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
6585 | ||
ab8b8aca MS |
6586 | * dbxread.c (process_one_symbol): Discard unused value. |
6587 | ||
6b4511ab MS |
6588 | * coffread.c (coff_end_symtab): Delete unused variable. |
6589 | ||
e8e80198 MS |
6590 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
6591 | (dwarf2_add_typedef): Delete unused variable. | |
6592 | (read_namespace): Ditto. | |
6593 | (dwarf_decode_macros): Ditto. | |
6594 | ||
976aa66e MS |
6595 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
6596 | ||
5b92b49f MS |
6597 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
6598 | ||
91e8df85 MS |
6599 | * p-valprint.c (pascal_val_print): Discard unused value. |
6600 | ||
899500d6 MS |
6601 | * utils.c (nquery): Call va_end before return; |
6602 | (yquery): Ditto. | |
6603 | (query): Ditto. | |
6604 | ||
0480cefa MS |
6605 | * proc-service.c (ps_plog): Call va_end before return. |
6606 | ||
fb6a3ed3 TT |
6607 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
6608 | ||
6609 | * python/python.c (gdbpy_value_cst): New global. | |
6610 | (_initialize_python): Initialize it. | |
6611 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
6612 | * python/py-value.c (convert_value_from_python): Use | |
6613 | gdbpy_value_cst. | |
6614 | ||
c05202a1 MS |
6615 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
6616 | ||
e463f587 MS |
6617 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
6618 | ||
c38eea1a MS |
6619 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
6620 | ||
3ef09ab5 MS |
6621 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
6622 | ||
8f9a01ee MS |
6623 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
6624 | (lval_func_check_synthetic_pointer): Ditto. | |
6625 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 6626 | |
477d0d57 TT |
6627 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
6628 | ||
6629 | * psymtab.c (expand_partial_symbol_tables): Use | |
6630 | ALL_OBJFILE_PSYMTABS. | |
6631 | ||
20937029 JK |
6632 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
6633 | ||
6634 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
6635 | ||
907b7f4f MS |
6636 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
6637 | ||
92e96192 MS |
6638 | * python/py-param.c (set_parameter_value): Add missing |
6639 | break statement. | |
6640 | ||
907b7f4f MS |
6641 | * linux-record.c (record_linux_system_call): Add missing |
6642 | break statement. | |
6643 | ||
12c5a436 UW |
6644 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6645 | ||
6646 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
6647 | argument PRINT_ADDRESS_BITS. Update callers. | |
6648 | (print_one_breakpoint): Likewise. | |
6649 | ||
170b53b2 UW |
6650 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
6651 | ||
6652 | * breakpoint.c (wrap_indent_at_field): New function. | |
6653 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
6654 | Allocate ui_stream locally instead of using STB argument. | |
6655 | (print_one_breakpoint_location): Update call. | |
6656 | * ui-out.c (ui_out_query_field): New function. | |
6657 | * ui-out.h (ui_out_query_field): Add prototype. | |
6658 | ||
8ab1f94d JB |
6659 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
6660 | ||
6661 | From Michael Snyder <msnyder@vmware.com> | |
6662 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
6663 | ||
7d488639 MS |
6664 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
6665 | ||
ae179fba MS |
6666 | * objc-lang.c (selectors_info): Prevent string overrun. |
6667 | ||
086dbf66 MS |
6668 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
6669 | error in strncpy. | |
6670 | ||
f2eb0bc8 | 6671 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
6672 | outer scope. |
6673 | ||
7d488639 MS |
6674 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
6675 | param with a local variable of the same name. | |
6676 | ||
3bd0f5ef MS |
6677 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
6678 | ||
6679 | * value.c (value_from_history_ref): New function. | |
6680 | * value.h (value_from_history_ref): Export. | |
6681 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
6682 | to parse value history references. | |
6683 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
6684 | ||
6685 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
6686 | ||
6687 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
6688 | (kill_inferior_command): Ditto. | |
6689 | (remove_inferior_command): Ditto. | |
6690 | (initialize_inferiors): Make command names plural. | |
6691 | Update help strings. | |
6692 | ||
766062f6 MS |
6693 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
6694 | ||
6695 | * darwin-nat-info.c: Fix comment typo. | |
6696 | * dwarf2expr.h: Ditto. | |
6697 | * fbsd-nat.c: Ditto. | |
6698 | * fbsd-nat.h: Ditto. | |
6699 | * frame-unwind.h: Ditto. | |
6700 | * frame.h: Ditto. | |
6701 | * hppa-hpux-tdep.c: Ditto. | |
6702 | * i386-linux-nat.c: Ditto. | |
6703 | * linux-nat.c: Ditto. | |
6704 | * nbsd-nat.c: Ditto. | |
6705 | * nbsd-nat.h: Ditto. | |
6706 | * ppc-linux-tdep.c: Ditto. | |
6707 | * serial.c: Ditto. | |
6708 | * ui-file.h: Ditto. | |
6709 | * tui/tui-winsource.c: Ditto. | |
6710 | ||
f2c4ead5 MS |
6711 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
6712 | ||
86b887df MS |
6713 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
6714 | ||
66fd3b1e MS |
6715 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
6716 | ||
8c814cdd MS |
6717 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
6718 | with a local variable of the same name. | |
6719 | ||
6d5e094a | 6720 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 6721 | param with a local variable of the same name. |
6d5e094a | 6722 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 6723 | |
5eee517d MS |
6724 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
6725 | that it does not shadow a function parameter. | |
6726 | ||
8fbf6b93 MS |
6727 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
6728 | statement is meant to fall through. | |
6729 | ||
cb969d61 MS |
6730 | * expprint.c (dump_subexp_body_standard): Document that case |
6731 | statement is meant to fall through. | |
6732 | ||
f2c4ead5 MS |
6733 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
6734 | dead if statement. Condition can't be false. | |
6735 | ||
b021a221 MS |
6736 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
6737 | ||
6738 | * arm-tdep.c: Fix typos in comments. | |
6739 | * bsd-uthread.c: Ditto. | |
6740 | * completer.c: Ditto. | |
6741 | * corelow.c: Ditto. | |
6742 | * cp-namespace.c: Ditto. | |
6743 | * cp-support.c: Ditto. | |
6744 | * cris-tdep.c: Ditto. | |
6745 | * dbxread.c: Ditto. | |
6746 | * dwarf2read.c: Ditto. | |
6747 | * frame.h: Ditto. | |
6748 | * gdbtypes.h: Ditto. | |
6749 | * inferior.h: Ditto. | |
6750 | * mdebugread.c: Ditto. | |
6751 | * mips-tdep.c: Ditto. | |
6752 | * ppc-linux-nat.c: Ditto. | |
6753 | * ppc-linux-tdep.c: Ditto. | |
6754 | * printcmd.c: Ditto. | |
6755 | * sol-thread.c: Ditto. | |
6756 | * solib-frv.c: Ditto. | |
6757 | * solist.h: Ditto. | |
6758 | * sparc64-tdep.c: Ditto. | |
6759 | * spu-tdep.c: Ditto. | |
6760 | * stabsread.c: Ditto. | |
6761 | * symfile.c: Ditto. | |
6762 | * valops.c: Ditto. | |
6763 | * varobj.c: Ditto. | |
6764 | * vax-nat.c: Ditto. | |
6765 | * python/py-block.c: Ditto. | |
6766 | * python/py-symbol.c: Ditto. | |
6767 | * python/py-symtab.c: Ditto. | |
6768 | * python/py-value.c: Ditto. | |
6769 | * tui/tui-win.c: Ditto. | |
6770 | ||
c82c0b55 MS |
6771 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
6772 | ||
6773 | * inferior.c (print_inferior): Accept a string instead of an int | |
6774 | for requested_inferiors, and use get_number_or_range to parse it. | |
6775 | (info_inferiors_command): Pass args string to print_inferior. | |
6776 | (initialize_inferiors): Change help string for info inferiors. | |
6777 | * inferior.h (print_inferior): Export prototype change. | |
6778 | ||
ee00cd23 TT |
6779 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
6780 | ||
6781 | * common/ax.def (invalid2): Set to 0x31. | |
6782 | ||
0502ed8c JK |
6783 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
6784 | ||
6785 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
6786 | L and plongest. | |
6787 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
6788 | use L and plongest. | |
6789 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
6790 | ||
2c9de912 MS |
6791 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
6792 | ||
6793 | * Makefile.in (clean): Make clean should remove generated files | |
6794 | observer.h and observer.inc. | |
6795 | ||
a04b0428 JB |
6796 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
6797 | ||
6798 | Revert the following patch (not approved yet): | |
6799 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
6800 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
6801 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
6802 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
6803 | * ax-general.c (ax_memcpy): New function. | |
6804 | (ax_print): Handle "printf". | |
6805 | (ax_reqs): Ditto. | |
6806 | * ax.h (ax_memcpy): Forward declare. | |
6807 | * common/ax.def (invalid2): Removed. | |
6808 | (printf): New entry. | |
6809 | * printcmd.c (printcmd.h): New include. | |
6810 | (string_printf): New function. | |
6811 | (ui_printf): Removed. | |
6812 | (printf_command): Remove static. Call string_printf. | |
6813 | (eval_command): Call string_printf. | |
6814 | * printcmd.h: New file. | |
6815 | * tracepoint.c (validate_actionline, | |
6816 | encode_actions_1): handle printf_command. | |
6817 | ||
2b52013f TT |
6818 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
6819 | ||
6820 | * ax-general.c (ax_pick): Add missing newline. | |
6821 | ||
e5a67952 MS |
6822 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
6823 | ||
6824 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
6825 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 6826 | breakpoints rather than just one. Use new function |
e5a67952 MS |
6827 | 'number_is_in_list' to implement. |
6828 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
6829 | (watchpoints_info): Ditto. | |
6830 | (tracepoints_info): Ditto. | |
6831 | (maintenance_info_breakpoints): Ditto. | |
6832 | (_initialize_breakpoint): Update help strings to reflect the fact | |
6833 | that these functions can now take more than one argument. | |
6834 | * cli/cli-utils.c (number_is_in_list): New function. | |
6835 | * cli/cli-utils.h (number_is_in_list): Export. | |
6836 | ||
6837 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
6838 | |
6839 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
6840 | (mem_disable_command): Ditto. | |
6841 | (mem_delete_command): Ditto. | |
6842 | (_initialize_mem): Tweak usage message to reflect multiple | |
6843 | arguments. | |
6844 | ||
6e6fbe60 DE |
6845 | 2011-02-22 Doug Evans <dje@google.com> |
6846 | ||
6847 | Add gdb.lookup_global_symbol python function. | |
6848 | * NEWS: Add entry. | |
6849 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
6850 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
6851 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
6852 | ||
79b97fa8 TT |
6853 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
6854 | ||
6855 | * language.c (language_class_name_from_physname): Rename | |
6856 | 'curr_language' argument to 'lang'; use in body. | |
6857 | ||
298f437a MS |
6858 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
6859 | ||
6860 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
6861 | ||
b7ea3126 PA |
6862 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
6863 | ||
6864 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
6865 | next. | |
6866 | ||
58ee6d60 TT |
6867 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
6868 | ||
6869 | * symfile.c (auto_solib_limit): Remove. | |
6870 | * symfile.h (auto_solib_limit): Remove. | |
6871 | ||
36238dbc JB |
6872 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
6873 | ||
6874 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
6875 | ||
aea5b279 MS |
6876 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
6877 | ||
6878 | * gdbthread.h (print_thread_info): Change prototype. | |
6879 | * thread.c (print_thread_info): Accept char* instead of int for | |
6880 | requested_threads argument. Use new function number_is_in_list | |
6881 | to determine which threads to list. | |
6882 | (info_threads_command): Pass char* to print_thread_info. | |
6883 | * cli/cli-utils.c (number_is_in_list): New function. | |
6884 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 6885 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
6886 | print_thread_info. |
6887 | (print_one_inferior): Ditto. | |
6888 | (mi_cmd_list_thread_groups): Ditto. | |
6889 | ||
8caa75ee JK |
6890 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6891 | ||
6892 | * common/Makefile.in (CFLAGS): New. | |
6893 | (COMPILE): Add $(CFLAGS). | |
6894 | ||
ea666128 TT |
6895 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
6896 | ||
6897 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
6898 | ||
e9cafbcc TT |
6899 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
6900 | ||
6901 | * reverse.c: Include cli-utils.h. | |
6902 | * printcmd.c: Include cli-utils.h. | |
6903 | (string_printf): Use skip_spaces. | |
6904 | * cli/cli-utils.h: New file. | |
6905 | * cli/cli-utils.c: New file. | |
6906 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
6907 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
6908 | * breakpoint.h (get_number, get_number_or_range): Move to | |
6909 | cli-utils.h. | |
6910 | * breakpoint.c: Include cli-utils.h. | |
6911 | (get_number_trailer, get_number, get_number_or_range) | |
6912 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
6913 | (create_breakpoint_sal, find_condition_and_thread) | |
6914 | (decode_static_tracepoint_spec, watch_command_1) | |
6915 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
6916 | (catch_fork_command_1, catch_exec_command_1) | |
6917 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
6918 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
6919 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
6920 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
6921 | (cli-utils.o): New target. | |
6922 | ||
f67fd822 PM |
6923 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
6924 | ||
6925 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
6926 | before calling discard_all_inferiors. | |
6927 | ||
c9def01d UW |
6928 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
6929 | ||
6930 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
6931 | (struct builtin_opencl_type): Remove. | |
6932 | (builtin_opencl_type): Change return type to "struct type **". | |
6933 | (lookup_opencl_vector_type): Update caller. | |
6934 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
6935 | (build_opencl_types): Install plain array of "struct type *" | |
6936 | instead of "struct builtin_opencl_type". | |
6937 | ||
e3039479 UW |
6938 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
6939 | Ulrich Weigand <uweigand@de.ibm.com> | |
6940 | ||
6941 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
6942 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
6943 | (struct arm_linux_hwbp_cap): New type. | |
6944 | (arm_linux_get_hwbp_cap): New function. | |
6945 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
6946 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
6947 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
6948 | (arm_hwbp_type): New type. | |
6949 | (arm_hwbp_control_t): Likewise. | |
6950 | (struct arm_linux_hw_breakpoint): Likewise. | |
6951 | (struct arm_linux_thread_points): Likewise. | |
6952 | (arm_threads): New global variable. | |
6953 | (arm_linux_find_breakpoints_by_tid): New function. | |
6954 | (arm_hwbp_control_initialize): Likewise. | |
6955 | (arm_hwbp_control_is_enabled): Likewise. | |
6956 | (arm_hwbp_control_disable): Likewise. | |
6957 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
6958 | (arm_linux_get_hwbp_type): Likewise. | |
6959 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
6960 | (arm_linux_hw_breakpoint_equal): Likewise. | |
6961 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
6962 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
6963 | (arm_linux_insert_hw_breakpoint): Likewise. | |
6964 | (arm_linux_remove_hw_breakpoint): Likewise. | |
6965 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
6966 | (arm_linux_insert_watchpoint): Likewise. | |
6967 | (arm_linux_remove_watchpoint): Likewise. | |
6968 | (arm_linux_stopped_data_address): Likewise. | |
6969 | (arm_linux_stopped_by_watchpoint): Likewise. | |
6970 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
6971 | (arm_linux_new_thread): Likewise. | |
6972 | (arm_linux_thread_exit): Likewise. | |
6973 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
6974 | related target callbacks. Register arm_linux_new_thread and | |
6975 | arm_linux_thread_exit. | |
6976 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
6977 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
6978 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
6979 | ||
b5db5dfc UW |
6980 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
6981 | ||
6982 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
6983 | per-frame locations while within a function epilogue. | |
6984 | ||
e25b2cfa PM |
6985 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
6986 | ||
6987 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
6988 | to GNU coding standards. | |
6989 | ||
4af53f97 PM |
6990 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
6991 | ||
6992 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 6993 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
6994 | (ser_windows_close): Only call CancelIo if function exists. |
6995 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
6996 | to check for existence of CancelIo function in kernel32 DLL. | |
6997 | ||
d0e92d82 HZ |
6998 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
6999 | ||
7000 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
7001 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
7002 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
7003 | * ax-general.c (ax_memcpy): New function. | |
7004 | (ax_print): Handle "printf". | |
7005 | (ax_reqs): Ditto. | |
7006 | * ax.h (ax_memcpy): Forward declare. | |
7007 | * common/ax.def (invalid2): Removed. | |
7008 | (printf): New entry. | |
7009 | * printcmd.c (printcmd.h): New include. | |
7010 | (string_printf): New function. | |
7011 | (ui_printf): Removed. | |
7012 | (printf_command): Remove static. Call string_printf. | |
7013 | (eval_command): Call string_printf. | |
7014 | * printcmd.h: New file. | |
7015 | * tracepoint.c (validate_actionline, | |
7016 | encode_actions_1): handle printf_command. | |
7017 | ||
7d357efd MS |
7018 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
7019 | ||
7020 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
7021 | id rather than pointer to bookmark struct. | |
7022 | (delete_bookmark_command): Use get_number_or_range. | |
7023 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
7024 | (bookmark_1): New function. Print info for one bookmark. | |
7025 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
7026 | ||
7a45ebd7 MS |
7027 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
7028 | ||
f2eb0bc8 | 7029 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 7030 | get_number_or_range. |
65ebfb52 | 7031 | (thread_apply_command): Ditto. |
7a45ebd7 | 7032 | |
94d5e490 TT |
7033 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
7034 | ||
7035 | * common/ax.def: New file. | |
7036 | * ax.h (enum agent_op): Use ax.def. | |
7037 | * ax-general.c (aop_map): Use ax.def. | |
7038 | ||
c7f96d2b TT |
7039 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
7040 | ||
7041 | * ax-general.c (aop_map): Add pick and rot. | |
7042 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
7043 | <DW_OP_rot>: Implement. | |
7044 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
7045 | (ax_pick): Declare. | |
7046 | * ax-general.c (ax_pick): New function. | |
7047 | ||
66694b75 TT |
7048 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
7049 | ||
7050 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
7051 | ||
eeaafae2 JK |
7052 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
7053 | Tom Tromey <tromey@redhat.com> | |
7054 | ||
7055 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
7056 | make_symbol_overload_list_block with NULL BLOCK. | |
7057 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
7058 | ||
3c3fe74c PA |
7059 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
7060 | ||
7061 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
7062 | * breakpoint.h (get_number_or_range): Declare. | |
7063 | * printcmd.c (ALL_DISPLAYS): Declare. | |
7064 | (delete_display): Reimplement taking a display pointer. | |
7065 | (undisplay_command): Accept a range of displays to delete, using | |
7066 | get_number_or_range. | |
7067 | ||
13163d80 PM |
7068 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
7069 | ||
7070 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
7071 | for arrays of unspecified length. | |
7072 | * p-valprint.c (pascal_val_print): Likewise. | |
7073 | ||
b434a28f YQ |
7074 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
7075 | ||
7076 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
7077 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
7078 | (thumb_process_displaced_insn): New. | |
7079 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
7080 | call to arm_process_displaced_insn. | |
7081 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
7082 | ||
9f6f94ff TT |
7083 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
7084 | ||
7085 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
7086 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
7087 | compile_dwarf_to_ax. No longer static. Call | |
7088 | dwarf2_compile_cfa_to_ax. | |
7089 | (locexpr_tracepoint_var_ref): Update. | |
7090 | (loclist_tracepoint_var_ref): Update. | |
7091 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
7092 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
7093 | argument; add 'gdbarch' and 'pc'. | |
7094 | (dwarf2_compile_cfa_to_ax): New function. | |
7095 | (dwarf2_frame_cache): Update. | |
7096 | ||
e67ad678 JB |
7097 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
7098 | ||
7099 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
7100 | in the case of an unconstrained packed array. | |
7101 | ||
946ebb0d YQ |
7102 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
7103 | ||
7104 | * common/Makefile.in: Add more targets for make. | |
7105 | ||
1ba1b353 TT |
7106 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
7107 | ||
7108 | * dwarf2loc.c (unimplemented): Fix typo. | |
7109 | ||
b1bfef65 TT |
7110 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
7111 | ||
7112 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
7113 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
7114 | <DW_OP_deref>: Update. | |
7115 | (disassemble_dwarf_expression): Update. | |
7116 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
7117 | (decode_locdesc): Update. | |
7118 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
7119 | ||
5f1e6f19 TT |
7120 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
7121 | ||
7122 | * ax.h (struct aop_map) <name>: Now const. | |
7123 | ||
a0c78a73 PA |
7124 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
7125 | ||
7126 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
7127 | than axs_rvalue. | |
7128 | ||
946ebb0d | 7129 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
7130 | |
7131 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
7132 | * inferior.h: Declare it. | |
7133 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
7134 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
7135 | returns non-NULL. | |
7136 | ||
08807d5a PA |
7137 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
7138 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7139 | ||
7140 | gdb/ | |
7141 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
7142 | ||
29976f3f PA |
7143 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
7144 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7145 | ||
7146 | * value.c (value_contents_copy_raw): Extend describing comment. | |
7147 | Assert that the destination contents we're overwriting are wholly | |
7148 | available. | |
fb68ae73 | 7149 | (value_contents_copy): Extend describing comment. |
29976f3f | 7150 | |
cd24cfaa PA |
7151 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
7152 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7153 | ||
7154 | * value.c (value_available_contents_eq): Remove redundant local | |
7155 | variables. Fix available contents comparision. | |
7156 | * value.h (value_available_contents_eq): Extend describing | |
7157 | comment. | |
7158 | ||
60bbf338 YQ |
7159 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
7160 | ||
7161 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
7162 | trailing newline. | |
7163 | ||
17450429 PP |
7164 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
7165 | ||
7166 | * breakpoint.c (longjmp_names): New variable. | |
7167 | (struct breakpoint_objfile_data): New type. | |
7168 | (breakpoint_objfile_key): New variable. | |
7169 | (msym_not_found): New variable. | |
7170 | (msym_not_found_p): New predicate. | |
7171 | (get_breakpoint_objfile_data): New function. | |
7172 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
7173 | symbols first. | |
7174 | (create_longjmp_master_breakpoint): Likewise. | |
7175 | (create_std_terminate_master_breakpoint): Likewise. | |
7176 | (create_exception_master_breakpoint): Likewise. | |
7177 | (_initialize_breakpoint): Register per-objfile data key. | |
7178 | ||
af02033e PP |
7179 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
7180 | ||
7181 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
7182 | parameter value. | |
7183 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
7184 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
7185 | value. | |
7186 | (update_breakpoints_after_exec): Adjust. | |
7187 | (breakpoint_re_set): Adjust. | |
7188 | ||
60f98dde MS |
7189 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
7190 | ||
cdf99611 MS |
7191 | * thread.c (info_threads_command): Process arg as thread id, |
7192 | or list of thread ids. | |
7193 | (thread_find_command): New command. | |
7194 | (_initialize_thread): Document argument for info threads. | |
7195 | Document 'thread find' command. | |
7196 | * NEWS: Document new command "thread find". | |
60f98dde | 7197 | |
0feedb2c JK |
7198 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7199 | ||
7200 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
7201 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
7202 | * common/configure: Regenerate with autoconf-2.64. | |
7203 | ||
648cd113 KW |
7204 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
7205 | ||
7206 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
7207 | bool data type to a size of one byte. | |
7208 | ||
5657161f PA |
7209 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
7210 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7211 | ||
7212 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
7213 | look for interface description. | |
7214 | ||
494e194e YQ |
7215 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
7216 | ||
7217 | PR tdep/12352 | |
7218 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
7219 | order to store PC value on stack instead of text section. | |
7220 | ||
d9492458 TJB |
7221 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7222 | ||
7223 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
7224 | the EFP register set size. | |
7225 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
7226 | data from the VMX register. | |
7227 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
7228 | and write data from/to the VMX register. | |
7229 | ||
cdf99611 MS |
7230 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
7231 | ||
7232 | * command.h (enum command_class): New class 'no_set_class', for | |
7233 | "show" commands without a corresponding "set" command. | |
7234 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
7235 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
7236 | "show warranty". | |
7237 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
7238 | "show version". | |
7239 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
7240 | which there is no corresponding "set" command (eg. "show copying"). | |
7241 | ||
424447ee PA |
7242 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7243 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7244 | ||
7245 | * exec.c (section_table_available_memory): Change `len' parameter | |
7246 | type to ULONGEST. | |
7247 | * exec.h (section_table_available_memory): Ditto. | |
7248 | * value.h (read_value_memory): Rename the `offset' parameter to | |
7249 | `embedded_offset'. | |
7250 | ||
c0f61f9c | 7251 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 7252 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
7253 | |
7254 | * memrange.c (compare_mem_ranges): Mention sort order in | |
7255 | describing comment. | |
7256 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
7257 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
7258 | mention what happens to RESULT when the target does not support | |
7259 | the query. | |
7260 | ||
6bfc80c7 PA |
7261 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7262 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
7263 | ||
7264 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
7265 | range. | |
7266 | ||
e7303042 PA |
7267 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7268 | ||
7269 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
7270 | No longer handle NULL values. | |
7271 | ||
8af8e3bc PA |
7272 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7273 | ||
7274 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
7275 | * value.c: Include "exceptions.h". | |
7276 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
7277 | generic error. | |
7278 | * cp-abi.c: Include gdb_assert.h. | |
7279 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
7280 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
7281 | errors. | |
7282 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
7283 | parameters. No longer returns -1 on error. | |
7284 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
7285 | `val' parameters. | |
7286 | * cp-valprint.c: Include exceptions.h. | |
7287 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
7288 | the baseclass_offset. Handle unavailable base classes. Use | |
7289 | val_print_invalid_address. | |
7290 | * p-valprint.c: Include exceptions.h. | |
7291 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
7292 | when fetching the baseclass_offset. No longer expect | |
7293 | baseclass_offset returning -1. Handle unavailable base classes. | |
7294 | Use val_print_invalid_address. | |
7295 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
7296 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
7297 | `embedded_offset' and `val' parameters. Adjust. | |
7298 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
7299 | parameter, and change its type to gdb_byte pointer. Add | |
7300 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
7301 | baseclass_offset returning -1. | |
7302 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
7303 | value_contents. Adjust. | |
7304 | (search_struct_field): No longer expect baseclass_offset returning | |
7305 | -1. | |
7306 | (search_struct_method): If reading memory from the target is | |
7307 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
7308 | longer expect baseclass_offset returning -1. | |
7309 | (find_method_list): No longer expect baseclass_offset returning | |
7310 | -1. Use value_contents_for_printing rather than value_contents. | |
7311 | * valprint.c (val_print_invalid_address): New function. | |
7312 | * valprint.h (val_print_invalid_address): Declare. | |
7313 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
7314 | and `val' parameters. No longer expect baseclass_offset returning | |
7315 | -1. Adjust. | |
7316 | * gnu-v2-abi.c: Include "exceptions.h". | |
7317 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
7318 | parameters. Handle unavailable memory. Recurse through | |
7319 | gnuv2_baseclass_offset directly, rather than through | |
7320 | baseclass_offset. No longer returns -1 on not found, instead | |
7321 | throw an error. | |
7322 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
7323 | `val' parameters. Adjust. | |
7324 | ||
1b28d0b3 PA |
7325 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7326 | ||
7327 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
7328 | almost but not quite adjacent. | |
7329 | ||
ec0a52e1 PA |
7330 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7331 | ||
7332 | * value.h (value_entirely_available): Declare. | |
7333 | * value.c (value_entirely_available): New function. | |
7334 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
7335 | real type if the pointer is unavailable. | |
7336 | ||
24e6bcee PA |
7337 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7338 | ||
7339 | * valops.c (value_repeat): Use read_value_memory instead of | |
7340 | read_memory. | |
7341 | ||
39d37385 PA |
7342 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7343 | ||
7344 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
7345 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
7346 | functions. | |
7347 | (value_primitive_field): Use value_contents_copy_raw instead of | |
7348 | memcpy. | |
7349 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
7350 | memcpy. | |
7351 | (value_array, value_slice): Ditto. | |
7352 | * valarith.c (value_subscripted_rvalue): Use | |
7353 | value_contents_copy_raw instead of memcpy. | |
7354 | ||
a3d34bf4 PA |
7355 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7356 | ||
7357 | <unavailable> references. | |
7358 | ||
7359 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
7360 | avoiding read_memory. | |
7361 | ||
9fc6d940 PA |
7362 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7363 | ||
7364 | * c-valprint.c (c_val_print): Print a string with unavailable | |
7365 | contents as an array. | |
7366 | ||
5467c6c8 PA |
7367 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7368 | ||
7369 | * value.h (unpack_bits_as_long): Delete declaration. | |
7370 | (unpack_value_bits_as_long): Declare. | |
7371 | (unpack_value_field_as_long): Declare. | |
7372 | (value_field_bitfield): Declare. | |
7373 | * value.c (unpack_bits_as_long): Rename to... | |
7374 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
7375 | value parameters. Return the extracted result in a new output | |
7376 | parameter. If the value contents are unavailable, return false, | |
7377 | otherwise return true. | |
7378 | (unpack_value_bits_as_long): New. | |
7379 | (unpack_field_as_long): Rename to... | |
7380 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
7381 | Add embedded_offset and value parameters. Return the extracted | |
7382 | result in a new output parameter. If the value contents are | |
7383 | unavailable, return false, otherwise return true. | |
7384 | (unpack_value_field_as_long): New. | |
7385 | (unpack_field_as_long_1): New. | |
7386 | (unpack_field_as_long): Reimplement as wrapper around | |
7387 | unpack_value_field_as_long_1. | |
7388 | (value_field_bitfield): New function. | |
7389 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
7390 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
7391 | is unavailable. | |
7392 | * jv-valprint.c (java_print_value_fields): Use | |
7393 | value_field_bitfield. | |
7394 | * p-valprint.c (pascal_object_print_value_fields): Use | |
7395 | value_field_bitfield. | |
7396 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
7397 | ||
3158c6ed PA |
7398 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7399 | ||
7400 | * value.c (get_internalvar_integer): Also return the int value of | |
7401 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
7402 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
7403 | ||
9fbdca0d PA |
7404 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7405 | ||
7406 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
7407 | INTERNALVAR_POINTER. | |
7408 | <pointer>: Delete. | |
7409 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
7410 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
7411 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
7412 | ||
c8c1c22f PA |
7413 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7414 | ||
7415 | * value.h (value_available_contents_eq): Declare. | |
7416 | * value.c (find_first_range_overlap): New function. | |
7417 | (value_available_contents_eq): New function. | |
7418 | * valprint.c (val_print_array_elements): Use | |
7419 | value_available_contents_eq. | |
7420 | * ada-valprint.c (val_print_packed_array_elements): Use | |
7421 | value_available_contents_eq. | |
7422 | * jv-valprint.c (java_value_print): Use | |
7423 | value_available_contents_eq. | |
7424 | ||
e6e4e701 PA |
7425 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7426 | ||
7427 | * target.c (target_read_live_memory): New function. | |
7428 | (memory_xfer_live_readonly_partial): New. | |
7429 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
7430 | reading unavailable read-only memory from read-only regions of | |
7431 | live target memory. | |
7432 | * tracepoint.c (disconnect_tracing): Adjust. | |
7433 | (set_current_traceframe): New, factored out from | |
7434 | set_traceframe_number. | |
7435 | (set_traceframe_number): Reimplement to only change the traceframe | |
7436 | number on the GDB side. | |
7437 | (do_restore_current_traceframe_cleanup): Adjust. | |
7438 | (make_cleanup_restore_traceframe_number): New. | |
7439 | (cur_traceframe_number): New global. | |
7440 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
7441 | (set_tfile_traceframe): New function. | |
7442 | (tfile_trace_find): If looking up a traceframe using any method | |
7443 | other than by number, make sure the current tfile traceframe | |
7444 | matches gdb's current traceframe. Update the current tfile | |
7445 | traceframe if the lookup succeeded. | |
7446 | (tfile_fetch_registers, tfile_xfer_partial) | |
7447 | (tfile_get_trace_state_variable_value): Make sure the remote | |
7448 | traceframe matches gdb's current traceframe. | |
7449 | * remote.c (remote_traceframe_number): New global. | |
7450 | (remote_open_1): Set it to -1. | |
7451 | (set_remote_traceframe): New function. | |
7452 | (remote_fetch_registers, remote_store_registers) | |
7453 | (remote_xfer_memory, remote_xfer_partial) | |
7454 | (remote_get_trace_state_variable_value): Make sure the remote | |
7455 | traceframe matches gdb's current traceframe. | |
7456 | (remote_trace_find): If looking up a traceframe using any method | |
7457 | other than by number, make sure the current remote traceframe | |
7458 | matches gdb's current traceframe. Update the current remote | |
7459 | traceframe if the lookup succeeded. | |
7460 | * infrun.c (fetch_inferior_event): Adjust. | |
7461 | * tracepoint.h (set_current_traceframe): Declare. | |
7462 | (get_traceframe_number, set_traceframe_number): Add describing | |
7463 | comments. | |
7464 | ||
e6ca34fc PA |
7465 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7466 | ||
7467 | Mark pieces of values as unavailable if the corresponding memory | |
7468 | is unavailable. | |
7469 | ||
7470 | * valops.c: Include tracepoint.h. | |
7471 | (value_fetch_lazy): Use read_value_memory. | |
7472 | (read_value_memory): New. | |
7473 | * value.h (read_value_memory): Declare. | |
7474 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
7475 | * exec.c (section_table_available_memory): New function. | |
7476 | * exec.h (section_table_available_memory): Declare. | |
7477 | ||
2a7498d8 PA |
7478 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7479 | ||
7480 | * Makefile.in (SFILES): Add memrange.c. | |
7481 | (HFILES_NO_SRCDIR): Add memrange.h. | |
7482 | (COMMON_OBS): Add memrange.o. | |
7483 | * memrange.c: New file. | |
7484 | * memrange.h: New file. | |
7485 | * tracepoint.c: Include memrange.h. | |
7486 | (struct mem_range): Delete. | |
7487 | (mem_range_s): Delete. | |
7488 | (traceframe_available_memory): New function. | |
7489 | * tracepoint.h (traceframe_available_memory): Declare. | |
7490 | ||
b3b9301e PA |
7491 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7492 | ||
7493 | * target.h (struct traceframe_info): Forward declare. | |
7494 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
7495 | (struct target_ops) <to_traceframe_info>: New field. | |
7496 | (target_traceframe_info): New. | |
7497 | * target.c (update_current_target): Inherit and default | |
7498 | to_traceframe_info. | |
7499 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
7500 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
7501 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
7502 | (remote_traceframe_info): New. | |
7503 | (init_remote_ops): Install it. | |
7504 | (_initialize_remote): Install "set/show remote traceframe-info" | |
7505 | commands. | |
7506 | * tracepoint.h (parse_traceframe_info): Declare. | |
7507 | * tracepoint.c (struct mem_range): New. | |
7508 | (mem_range_s): New typedef. | |
7509 | (struct traceframe_info): New. | |
7510 | (traceframe_info): New global. | |
7511 | (free_traceframe_info): New function. | |
7512 | (clear_traceframe_info): New function. | |
7513 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
7514 | info. | |
7515 | (build_traceframe_info): New function. | |
7516 | (tfile_traceframe_info): New function. | |
7517 | (init_tfile_ops): Install tfile_traceframe_info. | |
7518 | (traceframe_info_start_memory, free_result): New functions. | |
7519 | (memory_attributes, traceframe_info_elements): New globals. | |
7520 | (parse_traceframe_info, get_traceframe_info): New functions. | |
7521 | * features/traceframe-info.dtd: New file. | |
7522 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
7523 | ||
4e07d55f PA |
7524 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
7525 | ||
7526 | Base support for <unavailable> value contents. | |
7527 | ||
4e07d55f PA |
7528 | * value.h (value_bytes_available): Declare. |
7529 | (mark_value_bytes_unavailable): Declare. | |
7530 | * value.c (struct range): New struct. | |
7531 | (range_s): New typedef. | |
7532 | (ranges_overlap): New function. | |
7533 | (range_lessthan): New function. | |
7534 | (ranges_contain_p): New function. | |
7535 | (struct value) <unavailable>: New field. | |
7536 | (value_bytes_available): New function. | |
7537 | (mark_value_bytes_unavailable): New function. | |
7538 | (require_not_optimized_out): Constify parameter. | |
7539 | (require_available): New function. | |
7540 | (value_contents_all, value_contents): Require all bytes be | |
7541 | available. | |
7542 | (value_free): Free `unavailable'. | |
7543 | (value_copy): Copy `unavailable'. | |
7544 | * valprint.h (val_print_unavailable): Declare. | |
7545 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
7546 | to `embedded_offset'. If printing a scalar, check whether the | |
7547 | value chunk is available. | |
7548 | (val_print_unavailable): New. | |
7549 | (val_print_scalar_formatted): Check whether the value is | |
7550 | available. | |
7551 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
7552 | pretty-printing unavailable values. | |
7553 | ||
bc9a5551 JK |
7554 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
7555 | ||
7556 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
7557 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
7558 | variable param_type, initialize it. Remove const/volatile qualifiers | |
7559 | for language_cplus and !show_artificial. Use param_type. | |
7560 | ||
93b55aa1 JK |
7561 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
7562 | ||
7563 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
7564 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
7565 | * symtab.h (struct symtab) <next>: Comment extension. | |
7566 | ||
181d9476 YQ |
7567 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
7568 | ||
7569 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
7570 | ||
b708a5c7 JK |
7571 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
7572 | ||
7573 | * common/Makefile.in: Add copyright header. | |
7574 | ||
c5187ac6 PA |
7575 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
7576 | ||
7577 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
7578 | here ... | |
7579 | (fetch_inferior_event): ... to here. | |
7580 | ||
4f3e6fb7 YQ |
7581 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
7582 | ||
7583 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
7584 | libcommon.a. | |
7585 | * configure.ac: Add common to sub dir. | |
7586 | * configure: Regenerate. | |
7587 | ||
b708a5c7 JK |
7588 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
7589 | ||
7590 | Build libcommon.a. | |
7591 | ||
7592 | * common/Makefile.in: New. | |
7593 | * common/configure.ac: New. | |
7594 | * common/aclocal.m4: New. | |
7595 | * common/configure: Generate. | |
7596 | ||
2287cc7e PA |
7597 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
7598 | ||
7599 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
7600 | side of the parenthesis. | |
7601 | ||
7602 | Merge from GCC: | |
7603 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 7604 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 7605 | |
fd62cb89 MS |
7606 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
7607 | ||
7608 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
7609 | ||
56d2815c JK |
7610 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
7611 | ||
7612 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
7613 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
7614 | psubd and paddd. | |
7615 | ||
4f7d61a8 JK |
7616 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
7617 | ||
7618 | PR 12361. | |
7619 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
7620 | phsubsw. | |
7621 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
7622 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
7623 | ||
54fcddd0 UW |
7624 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
7625 | ||
7626 | * dwarf2read.c (read_subroutine_type): Set special calling | |
7627 | convention flag for functions compiled by IBM XL C for OpenCL. | |
7628 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
7629 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
7630 | calling convention. | |
7631 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
7632 | IBM OpenCL vector types calling convention. | |
7633 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
7634 | (ppc_sysv_abi_broken_return_value): Likewise. | |
7635 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
7636 | types calling convention. | |
7637 | (ppc64_sysv_abi_return_value): Likewise. | |
7638 | * spu-tdep.c: Include "dwarf2.h" | |
7639 | (spu_return_value): Implement IBM OpenCL vector types calling | |
7640 | convention. | |
7641 | ||
d6dafb7c UW |
7642 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
7643 | ||
7644 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
7645 | correct ABI for AltiVec vector arguments. | |
7646 | ||
32b72a42 PA |
7647 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
7648 | ||
7649 | * valprint.c (val_print): Extend comment. | |
7650 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
7651 | interface explanation to val_print. | |
7652 | (ada_val_print_array): Adjust comment to current interface. | |
7653 | (print_field_values): Adjust comment to current interface. | |
7654 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
7655 | explanation to val_print. | |
7656 | * f-valprint.c (f_val_print): Ditto. | |
7657 | * jv-valprint.c (java_val_print): Ditto. | |
7658 | * m2-valprint.c (m2_val_print): Ditto. | |
7659 | * p-valprint.c (pascal_val_print): Ditto. | |
7660 | ||
9998af43 TJB |
7661 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7662 | ||
7663 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
7664 | ||
505500db | 7665 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 7666 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
7667 | |
7668 | * python/py-inferior.c (python_on_normal_stop): New function. | |
7669 | (python_on_resume): New function. | |
7670 | (python_inferior_exit): New function. | |
7671 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
7672 | inferior_exit observers. | |
7673 | * python/py-evtregistry.c: New file. | |
7674 | * python/py-threadevent.c : New file. | |
7675 | * python/py-event.c: New file. | |
7676 | * python/py-evts.c: New file. | |
7677 | * python/py-continueevent.c: New file. | |
7678 | * python/py-bpevent.c: New file. | |
7679 | * python/py-signalevent.c: New file. | |
7680 | * python/py-exetiedevent.c: New file. | |
7681 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
7682 | Move struct breakpoint_object from here... | |
7683 | * python/python-internal.h: ... to here. | |
7684 | * python/py-event.h: New file. | |
7685 | * python/py-events.h: New file. | |
7686 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
7687 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
7688 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
7689 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
7690 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
7691 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
7692 | Add build rules for all the above. | |
7693 | ||
9e0ac564 TT |
7694 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
7695 | ||
7696 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
7697 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
7698 | (dwarf2_section_size): New function. | |
7699 | (dwarf2_get_section_info): Unconditionally read section. | |
7700 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
7701 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
7702 | (dwarf2_symbol_mark_computed): Likewise. | |
7703 | ||
eee5b35e DD |
7704 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
7705 | ||
7706 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
7707 | ||
385203ed DD |
7708 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
7709 | ||
7710 | * mips-linux-tdep.c: Include xml-syscall.h. | |
7711 | (mips_linux_get_syscall_number): New function. | |
7712 | (mips_linux_init_abi): Add calls to | |
7713 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
7714 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
7715 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
7716 | * syscalls/mips-n32-linux.xml: New file. | |
7717 | * syscalls/mips-n64-linux.xml: New file. | |
7718 | * syscalls/mips-o32-linux.xml: New file. | |
7719 | ||
9277c30c UW |
7720 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
7721 | ||
7722 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
7723 | Complain about inverted range entries. | |
7724 | (dwarf2_record_block_ranges): Likewise. | |
7725 | ||
a3be7890 TJB |
7726 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7727 | ||
7728 | Fix some typos. | |
7729 | * breakpoint.c (update_watchpoint): Fix name of the | |
7730 | update_global_location_list function. | |
7731 | (print_one_breakpoint): Fix typo. | |
7732 | (_initialize_breakpoint): Remove extra space in hbreak help | |
7733 | string. | |
7734 | * breakpoint.h (struct bp_location) <length>: Fix field | |
7735 | description. | |
7736 | ||
041274d8 PA |
7737 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
7738 | ||
7739 | * regcache.c (registers_changed_ptid): Don't explictly always | |
7740 | clear `current_regcache'. Only clear current_thread_ptid and | |
7741 | current_thread_arch when PTID matches. Only reinit the frame | |
7742 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
7743 | call to ... | |
7744 | (registers_changed): ... here. | |
7745 | ||
c1c2ab58 UW |
7746 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
7747 | ||
7748 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
7749 | starts with __stack_chk_guard as stack guard symbol. | |
7750 | ||
9011945e AB |
7751 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
7752 | ||
7753 | * disasm.c (compare_lines): Handle the end of sequence markers | |
7754 | within the line table to better support disassembling over | |
7755 | compilation unit boundaries. | |
7756 | ||
e0634ccf UW |
7757 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
7758 | ||
7759 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
7760 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
7761 | implementation even if no symbols are available. | |
7762 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
7763 | (arm_analyze_prologue): Likewise. | |
7764 | ||
0e9e9abd UW |
7765 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
7766 | ||
7767 | * arm-tdep.c: Include "observer.h". | |
7768 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
7769 | (arm_exidx_data_key): New static variable. | |
7770 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
7771 | (struct arm_exidx_data): Likewise. | |
7772 | (arm_exidx_data_free): New function. | |
7773 | (arm_compare_exidx_entries): Likewise. | |
7774 | (arm_obj_section_from_vma): Likewise. | |
7775 | (arm_exidx_new_objfile): Likewise. | |
7776 | (arm_find_exidx_entry): Likewise. | |
7777 | (arm_exidx_fill_cache): Likewise. | |
7778 | (arm_exidx_unwind_sniffer): Likewise. | |
7779 | (arm_exidx_unwind): New global variable. | |
7780 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
7781 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
7782 | observer. Register arm_exidx_data_key as objfile data. | |
7783 | ||
2e9e421f UW |
7784 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
7785 | ||
7786 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
7787 | due to accessing uninitialized variable. Fix indentation. | |
7788 | ||
580688f3 PA |
7789 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
7790 | ||
7791 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
7792 | adjustment, create a new value with adjusted contents rather than | |
7793 | changing the contents of the value being printed (and getting it | |
7794 | wrong). | |
7795 | ||
3d2c1d41 PA |
7796 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
7797 | ||
7798 | * xml-support.c (xml_find_attribute): New. | |
7799 | (xinclude_start_include): Use it. | |
7800 | * xml-support.h (xml_find_attribute): Declare. | |
7801 | * memory-map.c (memory_map_start_memory) | |
7802 | (memory_map_start_property): Use xml_find_attribute. | |
7803 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
7804 | xml_find_attribute. | |
7805 | * remote.c (start_thread): Use xml_find_attribute. | |
7806 | * solib-target.c (library_list_start_segment) | |
7807 | (library_list_start_section, library_list_start_library) | |
7808 | (library_list_start_list): Use xml_find_attribute. | |
7809 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
7810 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
7811 | (tdesc_start_field): Use xml_find_attribute. | |
7812 | ||
0af3e2db UW |
7813 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
7814 | ||
7815 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
7816 | (BUILD_OCL_VTYPES): Update. | |
7817 | ||
c1039e3c JB |
7818 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
7819 | ||
7820 | * configure.ac: Work around non-GNU sed limitation when computing | |
7821 | python version number. | |
7822 | * configure: Regenerate. | |
7823 | ||
600ea1be JK |
7824 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7825 | ||
7826 | Fix debug printing of TYPE_INSTANCE. | |
7827 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
7828 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
7829 | ||
56c12414 JK |
7830 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7831 | ||
7832 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
7833 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
7834 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
7835 | * ada-operator.inc: Rename the file to ... | |
7836 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
7837 | * expprint.c (op_name_standard): Remove all the entries. Include | |
7838 | "std-operator.def" instead. | |
7839 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
7840 | "ada-operator.def". Move all the entries ... | |
7841 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
7842 | ||
c52b559d PP |
7843 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
7844 | ||
7845 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
7846 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
7847 | * jit.c (jit_descriptor_addr): Delete. | |
7848 | (registering_code): Delete. | |
7849 | (clear_int): Delete. | |
7850 | (jit_inferior_data): New variable. | |
7851 | (struct jit_inferior_data): New type. | |
7852 | (get_jit_inferior_data): New function. | |
7853 | (jit_inferior_data_cleanup): New function. | |
7854 | (jit_read_descriptor): Adjust. | |
7855 | (jit_register_code): Adjust. | |
7856 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
7857 | (jit_inferior_init): ... from here. | |
7858 | (jit_breakpoint_re_set): Adjust. | |
7859 | (jit_reset_inferior_data_and_breakpoints): New function. | |
7860 | (jit_inferior_created_observer): Adjust. | |
7861 | (jit_inferior_exit_hook): Adjust. | |
7862 | (jit_executable_changed_observer): New function. | |
7863 | (jit_event_handler): Adjust. | |
7864 | (_initialize_jit): Adjust. | |
7865 | ||
e839132d MS |
7866 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
7867 | ||
7868 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
7869 | line. | |
7870 | ||
47a80e90 TT |
7871 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
7872 | ||
7873 | PR python/12216: | |
7874 | * python/python.c (execute_gdb_command): Call | |
7875 | prevent_dont_repeat. | |
7876 | * top.c (suppress_dont_repeat): New global. | |
7877 | (dont_repeat): Use it. | |
7878 | (prevent_dont_repeat): New function. | |
7879 | * command.h (prevent_dont_repeat): Declare. | |
7880 | ||
45a43567 TT |
7881 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
7882 | ||
7883 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
7884 | * python/py-breakpoint.c (bppy_set_silent): Use | |
7885 | breakpoint_set_silent. | |
7886 | (bppy_set_thread): Use breakpoint_set_thread. | |
7887 | (bppy_set_task): Use breakpoint_set_task. | |
7888 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
7889 | (breakpoint_set_task): Declare. | |
7890 | (make_breakpoint_silent): Remove. | |
7891 | * breakpoint.c (breakpoint_set_silent): New function. | |
7892 | (breakpoint_set_thread): Likewise. | |
7893 | (breakpoint_set_task): Likewise. | |
7894 | (make_breakpoint_silent): Remove. | |
7895 | ||
09d682a4 TT |
7896 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
7897 | ||
7898 | * breakpoint.h (user_breakpoint_p): Declare. | |
7899 | * breakpoint.c (user_breakpoint_p): New function. | |
7900 | (breakpoint_1): Use it. | |
7901 | (save_breakpoints): Likewise. | |
7902 | ||
9c4ea6c5 JB |
7903 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
7904 | ||
7905 | * configure.ac: Add handling of Python distribution on Windows. | |
7906 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
7907 | sysconfig variables are not defined, then do not use them. | |
7908 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
7909 | instead. On Windows, return all paths using forward-slashes | |
7910 | rather than backslashes. | |
7911 | ||
ac534cba JB |
7912 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
7913 | ||
7914 | * configure.ac: Remove fallback behavior for building | |
7915 | against Python. Remove tweaking of Python include path. | |
7916 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
7917 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
7918 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
7919 | Always restore CPPFLAGS and LIBS after linking test. | |
7920 | * configure: Regenerated. | |
7921 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
7922 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
7923 | * python/python-internal.h: Adjust includes of Python .h files. | |
7924 | ||
c2f0d045 JB |
7925 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
7926 | ||
7927 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
7928 | in error message. | |
7929 | ||
6b0c4c1f JB |
7930 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
7931 | ||
7932 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
7933 | value test. | |
7934 | ||
672c9795 YQ |
7935 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
7936 | ||
7937 | * arm-linux-nat.c: Update calls to regcache_register_status | |
7938 | instead of regcache_valid_p. | |
7939 | * aix-thread.c: Likewise. | |
7940 | * i386gnu-nat.c: Likewise. | |
7941 | ||
80b23b6a JK |
7942 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
7943 | ||
7944 | Fix crash. | |
7945 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
7946 | touching TYPE_FIELD_ARTIFICIAL. | |
7947 | ||
4cd712bd RE |
7948 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
7949 | ||
7950 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
7951 | Committers. | |
7952 | ||
ffd5ec24 PA |
7953 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
7954 | ||
7955 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
7956 | selected, don't try iterating over the traceframe's blocks. | |
7957 | (tfile_has_stack): If there's no traceframe selected, then there's | |
7958 | no stack. | |
7959 | (tfile_has_registers): If there's no traceframe selected, then | |
7960 | there's no registers. | |
7961 | ||
e8c9e0a1 PA |
7962 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
7963 | ||
7964 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
7965 | haven't read anything. | |
7966 | ||
de15c4ab PA |
7967 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
7968 | ||
7969 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
7970 | and val_print_scalar_formatted. | |
7971 | ||
9f41c731 PA |
7972 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
7973 | ||
7974 | * tracepoint.c (tfile_read): New. | |
7975 | (tfile_open): Use it. | |
7976 | (tfile_get_traceframe_address): Use it. | |
7977 | (tfile_trace_find): Use it. | |
7978 | (walk_blocks_callback_func): New typedef. | |
7979 | (match_blocktype): New function. | |
7980 | (traceframe_walk_blocks): New function. | |
7981 | (traceframe_find_block_type): New function. | |
7982 | (tfile_fetch_registers, tfile_xfer_partial) | |
7983 | (tfile_get_trace_state_variable_value): Use | |
7984 | traceframe_find_block_type and tfile_read. | |
7985 | ||
cdefc55d KB |
7986 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
7987 | ||
7988 | * remote-mips.c: Add internationalization mark ups. Remove | |
7989 | trailing \n from already marked up strings. | |
7990 | ||
a81766d8 TT |
7991 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
7992 | ||
7993 | * python/py-prettyprint.c (print_string_repr): Clear | |
7994 | 'addressprint' option when calling val_print_string. | |
7995 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
7996 | option when calling val_print_string. | |
7997 | ||
74aedc46 TT |
7998 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
7999 | ||
8000 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
8001 | GDB_PY_LL_ARG. | |
8002 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
8003 | macros. | |
8004 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
8005 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
8006 | (gdb_py_long_as_ulongest): New defines. | |
8007 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
8008 | (gdb_py_int_as_long): Declare. | |
8009 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
8010 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
8011 | (valpy_long): Add comment. | |
8012 | * python/py-utils.c (get_addr_from_python): Use | |
8013 | gdb_py_long_as_ulongest. Handle overflow properly. | |
8014 | (gdb_py_object_from_longest): New function. | |
8015 | (gdb_py_object_from_ulongest): Likewise. | |
8016 | (gdb_py_int_as_long): Likewise. | |
8017 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
8018 | * python/py-symtab.c (salpy_get_pc): Use | |
8019 | gdb_py_long_from_ulongest. | |
8020 | (salpy_get_line): Use PyInt_FromLong. | |
8021 | * python/py-param.c (set_parameter_value): Use | |
8022 | gdb_py_int_as_long. | |
8023 | * python/py-lazy-string.c (stpy_get_address): Use | |
8024 | gdb_py_long_from_ulongest. | |
8025 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
8026 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
8027 | * python/py-breakpoint.c (bppy_set_thread): Use | |
8028 | gdb_py_int_as_long. | |
8029 | (bppy_set_task): Likewise. | |
8030 | (bppy_set_ignore_count): Likewise. | |
8031 | (bppy_set_hit_count): Likewise. | |
8032 | * python/py-block.c (blpy_get_start): Use | |
8033 | gdb_py_object_from_ulongest. | |
8034 | (blpy_get_end): Likewise. | |
8035 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
8036 | ||
e4f6d2ec TJB |
8037 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
8038 | ||
8039 | PR/symtab 11766: | |
8040 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
8041 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
8042 | equality test for objfile, initialize addr_low if needed. | |
8043 | ||
b30aa278 PA |
8044 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8045 | ||
8046 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
8047 | ||
ab2188aa PA |
8048 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8049 | ||
8050 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
8051 | instead of print_scalar_formatted. | |
8052 | (print_scalar_formatted): Don't handle 's' format strings here, | |
8053 | and add an assertion that we never see such format here. | |
8054 | * valprint.h (val_print_scalar_formatted): Declare. | |
8055 | * valprint.c (val_print_scalar_formatted): New. | |
8056 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
8057 | instead of print_scalar_formatted. | |
8058 | * jv-valprint.c (java_val_print): Ditto. | |
8059 | * p-valprint.c (pascal_val_print): Ditto. | |
8060 | * ada-valprint.c (ada_val_print_1): Ditto. | |
8061 | * f-valprint.c (f_val_print): Ditto. | |
8062 | * infcmd.c (registers_info): Ditto. | |
8063 | * m2-valprint.c (m2_val_print): Ditto. | |
8064 | ||
66d61a4c PA |
8065 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8066 | ||
8067 | * m2-valprint.c (print_unbounded_array): Pass | |
8068 | value_contents_for_printing rather than value_contents, to | |
8069 | m2_print_array_contents. Also pass in the value. | |
8070 | ||
831adc1f JK |
8071 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
8072 | ||
8073 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
8074 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
8075 | ||
20622269 PA |
8076 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8077 | ||
8078 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
8079 | than frame_register, and always pass a valid value to val_print. | |
8080 | ||
585fdaa1 PA |
8081 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8082 | ||
8083 | Centralize printing "<optimized out>". | |
8084 | ||
8085 | * valprint.h (val_print_optimized_out): Declare. | |
8086 | * cp-valprint.c (cp_print_value_fields): Use | |
8087 | val_print_optimized_out. | |
8088 | * jv-valprint.c (java_print_value_fields): Ditto. | |
8089 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
8090 | * printcmd.c (print_formatted): Ditto. | |
8091 | * valprint.c (valprint_check_validity): Ditto. | |
8092 | (value_check_printable): Ditto. | |
8093 | (val_print_optimized_out): New. | |
8094 | ||
29ec5263 PA |
8095 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8096 | ||
8097 | * infcmd.c (default_print_registers_info): Allocate values so to | |
8098 | never pass a NULL value to val_print. | |
8099 | ||
de4127a3 PA |
8100 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8101 | ||
8102 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
8103 | boolean. Make sure to always pass a value that matches the | |
8104 | contents buffer to callees. Preserve `address' for following | |
8105 | iterations. | |
8106 | * value.c (value_contents_for_printing_const): New. | |
8107 | (value_address): Constify value argument. | |
8108 | * value.h (value_contents_for_printing_const): Declare. | |
8109 | (value_address): Constify value argument. | |
8110 | ||
ee99023e PA |
8111 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8112 | ||
8113 | * regcache.c (struct regcache_descr): Rename | |
8114 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
8115 | and sizeof_cooked_register_valid_p to | |
8116 | sizeof_cooked_register_status. | |
8117 | (init_regcache_descr): Adjust. | |
8118 | (struct regcache): Rename register_valid_p field to | |
8119 | register_status. | |
8120 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
8121 | (do_cooked_read): Adjust. | |
8122 | (regcache_valid_p): Rename to ... | |
8123 | (regcache_register_status): ... this. Adjust. | |
8124 | (regcache_invalidate): Adjust. | |
8125 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
8126 | Adjust. | |
8127 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
8128 | as unavailable, not valid. | |
8129 | (regcache_dump): Adjust. | |
8130 | * regcache.h (enum register_status): New. | |
8131 | (regcache_register_status): Declare. | |
8132 | (regcache_invalidate): Delete declaration. | |
8133 | * corelow.c (get_core_registers): Adjust. | |
8134 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
8135 | * trad-frame.c (REG_VALUE): Rename to ... | |
8136 | (TF_REG_VALUE): ... this. | |
8137 | (REG_UNKNOWN): Rename to ... | |
8138 | (TF_REG_UNKNOWN): ... this. | |
8139 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
8140 | * mi/mi-main.c (register_changed_p): Adjust. | |
8141 | ||
99e42fd8 PA |
8142 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8143 | ||
8144 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
8145 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
8146 | overallocate hack. | |
8147 | (regcache_xmalloc): Rename to ... | |
8148 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
8149 | Allocate the regcache type accordingly. | |
8150 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
8151 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
8152 | cooked registers, not raw. | |
8153 | (regcache_dup_no_passthrough): Delete. | |
8154 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
8155 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
8156 | mention obsolete write_register_bytes. | |
8157 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
8158 | ||
f7605bc2 PA |
8159 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8160 | ||
8161 | Stop remote_read_bytes from handling partial reads itself. | |
8162 | ||
8163 | * remote-fileio.c: Include target.h. | |
8164 | (remote_fileio_write_bytes): Delete. | |
8165 | (remote_fileio_func_open, remote_fileio_func_write) | |
8166 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
8167 | target_read_memory. | |
8168 | (remote_fileio_func_stat): Use target_read_memory and | |
8169 | target_write_memory. | |
8170 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
8171 | (remote_fileio_func_system): Use target_read_memory. | |
8172 | * remote.c (remote_write_bytes): Make it static. | |
8173 | (remote_read_bytes): Don't handle partial reads here. | |
8174 | * remote.h (remote_read_bytes): Delete declaration. | |
8175 | ||
efc0eabd PA |
8176 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
8177 | ||
8178 | Simplify XML parsing a bit. | |
8179 | ||
8180 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
8181 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
8182 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
8183 | parameter. | |
8184 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
8185 | gdb_xml_create_parser_and_cleanup_1. | |
8186 | (gdb_xml_parse_quick): New. | |
8187 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
8188 | * osdata.c (osdata_parse): Ditto. | |
8189 | * remote.c (remote_threads_info): Ditto. | |
8190 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
8191 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
8192 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
8193 | ||
314d366a KB |
8194 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
8195 | ||
8196 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
8197 | with remote-mips.o added to gdb_target_obs. | |
8198 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
8199 | ||
a491d753 PA |
8200 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
8201 | ||
8202 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
8203 | correct struct value to val_print. | |
8204 | (ada_val_print_1): Ditto. | |
8205 | ||
490f124f PA |
8206 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
8207 | ||
8208 | Don't lose embedded_offset in printing routines throughout. | |
8209 | ||
8210 | * valprint.h (val_print_array_elements): Change prototype. | |
8211 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
8212 | parameter, and adjust to pass it down to val_print, while passing | |
8213 | `valaddr' or `address' unmodified. Take embedded_offset into | |
8214 | account when checking repetitions. | |
8215 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
8216 | val_print_array_elements instead of adjusting `valaddr' and | |
8217 | `address'. | |
8218 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
8219 | embedded_offset to val_print_array_elements instead of adjusting | |
8220 | `valaddr'. | |
8221 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
8222 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
8223 | val_print_array_elements and pascal_object_print_value_fields | |
8224 | instead of adjusting `valaddr'. | |
8225 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
8226 | adjust to use it. | |
8227 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
8228 | use it. | |
8229 | (pascal_object_print_static_field): Use | |
8230 | value_contents_for_printing/value_embedded_offset, rather than | |
8231 | value_contents. | |
8232 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
8233 | parameter, and adjust to use it. Use | |
8234 | value_contents_for_printing/value_embedded_offset, rather than | |
8235 | value_contents. | |
8236 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
8237 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
8238 | it. | |
8239 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
8240 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
8241 | Instead work with offsets. Use | |
8242 | value_contents_for_printing/value_embedded_offset, rather than | |
8243 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
8244 | and use value_from_pointer to extract a target pointer, rather | |
8245 | than value_from_longest. | |
8246 | (print_variant_part): Add `offset' parameter. Replace | |
8247 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
8248 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
8249 | (ada_value_print): Use | |
8250 | value_contents_for_printing/value_embedded_offset, rather than | |
8251 | value_contents. | |
8252 | (print_record): Add `offset' parameter, and adjust to pass it | |
8253 | down. | |
8254 | (print_field_values): Add `offset' parameter. Replace | |
8255 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
8256 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
8257 | Use value_contents_for_printing/value_embedded_offset, rather than | |
8258 | value_contents. | |
8259 | * d-valprint.c (dynamic_array_type): Use | |
8260 | value_contents_for_printing/value_embedded_offset, rather than | |
8261 | value_contents. | |
8262 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
8263 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
8264 | (java_print_value_fields): Take `offset' into account. Don't | |
8265 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
8266 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
8267 | java_print_value_fields. | |
8268 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
8269 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
8270 | down adjusted offsets. | |
8271 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
8272 | (f_val_print): Take `embedded_offset' into account. | |
8273 | ||
7bfc9434 JB |
8274 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
8275 | ||
8276 | * inflow.c: Include "gdbcmd.h". | |
8277 | (interactive_mode): New static global, moved here from top.c. | |
8278 | (show_interactive_mode): New function, moved here from top.c. | |
8279 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
8280 | determine the current mode. | |
8281 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
8282 | setting. | |
8283 | (_initialize_inflow): Add the "set/show interactive-mode" | |
8284 | commands. Moved here from top.c, after having adjusted slightly | |
8285 | the help text. | |
8286 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
8287 | to inflow.c. | |
8288 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
8289 | setting, moved to infow.c. | |
8290 | (init_main): Remove creation of the "set/show interactive-mode" | |
8291 | commands, moved to inflow.c. | |
8292 | ||
44603653 JB |
8293 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
8294 | ||
8295 | * NEWS: Add entry for native ia64-hpux support. | |
8296 | ||
4694da01 TT |
8297 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
8298 | ||
8299 | PR mi/8618: | |
8300 | * thread.c (free_thread): Free 'name'. | |
8301 | (print_thread_info): Emit thread name. Change CLI output. | |
8302 | (thread_name_command): New function. | |
8303 | (do_captured_thread_select): Emit newline. | |
8304 | (_initialize_thread): Register 'thread name' command. | |
8305 | * target.h (struct target_ops) <to_thread_name>: New field. | |
8306 | (target_thread_name): New macro. | |
8307 | * target.c (update_current_target): Handle to_thread_name. | |
8308 | * python/py-infthread.c (thpy_get_name): New function. | |
8309 | (thpy_set_name): Likewise. | |
8310 | (thread_object_getset): Add "name". | |
8311 | * linux-nat.c (linux_nat_thread_name): New function. | |
8312 | (linux_nat_add_target): Set to_thread_name. | |
8313 | * gdbthread.h (struct thread_info) <name>: New field. | |
8314 | ||
10d44370 JB |
8315 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
8316 | ||
8317 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
8318 | (ada_val_print_1): Likewise. | |
8319 | ||
e3acb115 JB |
8320 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
8321 | ||
8322 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
8323 | upper limit address is not greater than the function end address | |
8324 | when the upper limit could not be computed using the debugging | |
8325 | info. | |
8326 | ||
dc92e161 TT |
8327 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
8328 | ||
8329 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
8330 | get_regcomp_error. | |
8331 | * utils.c: Include gdb_regex.h. | |
8332 | (do_regfree_cleanup): New function. | |
8333 | (make_regfree_cleanup): Likewise. | |
8334 | (get_regcomp_error): Likewise. | |
8335 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
8336 | ||
f55af66d TT |
8337 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
8338 | ||
8339 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
8340 | re_compile_fastmap. | |
8341 | ||
a5a44b53 PM |
8342 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
8343 | ||
8344 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
8345 | for internal variables. | |
8346 | (last_was_structop): New static variable. | |
8347 | (COMPLETE): New token. | |
8348 | (field_exp): New rule to group all '.' suffix handling. | |
8349 | Add mark_struct_expression calls when approriate to be able | |
8350 | to correctly find fields for completion. | |
8351 | (yylex): Adapt to handle field completion and set INTVAR when | |
8352 | required. | |
8353 | ||
2c291032 YQ |
8354 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
8355 | ||
8356 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
8357 | save_reggroup, restore_reggroup and all_reggroup. | |
8358 | ||
447b483c JB |
8359 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
8360 | ||
8361 | * ada-valprint. (ada_printchar): Use the correct type length | |
8362 | in call to ada_emit_char. | |
8363 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
8364 | ||
7b64a93b PM |
8365 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
8366 | ||
8367 | * solib-som.h (hpux_major_release): Declare variable here. | |
8368 | * solib-som.c: Remove <sys/utsname.h> header. | |
8369 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
8370 | (hpux_major_release): Make global, change default value to | |
8371 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 8372 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
8373 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
8374 | Add "solib-som.h" header. | |
8375 | (set_hpux_major_release): New function. | |
8376 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
8377 | ||
4e18c053 MF |
8378 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
8379 | ||
8380 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
8381 | ||
a9df6b22 JB |
8382 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
8383 | ||
8384 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
8385 | new-line at end of warning message. | |
8386 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
8387 | error message. | |
8388 | * ia64-hpux-tdep.c: Rephrase comment. | |
8389 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
8390 | dld_flags from "long long" to ULONGEST. | |
8391 | ||
ecb956dd PA |
8392 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
8393 | ||
8394 | * target.h (deprecated_child_ops): Delete declaration. | |
8395 | * target.c (deprecated_child_ops): Delete definition. | |
8396 | ||
76adfcae PA |
8397 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
8398 | ||
8399 | * Makefile.in (hpux-thread.o): Delete rule. | |
8400 | * configure.ac: Don't check for HPUX DCE threads support. | |
8401 | * configure, config.in: Regenerate. | |
8402 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
8403 | (hppa_hpux_child_can_run): Delete. | |
8404 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
8405 | * hpux-thread.c: Delete. | |
8406 | ||
042e866e JB |
8407 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8408 | ||
8409 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
8410 | ||
4ffa5a33 JB |
8411 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8412 | ||
8413 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
8414 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
8415 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
8416 | ||
de8fa76c JB |
8417 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8418 | ||
8419 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
8420 | to the case where instream is stdin. | |
8421 | ||
c4de7027 JB |
8422 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8423 | ||
8424 | * ia64-tdep.h (struct regcache): Forward declare. | |
8425 | (struct ia64_infcall_ops): New struct type. | |
8426 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
8427 | and "infcall_ops". | |
8428 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
8429 | Renames ia64_find_global_pointer. | |
8430 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
8431 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
8432 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
8433 | methods. | |
8434 | (ia64_infcall_ops): New static global constant. | |
8435 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
8436 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
8437 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
8438 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
8439 | (ia64_hpux_dummy_code): New static global constant. | |
8440 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
8441 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
8442 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
8443 | New function. | |
8444 | (ia64_hpux_infcall_ops): New static global constant. | |
8445 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
8446 | for inferior function calls to work properly on ia64-hpux. | |
8447 | ||
77ca787b JB |
8448 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8449 | ||
8450 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
8451 | * ia64-tdep.h (struct frame_info): forward declaration. | |
8452 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
8453 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
8454 | to determine the size of the register frame. | |
8455 | (ia64_size_of_register_frame): New function. | |
8456 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
8457 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
8458 | (IA64_HPUX_UREG_REASON): New macro. | |
8459 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
8460 | New functions. | |
8461 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
8462 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
8463 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
8464 | objects. | |
8465 | ||
92c9a463 JB |
8466 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8467 | ||
8468 | Add support for ia64-hpux. | |
8469 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
8470 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
8471 | ||
8472 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
8473 | floatformats. | |
8474 | * configure.tgt: Add handling for ia64-hpux targets. | |
8475 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
8476 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
8477 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
8478 | ||
f688d93f JB |
8479 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8480 | ||
8481 | [ttrace] Compute thread list immediately after attach. | |
8482 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
8483 | New subprogram. | |
8484 | (inf_ttrace_attach): Use it. | |
8485 | ||
1b89e62f JB |
8486 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8487 | ||
8488 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
8489 | if we could not determine the frame's function address. Instead, | |
8490 | use the frame's PC, and then continue. | |
8491 | ||
3e5e6e2a JB |
8492 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8493 | ||
8494 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
8495 | not already defined. | |
8496 | ||
825d6d8a JB |
8497 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8498 | ||
8499 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
8500 | (ia64_extract_return_value): Handle integral values that are | |
8501 | less than 8 bytes long. | |
8502 | (ia64_push_dummy_call): Likewise. | |
8503 | ||
7458e667 JB |
8504 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
8505 | ||
8506 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
8507 | floatformat_ia64_ext. | |
8508 | (floatformat_ia64_ext_big): New static const. | |
8509 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
8510 | ||
1b05df00 TT |
8511 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
8512 | ||
8513 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
8514 | messages. | |
8515 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
8516 | (mi_cmd_thread_list_ids): Likewise. | |
8517 | (mi_cmd_data_list_changed_registers): Likewise. | |
8518 | (mi_cmd_data_list_register_values): Likewise. | |
8519 | (mi_cmd_data_write_register_values): Likewise. | |
8520 | (mi_cmd_data_evaluate_expression): Likewise. | |
8521 | (mi_cmd_data_read_memory): Likewise. | |
8522 | (mi_cmd_data_read_memory_bytes): Likewise. | |
8523 | (mi_cmd_data_write_memory): Likewise. | |
8524 | (mi_cmd_enable_timings): Likewise. | |
8525 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
8526 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
8527 | (mi_cmd_var_delete): Likewise. | |
8528 | (mi_cmd_var_set_format): Likewise. | |
8529 | (mi_cmd_var_show_format): Likewise. | |
8530 | (mi_cmd_var_info_num_children): Likewise. | |
8531 | (mi_cmd_var_list_children): Likewise. | |
8532 | (mi_cmd_var_info_type): Likewise. | |
8533 | (mi_cmd_var_info_expression): Likewise. | |
8534 | (mi_cmd_var_show_attributes): Likewise. | |
8535 | (mi_cmd_var_assign): Likewise. | |
8536 | (mi_cmd_var_update): Likewise. | |
8537 | (mi_cmd_enable_pretty_printing): Likewise. | |
8538 | (mi_cmd_var_set_update_range): Likewise. | |
8539 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
8540 | messages. | |
8541 | (mi_cmd_target_file_put): Likewise. | |
8542 | (mi_cmd_target_file_delete): Likewise. | |
8543 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
8544 | messages. | |
8545 | (mi_cmd_stack_info_depth): Likewise. | |
8546 | (mi_cmd_stack_list_locals): Likewise. | |
8547 | (mi_cmd_stack_list_args): Likewise. | |
8548 | (mi_cmd_stack_select_frame): Likewise. | |
8549 | (mi_cmd_stack_select_frame): Likewise. | |
8550 | (mi_cmd_stack_info_frame): Likewise. | |
8551 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
8552 | messages. | |
8553 | (mi_cmd_file_list_exec_source_files): Likewise. | |
8554 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
8555 | (mi_cmd_env_cd): Likewise. | |
8556 | (mi_cmd_env_path): Likewise. | |
8557 | (mi_cmd_env_dir): Likewise. | |
8558 | (mi_cmd_inferior_tty_show): Likewise. | |
8559 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
8560 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
8561 | (mi_cmd_break_watch): Likewise. | |
8562 | ||
ad422571 TJB |
8563 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8564 | ||
8565 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
8566 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
8567 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
8568 | (ppc_linux_insert_watchpoint): Likewise. | |
8569 | ||
c2ff108b JK |
8570 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
8571 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
8572 | ||
8573 | PR fortran/11104 and DWARF unbound arrays detection. | |
8574 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
8575 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
8576 | unspecified upper bound. | |
8577 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
8578 | variables array_size_array, tmp_type and offset_item. New variable | |
8579 | array. Remove call to f77_get_upperbound. New variables array_type | |
8580 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
8581 | the final call to deprecated_set_value_type. | |
8582 | ||
41e8491f JK |
8583 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
8584 | ||
8585 | Make value allocations more lazy. | |
8586 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
8587 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 8588 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
8589 | instead of allocate_value and set_value_lazy. |
8590 | * findvar.c (value_of_register_lazy): Likewise. | |
8591 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 8592 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
8593 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
8594 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
8595 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
8596 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
8597 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
8598 | the end, remove set_value_lazy there. | |
8599 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
8600 | instead of allocate_value and set_value_lazy when possible. | |
8601 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
8602 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
8603 | of allocate_value and set_value_lazy. | |
8604 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
8605 | allocate_value and set_value_lazy when possible. | |
8606 | ||
b716877b AB |
8607 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
8608 | ||
8609 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
8610 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
8611 | dumping of instruction opcodes. | |
8612 | ||
d5ae309f JB |
8613 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
8614 | ||
8615 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
8616 | appropiately. | |
8617 | ||
98871305 TT |
8618 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
8619 | ||
8620 | * thread.c (do_captured_thread_select): Emit newline before | |
8621 | printing frame. | |
8622 | ||
c378eb4e MS |
8623 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
8624 | ||
8625 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
8626 | * score-tdep.c: Ditto. | |
8627 | * score-tdep.h: Ditto. | |
8628 | * ser-base.c: Ditto. | |
8629 | * ser-go32.c: Ditto. | |
8630 | * serial.c: Ditto. | |
8631 | * serial.h: Ditto. | |
8632 | * ser-mingw.c: Ditto. | |
8633 | * ser-pipe.c: Ditto. | |
8634 | * ser-tcp.c: Ditto. | |
8635 | * ser-unix.c: Ditto. | |
8636 | * sh64-tdep.c: Ditto. | |
8637 | * shnbsd-nat.c: Ditto. | |
8638 | * sh-tdep.c: Ditto. | |
8639 | * sh-tdep.h: Ditto. | |
8640 | * solib.c: Ditto. | |
8641 | * solib-darwin.c: Ditto. | |
8642 | * solib-frv.c: Ditto. | |
8643 | * solib.h: Ditto. | |
8644 | * solib-irix.c: Ditto. | |
8645 | * solib-osf.c: Ditto. | |
8646 | * solib-pa64.c: Ditto. | |
8647 | * solib-som.c: Ditto. | |
8648 | * solib-spu.c: Ditto. | |
8649 | * solib-sunos.c: Ditto. | |
8650 | * solib-svr4.c: Ditto. | |
8651 | * solist.h: Ditto. | |
8652 | * sol-thread.c: Ditto. | |
8653 | * somread.c: Ditto. | |
8654 | * source.c: Ditto. | |
8655 | * source.h: Ditto. | |
8656 | * sparc64-linux-tdep.c: Ditto. | |
8657 | * sparc64-tdep.c: Ditto. | |
8658 | * sparc-linux-nat.c: Ditto. | |
8659 | * sparc-linux-tdep.c: Ditto. | |
8660 | * sparc-sol2-nat.c: Ditto. | |
8661 | * sparc-sol2-tdep.c: Ditto. | |
8662 | * sparc-tdep.c: Ditto. | |
8663 | * sparc-tdep.h: Ditto. | |
8664 | * spu-tdep.c: Ditto. | |
8665 | * stabsread.c: Ditto. | |
8666 | * stabsread.h: Ditto. | |
8667 | * stack.c: Ditto. | |
8668 | * symfile.c: Ditto. | |
8669 | * symfile.h: Ditto. | |
8670 | * symmisc.c: Ditto. | |
8671 | * symtab.c: Ditto. | |
8672 | * symtab.h: Ditto. | |
8673 | * target.c: Ditto. | |
8674 | * target-descriptions.c: Ditto. | |
8675 | * target-descriptions.h: Ditto. | |
8676 | * target.h: Ditto. | |
8677 | * target-memory.c: Ditto. | |
8678 | * terminal.h: Ditto. | |
8679 | * thread.c: Ditto. | |
8680 | * top.c: Ditto. | |
8681 | * tracepoint.c: Ditto. | |
8682 | * tracepoint.h: Ditto. | |
8683 | * trad-frame.h: Ditto. | |
8684 | * typeprint.c: Ditto. | |
8685 | ||
581e13c1 MS |
8686 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
8687 | ||
8688 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
8689 | * ui-file.h: Ditto. | |
8690 | * ui-out.c: Ditto. | |
8691 | * ui-out.h: Ditto. | |
8692 | * utils.c: Ditto. | |
8693 | * v850-tdep.c: Ditto. | |
8694 | * valarith.c: Ditto. | |
8695 | * valops.c: Ditto. | |
8696 | * valprint.c: Ditto. | |
8697 | * valprint.h: Ditto. | |
8698 | * value.c: Ditto. | |
8699 | * value.h: Ditto. | |
8700 | * varobj.c: Ditto. | |
8701 | * varobj.h: Ditto. | |
8702 | * vax-tdep.c: Ditto. | |
8703 | * vec.c: Ditto. | |
8704 | * vec.h: Ditto. | |
8705 | * version.h: Ditto. | |
8706 | * windows-nat.c: Ditto. | |
8707 | * windows-tdep.c: Ditto. | |
8708 | * xcoffread.c: Ditto. | |
8709 | * xcoffsolib.c: Ditto. | |
8710 | * xml-support.c: Ditto. | |
8711 | * xstormy16-tdep.c: Ditto. | |
8712 | * xtensa-tdep.c: Ditto. | |
8713 | * xtensa-tdep.h: Ditto. | |
8714 | ||
90e4670f TJB |
8715 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8716 | ||
8717 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
8718 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
8719 | ||
e09342b5 TJB |
8720 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
8721 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
8722 | ||
8723 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 8724 | * breakpoint.h |
e09342b5 TJB |
8725 | (struct breakpoint_ops) <resources_needed>: New method. |
8726 | Initialize to NULL in all existing breakpoint_ops instances. | |
8727 | (struct breakpoint) <exact>: New field. | |
8728 | (target_exact_watchpoints): Declare external global. | |
8729 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
8730 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
8731 | b->enable_state to bp_enabled before calling | |
8732 | hw_watchpoint_used_count. | |
8733 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
8734 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
8735 | if available. | |
8736 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
8737 | if the watchpoint is exact. | |
8738 | (resources_needed_watchpoint): New function. | |
8739 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
8740 | (watch_command_1): Set b->exact if the user asked for an exact | |
8741 | watchpoint and one can be set. | |
8742 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
8743 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
8744 | the user asks for an exact watchpoint and one can be set. Return | |
8745 | number of needed debug registers to watch the expression. | |
8746 | * gdbtypes.c (is_scalar_type): New function, based on | |
8747 | valprint.c:scalar_type_p. | |
8748 | (is_scalar_type_recursive): New function. | |
8749 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
8750 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
8751 | handle regions when ranged watchpoints are available. | |
8752 | (create_watchpoint_request): New function. | |
8753 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
8754 | create_watchpoint_request. | |
8755 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
8756 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
8757 | `set powerpc' and `show powerpc' commands. | |
8758 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
8759 | Mention documentation comment in the target macro. | |
8760 | (target_region_ok_for_hw_watchpoint): Document return value. | |
8761 | ||
9fa40276 TJB |
8762 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8763 | ||
8764 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
8765 | hardware watchpoint after the bp_locations are created. | |
8766 | ||
77b06cd7 TJB |
8767 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
8768 | ||
8769 | Convert hardware watchpoints to use breakpoint_ops. | |
8770 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
8771 | <insert_location>: ... this. Return int instead of void. | |
8772 | Accept pointer to struct bp_location instead of pointer to | |
8773 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 8774 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
8775 | <remove_location>: ... this. Accept pointer to struct bp_location |
8776 | instead of pointer to struct breakpoint. Adapt all implementations. | |
8777 | * breakpoint.c (insert_catchpoint): Delete function. | |
8778 | (insert_bp_location): Call the watchpoint or catchpoint's | |
8779 | breakpoint_ops.insert method. | |
8780 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
8781 | breakpoint_ops.remove method. | |
8782 | (insert_watchpoint, remove_watchpoint): New functions. | |
8783 | (watchpoint_breakpoint_ops): New structure. | |
8784 | (watch_command_1): Initialize the OPS field. | |
8785 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
8786 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
8787 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
8788 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
8789 | Delete functions. | |
8790 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
8791 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
8792 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
8793 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
8794 | * target.c (update_current_target): Change default implementation of | |
8795 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
8796 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
8797 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
8798 | to_set_syscall_catchpoint to return_one. | |
8799 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
8800 | (debug_to_insert_exec_catchpoint): Report return value. | |
8801 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
8802 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
8803 | of void. | |
8804 | ||
9b20d036 MS |
8805 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
8806 | ||
8807 | * arm-tdep.c: Internationalization. | |
8808 | * c-lang.c: Ditto. | |
8809 | * charset.c: Ditto. | |
8810 | * fork-child.c: Ditto. | |
8811 | * nto-procfs.c: Ditto. | |
8812 | * ppc-sysv-tdep.c: Ditto. | |
8813 | * procfs.c: Ditto. | |
8814 | * remote-mips.c: Ditto. | |
8815 | * remote.c: Ditto. | |
8816 | * rs6000-nat.c: Ditto. | |
8817 | * rs6000-tdep.c: Ditto. | |
8818 | * target.c: Ditto. | |
8819 | * valops.c: Ditto. | |
8820 | * value.c: Ditto. | |
8821 | * xml-support.c: Ditto. | |
8822 | * mi/mi-cmd-break.c: Ditto. | |
8823 | * mi/mi-cmd-var.c: Ditto. | |
8824 | * mi/mi-interp.c: Ditto. | |
8825 | * mi/mi-main.c: Ditto. | |
8826 | ||
dae477fe AB |
8827 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
8828 | ||
8829 | * remote-sim.c (gdbsim_store_register): Update API to | |
8830 | sim_store_register to check more error conditions. | |
8831 | ||
0df8b418 MS |
8832 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
8833 | ||
8834 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
8835 | * nto-tdep.c: Ditto. | |
8836 | * nto-tdep.h: Ditto. | |
8837 | * objc-exp.y: Ditto. | |
8838 | * objc-lang.c: Ditto. | |
8839 | * objfiles.c: Ditto. | |
8840 | * objfiles.h: Ditto. | |
8841 | * observer.c: Ditto. | |
8842 | * opencl-lang.c: Ditto. | |
8843 | * osabi.c: Ditto. | |
8844 | * parse.c: Ditto. | |
8845 | * parser-defs.h: Ditto. | |
8846 | * p-exp.y: Ditto. | |
8847 | * p-lang.c: Ditto. | |
8848 | * posix-hdep.c: Ditto. | |
8849 | * ppcbug-rom.c: Ditto. | |
8850 | * ppc-linux-nat.c: Ditto. | |
8851 | * ppc-linux-tdep.c: Ditto. | |
8852 | * ppc-linux-tdep.h: Ditto. | |
8853 | * ppcnbsd-tdep.c: Ditto. | |
8854 | * ppcobsd-tdep.c: Ditto. | |
8855 | * ppcobsd-tdep.h: Ditto. | |
8856 | * ppc-sysv-tdep.c: Ditto. | |
8857 | * ppc-tdep.h: Ditto. | |
8858 | * printcmd.c: Ditto. | |
8859 | * proc-abi.c: Ditto. | |
8860 | * proc-flags.c: Ditto. | |
8861 | * procfs.c: Ditto. | |
8862 | * proc-utils.h: Ditto. | |
8863 | * progspace.h: Ditto. | |
8864 | * prologue-value.c: Ditto. | |
8865 | * prologue-value.h: Ditto. | |
8866 | * psympriv.h: Ditto. | |
8867 | * psymtab.c: Ditto. | |
8868 | * p-typeprint.c: Ditto. | |
8869 | * p-valprint.c: Ditto. | |
8870 | * ravenscar-sparc-thread.c: Ditto. | |
8871 | * ravenscar-thread.c: Ditto. | |
8872 | * ravenscar-thread.h: Ditto. | |
8873 | * record.c: Ditto. | |
8874 | * regcache.c: Ditto. | |
8875 | * regcache.h: Ditto. | |
8876 | * remote.c: Ditto. | |
8877 | * remote-fileio.c: Ditto. | |
8878 | * remote-fileio.h: Ditto. | |
8879 | * remote.h: Ditto. | |
8880 | * remote-m32r-sdi.c: Ditto. | |
8881 | * remote-mips.c: Ditto. | |
8882 | * remote-sim.c: Ditto. | |
8883 | * rs6000-aix-tdep.c: Ditto. | |
8884 | * rs6000-nat.c: Ditto. | |
8885 | * rs6000-tdep.c: Ditto. | |
8886 | ||
0d7a18f7 MS |
8887 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
8888 | ||
8889 | * charset.c (validate): Internationalization. | |
8890 | * coffread.c (read_one_sym): Ditto. | |
8891 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
8892 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
8893 | * inflow.c (new_tty): Ditto. | |
8894 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
8895 | * m32c-tdep.c (m32c_return_value): Ditto. | |
8896 | * mep-tdep.c (mep_store_return_value): Ditto. | |
8897 | * score-tdep.c (score7_fetch_insn): Ditto. | |
8898 | * ser-mingw.c (pipe_windows_open): Ditto. | |
8899 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
8900 | * spu-tdep.c (spu_register_type): Ditto. | |
8901 | * tracepoint.c (trace_find_command): Ditto. | |
8902 | * valarith.c (value_pos): Ditto. | |
8903 | ||
9a153e0b JB |
8904 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
8905 | ||
8906 | * ada-valprint.c (printstr): Minor comment reformatting. | |
8907 | ||
35ecd2d6 MS |
8908 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
8909 | ||
8910 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
8911 | markup. | |
8912 | ||
1777feb0 MS |
8913 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
8914 | ||
8915 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
8916 | * hppa-hpux-tdep.c: Ditto. | |
8917 | * hppa-linux-nat.c: Ditto. | |
8918 | * hppa-linux-tdep.c: Ditto. | |
8919 | * hppanbsd-tdep.c: Ditto. | |
8920 | * hppa-tdep.c: Ditto. | |
8921 | * hppa-tdep.h: Ditto. | |
8922 | * hpux-thread.c: Ditto. | |
8923 | * i386-cygwin-tdep.c: Ditto. | |
8924 | * i386-darwin-nat.c: Ditto. | |
8925 | * i386gnu-nat.c: Ditto. | |
8926 | * i386-linux-nat.c: Ditto. | |
8927 | * i386-linux-tdep.c: Ditto. | |
8928 | * i386-nat.c: Ditto. | |
8929 | * i386-nat.h: Ditto. | |
8930 | * i386nbsd-tdep.c: Ditto. | |
8931 | * i386-sol2-nat.c: Ditto. | |
8932 | * i386-stub.c: Ditto. | |
8933 | * i386-tdep.c: Ditto. | |
8934 | * i386-tdep.h: Ditto. | |
8935 | * i387-tdep.c: Ditto. | |
8936 | * ia64-linux-nat.c: Ditto. | |
8937 | * ia64-linux-tdep.c: Ditto. | |
8938 | * ia64-tdep.c: Ditto. | |
8939 | * infcall.c: Ditto. | |
8940 | * infcall.h: Ditto. | |
8941 | * infcmd.c: Ditto. | |
8942 | * inferior.c: Ditto. | |
8943 | * inferior.h: Ditto. | |
8944 | * infloop.c: Ditto. | |
8945 | * inflow.c: Ditto. | |
8946 | * infrun.c: Ditto. | |
8947 | * interps.c: Ditto. | |
8948 | * interps.h: Ditto. | |
8949 | * iq2000-tdep.c: Ditto. | |
8950 | * irix5-nat.c: Ditto. | |
8951 | * jit.c: Ditto. | |
8952 | * jit.h: Ditto. | |
8953 | * jv-exp.y: Ditto. | |
8954 | * jv-lang.c: Ditto. | |
8955 | * jv-lang.h: Ditto. | |
8956 | * jv-typeprint.c: Ditto. | |
8957 | * jv-valprint.c: Ditto. | |
8958 | * language.c: Ditto. | |
8959 | * language.h: Ditto. | |
8960 | * linespec.c: Ditto. | |
8961 | * linux-fork.c: Ditto. | |
8962 | * linux-nat.c: Ditto. | |
8963 | * linux-thread-db.c: Ditto. | |
8964 | * lm32-tdep.c: Ditto. | |
8965 | ||
025bb325 MS |
8966 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
8967 | ||
8968 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
8969 | * m2-lang.c: Ditto. | |
8970 | * m2-typeprint.c: Ditto. | |
8971 | * m2-valprint.c: Ditto. | |
8972 | * m32c-tdep.c: Ditto. | |
8973 | * m32r-linux-nat.c: Ditto. | |
8974 | * m32r-rom.c: Ditto. | |
8975 | * m32r-tdep.c: Ditto. | |
8976 | * m32r-tdep.h: Ditto. | |
8977 | * m68hc11-tdep.c: Ditto. | |
8978 | * m58klinux-nat.c: Ditto. | |
8979 | * m68k-tdep.c: Ditto. | |
8980 | * m88k-tdep.c: Ditto. | |
8981 | * m88k-tdep.h: Ditto. | |
8982 | * machoread.c: Ditto. | |
8983 | * macrocmd.c: Ditto. | |
8984 | * macroexp.c: Ditto. | |
8985 | * macrotab.c: Ditto. | |
8986 | * main.c: Ditto. | |
8987 | * maint.c: Ditto. | |
8988 | * mdebugread.c: Ditto. | |
8989 | * mdebugread.h: Ditto. | |
8990 | * memattr.c: Ditto. | |
8991 | * memattr.h: Ditto. | |
8992 | * memory-map.h: Ditto. | |
8993 | * mep-tdep.c: Ditto. | |
8994 | * microblaze-rom.c: Ditto. | |
8995 | * microblaze-tdep.c: Ditto. | |
8996 | * minsyms.c: Ditto. | |
8997 | * mips-irix-tdep.c: Ditto. | |
8998 | * mips-linux-nat.c: Ditto. | |
8999 | * mips-linux-tdep.c: Ditto. | |
9000 | * mips-linux-tdep.h: Ditto. | |
9001 | * mipsnbsd-nat.c: Ditto. | |
9002 | * mipsnbsd-tdep.c: Ditto. | |
9003 | * mipsread.c: Ditto. | |
9004 | * mips-tdep.c: Ditto. | |
9005 | * mips-tdep.h: Ditto. | |
9006 | * mn10300-linux-tdep.c: Ditto. | |
9007 | * mn10300-tdep.c: Ditto. | |
9008 | * mn10300-tdep.h: Ditto. | |
9009 | * monitor.c: Ditto. | |
9010 | * monitor.h: Ditto. | |
9011 | * moxie-tdep.c: Ditto. | |
9012 | * moxie-tdep.h: Ditto. | |
9013 | * mt-tdep.c: Ditto. | |
9014 | ||
1642781b MF |
9015 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
9016 | ||
9017 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
9018 | ||
394b0adb JB |
9019 | 2011-01-08 Robert Millan <rmh@gnu.org> |
9020 | ||
9021 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
9022 | ||
b670013c MS |
9023 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
9024 | ||
9025 | * charset.c (_initialize_charset): Fix typo in string. | |
9026 | ||
a743e542 MS |
9027 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
9028 | ||
9029 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
9030 | for i18n. | |
f2eb0bc8 | 9031 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
9032 | Split line so that operator goes to beginning of line. |
9033 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
9034 | assignment out of if statement. | |
9035 | ||
0963b4bd MS |
9036 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
9037 | ||
9038 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
9039 | * ada-lang.h: Ditto. | |
9040 | * ada-tasks.c: Ditto. | |
9041 | * ada-valprint.c: Ditto. | |
9042 | * aix-threads.c: Ditto. | |
9043 | * alpha-linux-nat.c: Ditto. | |
9044 | * alpha-linux-tdep.c: Ditto. | |
9045 | * alpha-mdebug-tdep.c: Ditto. | |
9046 | * alpha-nat.c: Ditto. | |
9047 | * alpha-osf1-tdep.c: Ditto. | |
9048 | * alpha-tdep.c: Ditto. | |
9049 | * alphabsd-nat.c: Ditto. | |
9050 | * alphabsd-tdep.c: Ditto. | |
9051 | * amd64-darwin-tdep.c: Ditto. | |
9052 | * amd64-linux-nat.c: Ditto. | |
9053 | * amd64-linux-tdep.c: Ditto. | |
9054 | * amd64-sol2-tdep.c: Ditto. | |
9055 | * amd64-tdep.c: Ditto. | |
9056 | * amd64-fbsd-tdep.c: Ditto. | |
9057 | * amd64-nbsd-tdep.c: Ditto. | |
9058 | * amd64-obsd-tdep.c: Ditto. | |
9059 | * amd64-linux-nat.c: Ditto. | |
9060 | * amd64-linux-tdep.c: Ditto. | |
9061 | * arm-tdep.c: Ditto. | |
9062 | * arm-tdep.h: Ditto. | |
9063 | * armnbsd-nat.c: Ditto. | |
9064 | * avr-tdep.c: Ditto. | |
9065 | * bfin-tdep.c: Ditto. | |
9066 | * bsd-kvm.c: Ditto. | |
9067 | * c-typeprintc: Ditto. | |
9068 | * c-valprint.c: Ditto. | |
9069 | * coff-pe-read.h: Ditto. | |
9070 | * coffreead.c: Ditto. | |
9071 | * cris-tdep.c: Ditto. | |
9072 | * d-lang.c: Ditto. | |
9073 | * darwin-nat-info.c: Ditto. | |
9074 | * darwin-nat.c: Ditto. | |
9075 | * dbug-rom.c: Ditto. | |
9076 | * dbxread.c: Ditto. | |
9077 | * dcache.c: Ditto. | |
9078 | * dcache.h: Ditto. | |
9079 | * dec-thread.c: Ditto. | |
9080 | * defs.h: Ditto. | |
9081 | * demangle.c: Ditto. | |
9082 | * dicos-tdep.c: Ditto. | |
9083 | * dictionary.c: Ditto. | |
9084 | * dictionary.h: Ditto. | |
9085 | * dink32-rom.c: Ditto. | |
9086 | * disasm.c: Ditto. | |
9087 | * doublest.c: Ditto. | |
9088 | * dsrec.c: Ditto. | |
9089 | * dummy-frame.c: Ditto. | |
9090 | * dwarf2-frame.c: Ditto. | |
9091 | * dwarf2expr.c: Ditto. | |
9092 | * dwarf2loc.c: Ditto. | |
9093 | * dwarf2read.c: Ditto. | |
9094 | * elfread.c: Ditto. | |
9095 | * environ.c: Ditto. | |
9096 | * eval.c: Ditto. | |
9097 | * event-top.h: Ditto. | |
9098 | * exceptions.c: Ditto. | |
9099 | * exceptions.h: Ditto. | |
9100 | * exec.c: Ditto. | |
9101 | * expprint.c: Ditto. | |
9102 | * expression.h: Ditto. | |
9103 | * f-exp.y: Ditto. | |
9104 | * f-lang.c: Ditto. | |
9105 | * f-lang.h: Ditto. | |
9106 | * f-typeprint.c: Ditto. | |
9107 | * f-valprint.c: Ditto. | |
9108 | * fbsd-nat.c: Ditto. | |
9109 | * findvar.c: Ditto. | |
9110 | * fork-child.c: Ditto. | |
9111 | * frame.c: Ditto. | |
9112 | * frame.h: Ditto. | |
9113 | * frv-linux-tdep.c: Ditto. | |
9114 | * frv-tdep.c: Ditto. | |
9115 | * gcore.c: Ditto. | |
9116 | * gdb-stabs.h: Ditto. | |
9117 | * gdb_assert.h: Ditto. | |
9118 | * gdb_string.h: Ditto. | |
9119 | * gdb_thread_db.h: Ditto. | |
9120 | * gdb_wait.h: Ditto. | |
9121 | * gdbarch.sh: Ditto. | |
9122 | * gdbcore.h: Ditto. | |
9123 | * gdbthread.h: Ditto. | |
9124 | * gdbtypes.c: Ditto. | |
9125 | * gdbtypes.h: Ditto. | |
9126 | * gnu-nat.c: Ditto. | |
9127 | * gnu-nat.h: Ditto. | |
9128 | * gnu-v2-abi.c: Ditto. | |
9129 | * gnu-v3-abi.c: Ditto. | |
9130 | * go32-nat.c: Ditto. | |
9131 | * gdbarch.c: Regenerate. | |
9132 | * gdbarch.h: Regenerate. | |
9133 | ||
ac74f770 MS |
9134 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
9135 | ||
9136 | * ax-gdb.c: Adjust some long output strings. | |
9137 | * breakpoint.c: Ditto. | |
9138 | * charset.c: Ditto. | |
9139 | * cp-abi.c: Ditto. | |
9140 | * infcall.c: Ditto. | |
9141 | * infrun.c: Ditto. | |
9142 | * linux-nat.c: Ditto. | |
9143 | * solib-pa64.c: Ditto. | |
9144 | * solib-som.c: Ditto. | |
9145 | ||
d8e22779 TT |
9146 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
9147 | ||
9148 | PR python/12367: | |
9149 | * NEWS: Add item. | |
9150 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
9151 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
9152 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
9153 | ||
a255712f PP |
9154 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
9155 | ||
9156 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
9157 | * jit.c (jit_debug): New variable. | |
9158 | (show_jit_debug): New function. | |
9159 | (struct target_buffer): Use ULONGEST. | |
9160 | (bfd_open_from_target_memory): Likewise. | |
9161 | (jit_register_code, jit_inferior_init): Add debug output. | |
9162 | (_initialize_jit): Register "debug jit" command. | |
9163 | ||
ccfc3d6e TT |
9164 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
9165 | ||
9166 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
9167 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
9168 | and ARCH_FRAME. | |
9169 | ||
57126e4a TT |
9170 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
9171 | ||
9172 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
9173 | ||
16dfc9ce JB |
9174 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
9175 | ||
9176 | Do not stop on SIGPRIO signals by default | |
9177 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
9178 | signal_print for TARGET_SIGNAL_PRIO. | |
9179 | ||
b1ce2347 JB |
9180 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
9181 | ||
9182 | * ada-tasks.c: Fix style violation in comment. | |
9183 | ||
8f7e195f JB |
9184 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
9185 | ||
9186 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
9187 | at end of error string. | |
9188 | * solib-irix.c (irix_current_sos): Likewise. | |
9189 | * varobj.c (uninstall_variable): Likewise. | |
9190 | ||
e9bdf92c JB |
9191 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
9192 | ||
9193 | * copyright.py: New script. | |
9194 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
9195 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
9196 | ||
3e43a32a MS |
9197 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
9198 | ||
9199 | * addrmap.c: Shorten lines of >= 80 columns. | |
9200 | * arch-utils.c: Ditto. | |
9201 | * arch-utils.h: Ditto. | |
9202 | * ax-gdb.c: Ditto. | |
9203 | * ax-general.c: Ditto. | |
9204 | * bcache.c: Ditto. | |
9205 | * blockframe.c: Ditto. | |
9206 | * breakpoint.c: Ditto. | |
9207 | * buildsym.c: Ditto. | |
9208 | * c-lang.c: Ditto. | |
9209 | * c-typeprint.c: Ditto. | |
9210 | * charset.c: Ditto. | |
9211 | * coffread.c: Ditto. | |
9212 | * command.h: Ditto. | |
9213 | * corelow.c: Ditto. | |
9214 | * cp-abi.c: Ditto. | |
9215 | * cp-namespace.c: Ditto. | |
9216 | * cp-support.c: Ditto. | |
9217 | * dbug-rom.c: Ditto. | |
9218 | * dbxread.c: Ditto. | |
9219 | * defs.h: Ditto. | |
9220 | * dfp.c: Ditto. | |
9221 | * dfp.h: Ditto. | |
9222 | * dictionary.c: Ditto. | |
9223 | * disasm.c: Ditto. | |
9224 | * doublest.c: Ditto. | |
9225 | * dwarf2-frame.c: Ditto. | |
9226 | * dwarf2expr.c: Ditto. | |
9227 | * dwarf2loc.c: Ditto. | |
9228 | * dwarf2read.c: Ditto. | |
9229 | * elfread.c: Ditto. | |
9230 | * eval.c: Ditto. | |
9231 | * event-loop.c: Ditto. | |
9232 | * event-loop.h: Ditto. | |
9233 | * exceptions.h: Ditto. | |
9234 | * exec.c: Ditto. | |
9235 | * expprint.c: Ditto. | |
9236 | * expression.h: Ditto. | |
9237 | * f-lang.c: Ditto. | |
9238 | * f-valprint.c: Ditto. | |
9239 | * findcmd.c: Ditto. | |
9240 | * frame-base.c: Ditto. | |
9241 | * frame-unwind.c: Ditto. | |
9242 | * frame-unwind.h: Ditto. | |
9243 | * frame.c: Ditto. | |
9244 | * frame.h: Ditto. | |
9245 | * gcore.c: Ditto. | |
9246 | * gdb-stabs.h: Ditto. | |
9247 | * gdb_assert.h: Ditto. | |
9248 | * gdb_dirent.h: Ditto. | |
9249 | * gdb_obstack.h: Ditto. | |
9250 | * gdbcore.h: Ditto. | |
9251 | * gdbtypes.c: Ditto. | |
9252 | * gdbtypes.h: Ditto. | |
9253 | * inf-ttrace.c: Ditto. | |
9254 | * infcall.c: Ditto. | |
9255 | * infcmd.c: Ditto. | |
9256 | * inflow.c: Ditto. | |
9257 | * infrun.c: Ditto. | |
9258 | * inline-frame.h: Ditto. | |
9259 | * language.c: Ditto. | |
9260 | * language.h: Ditto. | |
9261 | * libunwind-frame.c: Ditto. | |
9262 | * libunwind-frame.h: Ditto. | |
9263 | * linespec.c: Ditto. | |
9264 | * linux-nat.c: Ditto. | |
9265 | * linux-nat.h: Ditto. | |
9266 | * linux-thread-db.c: Ditto. | |
9267 | * machoread.c: Ditto. | |
9268 | * macroexp.c: Ditto. | |
9269 | * macrotab.c: Ditto. | |
9270 | * main.c: Ditto. | |
9271 | * maint.c: Ditto. | |
9272 | * mdebugread.c: Ditto. | |
9273 | * memattr.c: Ditto. | |
9274 | * minsyms.c: Ditto. | |
9275 | * monitor.c: Ditto. | |
9276 | * monitor.h: Ditto. | |
9277 | * objfiles.c: Ditto. | |
9278 | * objfiles.h: Ditto. | |
9279 | * osabi.c: Ditto. | |
9280 | * p-typeprint.c: Ditto. | |
9281 | * p-valprint.c: Ditto. | |
9282 | * parse.c: Ditto. | |
9283 | * printcmd.c: Ditto. | |
9284 | * proc-events.c: Ditto. | |
9285 | * procfs.c: Ditto. | |
9286 | * progspace.c: Ditto. | |
9287 | * progspace.h: Ditto. | |
9288 | * psympriv.h: Ditto. | |
9289 | * psymtab.c: Ditto. | |
9290 | * record.c: Ditto. | |
9291 | * regcache.c: Ditto. | |
9292 | * regcache.h: Ditto. | |
9293 | * remote-fileio.c: Ditto. | |
9294 | * remote.c: Ditto. | |
9295 | * ser-mingw.c: Ditto. | |
9296 | * ser-tcp.c: Ditto. | |
9297 | * ser-unix.c: Ditto. | |
9298 | * serial.c: Ditto. | |
9299 | * serial.h: Ditto. | |
9300 | * solib-frv.c: Ditto. | |
9301 | * solib-irix.c: Ditto. | |
9302 | * solib-osf.c: Ditto. | |
9303 | * solib-pa64.c: Ditto. | |
9304 | * solib-som.c: Ditto. | |
9305 | * solib-sunos.c: Ditto. | |
9306 | * solib-svr4.c: Ditto. | |
9307 | * solib-target.c: Ditto. | |
9308 | * solib.c: Ditto. | |
9309 | * somread.c: Ditto. | |
9310 | * source.c: Ditto. | |
9311 | * stabsread.c: Ditto. | |
9312 | * stabsread.c: Ditto. | |
9313 | * stack.c: Ditto. | |
9314 | * stack.h: Ditto. | |
9315 | * symfile-mem.c: Ditto. | |
9316 | * symfile.c: Ditto. | |
9317 | * symfile.h: Ditto. | |
9318 | * symmisc.c: Ditto. | |
9319 | * symtab.c: Ditto. | |
9320 | * symtab.h: Ditto. | |
9321 | * target-descriptions.c: Ditto. | |
9322 | * target-memory.c: Ditto. | |
9323 | * target.c: Ditto. | |
9324 | * target.h: Ditto. | |
9325 | * terminal.h: Ditto. | |
9326 | * thread.c: Ditto. | |
9327 | * top.c: Ditto. | |
9328 | * tracepoint.c: Ditto. | |
9329 | * tracepoint.h: Ditto. | |
9330 | * ui-file.c: Ditto. | |
9331 | * ui-file.h: Ditto. | |
9332 | * ui-out.h: Ditto. | |
9333 | * user-regs.c: Ditto. | |
9334 | * user-regs.h: Ditto. | |
9335 | * utils.c: Ditto. | |
9336 | * valarith.c: Ditto. | |
9337 | * valops.c: Ditto. | |
9338 | * valprint.c: Ditto. | |
9339 | * valprint.h: Ditto. | |
9340 | * value.c: Ditto. | |
9341 | * varobj.c: Ditto. | |
9342 | * varobj.h: Ditto. | |
9343 | * vec.h: Ditto. | |
9344 | * xcoffread.c: Ditto. | |
9345 | * xcoffsolib.c: Ditto. | |
9346 | * xcoffsolib.h: Ditto. | |
9347 | * xml-syscall.c: Ditto. | |
9348 | * xml-tdesc.c: Ditto. | |
9349 | ||
9a2b4c1b MS |
9350 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
9351 | ||
9352 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
9353 | * cli/cli-decode.c: Ditto. | |
9354 | * cli/cli-dump.c: Ditto. | |
9355 | * cli/cli-logging.c: Ditto. | |
9356 | * cli/cli-script.c: Ditto. | |
9357 | * cli/cli-setshow.c: Ditto. | |
9358 | * common/signals.c: Ditto. | |
9359 | * mi/mi-cmd-break.c: Ditto. | |
9360 | * mi/mi-cmd-disas.c: Ditto. | |
9361 | * mi/mi-cmd-stack.c: Ditto. | |
9362 | * mi/mi-cmd-var.c: Ditto. | |
9363 | * mi/mi-cmds.c: Ditto. | |
9364 | * mi/mi-common.h: Ditto. | |
9365 | * mi/mi-console.c: Ditto. | |
9366 | * mi/mi-interp.c: Ditto. | |
9367 | * mi/mi-main.c: Ditto. | |
9368 | * osf-share/cma_attr.c: Ditto. | |
9369 | * osf-share/cma_deb_core.h: Ditto. | |
9370 | * osf-share/cma_debug_client.h: Ditto. | |
9371 | * osf-share/cma_handle.h: Ditto. | |
9372 | * osf-share/cma_mutex.h: Ditto. | |
9373 | * osf-share/cma_stack_int.h: Ditto. | |
9374 | * osf-share/cma_tcb_defs.h: Ditto. | |
9375 | * python/py-auto-load.c: Ditto. | |
9376 | * python/py-breakpoint.c: Ditto. | |
9377 | * python/py-cmd.c: Ditto. | |
9378 | * python/py-frame.c: Ditto. | |
9379 | * python/py-objfile.c: Ditto. | |
9380 | * python/py-param.c: Ditto. | |
9381 | * python/py-progspace.c: Ditto. | |
9382 | * python/py-symbol.c: Ditto. | |
9383 | * python/py-value.c: Ditto. | |
9384 | * python/python-internal.h: Ditto. | |
9385 | * python/python.c: Ditto. | |
9386 | * tui/tui-data.c: Ditto. | |
9387 | * tui/tui-disasm.c: Ditto. | |
9388 | * tui/tui-hooks.c: Ditto. | |
9389 | * tui/tui-io.c: Ditto. | |
9390 | * tui/tui-layout.c: Ditto. | |
9391 | * tui/tui-regs.c: Ditto. | |
9392 | * tui/tui-source.c: Ditto. | |
9393 | * tui/tui-stack.c: Ditto. | |
9394 | * tui/tui-win.c: Ditto. | |
9395 | * tui/tui-windata.c: Ditto. | |
9396 | * tui/tui-winsource.c: Ditto. | |
9397 | ||
44944448 JB |
9398 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
9399 | ||
9400 | * configure.ac, gdb.1: Copyright year update. | |
9401 | ||
ebedcab5 JK |
9402 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
9403 | ||
9404 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
9405 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
9406 | "__morestack" minimal symbol there. | |
9407 | ||
e5cc9f32 JB |
9408 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
9409 | ||
9410 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
9411 | ||
7b6bb8da JB |
9412 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
9413 | ||
9414 | Copyright year update in most files (performed by copyright.sh). | |
9415 | ||
71ce852c JB |
9416 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
9417 | ||
9418 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 9419 | |
c3c1ebe8 | 9420 | For older changes see ChangeLog-2010. |
c906108c SS |
9421 | \f |
9422 | Local Variables: | |
9423 | mode: change-log | |
9424 | left-margin: 8 | |
9425 | fill-column: 74 | |
9426 | version-control: never | |
57da7796 | 9427 | coding: utf-8 |
c906108c | 9428 | End: |