Commit | Line | Data |
---|---|---|
1706c199 YQ |
1 | 2011-06-01 Yao Qi <yao@codesourcery.com> |
2 | ||
3 | * objfiles.h (obj_section_addr): Update reference to objfile from | |
4 | `abfd' to `obfd'. | |
5 | (obj_section_endaddr): Likewise. | |
6 | ||
d19cd713 | 7 | 2011-06-01 Daniel Jacobowitz <drow@false.org> |
8d07004d DJ |
8 | |
9 | * MAINTAINERS: Update my email address and affiliation. Also | |
10 | update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org. | |
11 | ||
e8eb7bc5 KS |
12 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
13 | ||
14 | PR c++/12750 | |
15 | * linespec.c (get_search_block): New function. | |
16 | (find_methods): Add FILE_SYMTATB parameter and use it and | |
17 | get_search_block to pass an appropriate block to | |
18 | lookup_symbol_in_namespace. | |
19 | (decode_line_1): Record if *ARGPTR is single-quote enclosed. | |
20 | Check if *ARGPTR starts with a filename first. | |
21 | If it does, call locate_first_half again to locate the next | |
22 | "first half" of the linespec. | |
23 | Pass FILE_SYMTATB to decode_objc and decode_compound. | |
24 | Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED. | |
25 | (locate_first_half): Stop on the first colon seen. | |
26 | (decode_compound): Add FILE_SYMTAB parameter. | |
27 | Pass FILE_SYMTAB to lookup_prefix_sym and find_method. | |
28 | (lookup_prefix_sym): Add FILE_SYMTAB parameter and use | |
29 | get_search_block with lookup_symbol. | |
30 | (find_method): Add FILE_SYMTAB parameter and pass it to | |
31 | find_methods. | |
32 | (decode_objc): Use get_search_block. | |
33 | ||
2b1dbab0 KS |
34 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
35 | ||
36 | PR symtab/12704 | |
37 | * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. | |
38 | (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR | |
39 | and CP_ANONYMOUS_NAMESPACE_LEN. | |
40 | (cp_is_anonymous): Likewise. | |
41 | * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. | |
42 | (CP_ANONYMOUS_NAMESPACE_LEN): Define. | |
43 | * dwarf2read.c (namespace_name): Likewise. | |
44 | (fixup_partial_die): Likewise. | |
45 | * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is | |
46 | seen in the input, keep it. | |
47 | ||
6d549500 PA |
48 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
49 | ||
50 | * target.h (enum inferior_event_type): Delete INF_QUIT_REQ. | |
51 | * inf-loop.h (inferior_event_handler_wrapper): Delete. | |
52 | * inf-loop.c (inferior_event_handler_wrapper): Delete. | |
53 | (inferior_event_handler): Don't handle INF_QUIT_REQ. | |
54 | * remote.c (_initialize_remote): Register | |
55 | async_remote_interrupt_twice directly as | |
56 | sigint_remote_twice_token event. | |
57 | ||
395bff70 PA |
58 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
59 | ||
60 | * target.h (enum inferior_event_type): Delete INF_ERROR. | |
61 | * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR. | |
62 | ||
97224164 PA |
63 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
64 | ||
65 | * interps.c (interp_set): Don't cancel continuations. | |
66 | ||
07e78767 JK |
67 | 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
68 | ||
69 | * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf. | |
70 | ||
fa4cd53f PA |
71 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
72 | ||
73 | * continuations.h (continuation_ftype): Add `err' parameter. | |
74 | Document parameters. | |
75 | (do_all_continuations, do_all_continuations_thread) | |
76 | (do_all_intermediate_continuations) | |
77 | (do_all_intermediate_continuations_thread) | |
78 | (do_all_inferior_continuations): Add `err' parameter. | |
79 | * continuations.c (do_my_continuations_1, do_my_continuations) | |
80 | (do_all_inferior_continuations, do_all_continuations_ptid) | |
81 | (do_all_continuations_thread_callback) | |
82 | (do_all_continuations_thread, do_all_continuations) | |
83 | (do_all_intermediate_continuations_thread_callback) | |
84 | (do_all_intermediate_continuations_thread) | |
85 | (do_all_intermediate_continuations): Add `err' parameter, and pass | |
86 | it down all the way to the continuations proper. | |
87 | * inf-loop.c (inferior_event_handler): If fetching an inferior | |
88 | event throws an error, don't pop the target, and still call the | |
89 | continuations, but with `err' set. Adjust all other continuation | |
90 | calls. | |
91 | * breakpoint.c (until_break_command_continuation): Add `err' | |
92 | parameter. | |
93 | * infcmd.c (step_1_continuation): Add `err' parameter. Don't | |
94 | issue another step if `err' is set. | |
95 | (struct until_next_continuation_args): New. | |
96 | (until_next_continuation): Add `err' parameter. Adjust. | |
97 | (until_next_command): Adjust. | |
98 | (struct finish_command_continuation_args): Add `thread' field. | |
99 | (finish_command_continuation): Add `err' parameter. Handle it. | |
100 | (finish_forward): Adjust. | |
101 | (attach_command_continuation): Add `err' parameter. Handle it. | |
102 | * infrun.c (infrun_thread_stop_requested_callback): Adjust to | |
103 | cancel the continuations. | |
104 | * interps.c (interp_set): Adjust to cancel the continuations. | |
105 | * thread.c (clear_thread_inferior_resources): Adjust to cancel the | |
106 | continuations rather than discarding. | |
107 | (free_thread): Don't clear thread inferior resources here. | |
108 | (delete_thread_1): Do it here instead. And do it before removing | |
109 | the thread from the threads list. Tag the thread as exited before | |
110 | clearing thread inferior resources. | |
111 | ||
c2949be0 JB |
112 | 2011-05-30 Joel Brobecker <brobecker@adacore.com> |
113 | ||
114 | * infcall.c (call_function_by_hand): Rephrase error message. | |
115 | ||
619cebe8 PA |
116 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
117 | ||
118 | * defs.h (struct thread_info, struct inferior): Delete forward | |
119 | declarations. | |
120 | * breakpoint.h (struct thread_info): New forward declaration. | |
121 | * observer.sh (struct inferior): New forward declaration. | |
122 | * python/python-internal.h (struct inferior): New forward | |
123 | declaration. | |
124 | ||
be34f849 PA |
125 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
126 | ||
127 | * defs.h (struct continuation, continuation_ftype) | |
128 | (continuation_free_arg_ftype, add_continuation) | |
129 | (do_all_continuations, do_all_continuations_thread) | |
130 | (discard_all_continuations, discard_all_continuations_thread) | |
131 | (add_intermediate_continuation, do_all_intermediate_continuations) | |
132 | (do_all_intermediate_continuations_thread) | |
133 | (discard_all_intermediate_continuations) | |
134 | (discard_all_intermediate_continuations_thread) | |
135 | (add_inferior_continuation, do_all_inferior_continuations) | |
136 | (discard_all_inferior_continuations): Move to ... | |
137 | * continuations.h: ... this new file. | |
138 | * breakpoint.c, continuations.c, event-top.c, inf-loop.c, | |
139 | infcmd.c, inferior.c, infrun.c, interps.c: Include | |
140 | continuations.h. | |
141 | ||
432b4d03 JK |
142 | 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
143 | Doug Evans <dje@google.com> | |
144 | ||
145 | Fix PR 10970, PR 12702. | |
146 | * linux-nat.c (linux_lwp_is_zombie): New function. | |
147 | (wait_lwp): Initialize status. New variable prev_mask. Block signals. | |
148 | Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend. | |
149 | ||
b0f260d6 PA |
150 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
151 | ||
152 | * defs.h (continuation_ftype, continuation_free_arg_ftype): New | |
153 | typedefs. | |
154 | (add_continuation, add_intermediate_continuation) | |
155 | (add_inferior_continuation): Use them. | |
156 | * continuations.c (struct continuation): Use them. | |
157 | (make_continuation_ftype): Delete. | |
158 | (make_continuation, add_inferior_continuation, add_continuation) | |
159 | (add_intermediate_continuation): Use continuation_ftype and | |
160 | continuation_free_arg_ftype. Rename parameters to shorter names. | |
161 | ||
af1e9a32 PA |
162 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
163 | ||
164 | * continuations.c (make_continuation): Make it return void. | |
165 | (do_my_continuations): Rename to ... | |
166 | (do_my_continuations_1): ... this. Remove old_chain parameter and | |
167 | adjust. | |
168 | (do_my_continuations): New. | |
169 | (discard_my_continuations): Rename to ... | |
170 | (discard_my_continuations_1): ... this. Remove old_chain | |
171 | parameter and adjust. | |
172 | (discard_my_continuations): New. | |
173 | (add_inferior_continuation): Simplify. | |
174 | (do_all_inferior_continuations): Reimplement on top | |
175 | do_my_continuations. | |
176 | (discard_all_inferior_continuations): Simplify. | |
177 | (add_continuation): Simplify. | |
178 | (do_all_continuations_ptid): Simplify. | |
179 | (discard_all_continuations_thread_callback): Simplify. | |
180 | (add_intermediate_continuation): Simplify. | |
181 | (discard_all_intermediate_continuations_thread_callback): | |
182 | Simplify. | |
183 | ||
50c0c017 PA |
184 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
185 | ||
186 | * utils.c (struct continuation, add_continuation) | |
187 | (add_inferior_continuation) | |
188 | (do_all_inferior_continuations, discard_all_inferior_continuations) | |
189 | (restore_thread_cleanup, do_all_continuations_ptid) | |
190 | (do_all_continuations_thread_callback) | |
191 | (do_all_continuations_thread, do_all_continuations) | |
192 | (discard_all_continuations_thread_callback) | |
193 | (discard_all_continuations_thread, discard_all_continuations) | |
194 | (add_intermediate_continuation) | |
195 | (do_all_intermediate_continuations_thread_callback) | |
196 | (do_all_intermediate_continuations_thread) | |
197 | (do_all_intermediate_continuations) | |
198 | (discard_all_intermediate_continuations_thread_callback) | |
199 | (discard_all_intermediate_continuations_thread) | |
200 | (discard_all_intermediate_continuations): Move to ... | |
201 | * continuations.c: ... this new file, and adjust to no longer | |
202 | implement continuations on top of cleanups. | |
203 | * Makefile.in (SFILES): Add continuations.c. | |
204 | (COMMON_OBS): Add continuations.o. | |
205 | ||
d8b34453 PA |
206 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
207 | ||
208 | * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR. | |
209 | * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR. | |
210 | Internal error on invalid values. | |
211 | * reverse.c: Don't handle EXEC_ERROR. | |
212 | * mi/mi-main.c: Don't handle EXEC_ERROR. | |
213 | ||
32231432 PA |
214 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
215 | ||
216 | * record.c: Include event-loop.h, inf-loop.h. | |
217 | (record_beneath_to_async): New global. | |
218 | (tmp_to_async): New global. | |
219 | (record_async_inferior_event_token): New global. | |
220 | (record_open_1): Don't error out if async is enabled. | |
221 | (record_open): Handle to_async. Create an async event source in | |
222 | the event loop. | |
223 | (record_close): Delete the async event source. | |
224 | (record_resumed): New global. | |
225 | (record_execution_dir): New global. | |
226 | (record_resume, record_core_resume): Set them. Register the | |
227 | target on the event loop. | |
228 | (record_wait): Rename to ... | |
229 | (record_wait_1): ... this. Add more debug output. Handle | |
230 | TARGET_WNOHANG, and the target beneath returning | |
231 | TARGET_WAITKIND_IGNORE. | |
232 | (record_wait): Reimplement on top of record_wait_1. | |
233 | (record_async_mask_value): New global. | |
234 | (record_async, record_async_mask, record_can_async_p) | |
235 | (record_is_async_p, record_execution_direction): New functions. | |
236 | (init_record_ops, init_record_core_ops): Install new methods. | |
237 | * infrun.c (fetch_inferior_event): Temporarily switch the global | |
238 | execution direction to the direction the target was going. | |
239 | (execution_direction): Change type to int. | |
240 | * target.c (default_execution_direction): New function. | |
241 | (update_current_target): Inherit and de_fault | |
242 | to_execution_direction. | |
243 | * target.h (struct target_ops) <to_execution_direction>: New | |
244 | field. | |
245 | (target_execution_direction): New macro. | |
246 | * inferior.h (execution_direction): Change type to int. | |
247 | ||
949dc678 PA |
248 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
249 | ||
250 | * infcall.c (call_function_by_hand): Don't allow calling functions | |
251 | in reverse execution mode. | |
252 | ||
c13bd2b5 PA |
253 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
254 | ||
255 | * infcmd.c (finish_command): Allow async finish in reverse. | |
256 | ||
6938fd34 YQ |
257 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
258 | ||
259 | * gdb_thread_db.h: Delete. Move to ... | |
260 | * common/gdb_thread_db.h: ... here. | |
261 | ||
9da8c2a0 PA |
262 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
263 | ||
264 | * infcmd.c (finish_backward): Set a step-resume breakpoint at the | |
265 | function's entry point instead of a manually managed momentary | |
266 | breakpoint, and only ever issue one proceed call. | |
267 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If | |
268 | doing a reverse-finish, switch to stepi mode, to do another step. | |
269 | (insert_step_resume_breakpoint_at_sal): Make public. | |
270 | (normal_stop): No need to save function value return registers if | |
271 | going reverse. | |
272 | * inferior.h (insert_step_resume_breakpoint_at_sal): Declare. | |
273 | ||
2c03e5be PA |
274 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
275 | ||
276 | * breakpoint.h (enum bptype) <bp_hp_step_resume>: New. | |
277 | (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME | |
278 | before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME | |
279 | at the end. | |
280 | * breakpoint.c (update_breakpoints_after_exec): Also delete hp | |
281 | step-resume breakpoints. | |
282 | (print_it_typical): Handle bp_hp_step_resume. | |
283 | (bpstat_what): Ditto. | |
284 | (bptype_string): Ditto. | |
285 | (print_one_breakpoint_location): Ditto. | |
286 | (allocate_bp_location): Ditto. | |
287 | (mention): Ditto. | |
288 | (breakpoint_re_set_one): Ditto. | |
289 | * infrun.c (handle_inferior_event): Adjust. Split | |
290 | BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and | |
291 | BPSTAT_WHAT_HP_STEP_RESUME. | |
292 | (insert_step_resume_breakpoint_at_sal): Rename to ... | |
293 | (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype | |
294 | parameter. Handle it. | |
295 | (insert_step_resume_breakpoint_at_sal): Reimplement on top of | |
296 | insert_step_resume_breakpoint_at_sal_1. | |
297 | (insert_step_resume_breakpoint_at_frame): Rename to ... | |
298 | (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to | |
299 | set a high-priority step-resume breakpoint. | |
300 | (insert_step_resume_breakpoint_at_frame): Adjust comment. | |
301 | (insert_step_resume_breakpoint_at_caller): Ditto. | |
302 | ||
51be5b68 PA |
303 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
304 | ||
305 | * breakpoint.c (iterate_over_related_breakpoints): New. | |
306 | (do_map_delete_breakpoint): New. | |
307 | (delete_command): Pass do_map_delete_breakpoint to | |
308 | map_breakpoint_numbers. | |
309 | (do_disable_breakpoint): New. | |
310 | (do_map_disable_breakpoint): Iterate over the breakpoint's related | |
311 | breakpoints. | |
312 | (do_enable_breakpoint): Rename to ... | |
313 | (enable_breakpoint_disp): ... this. | |
314 | (enable_breakpoint): Adjust. | |
315 | (do_enable_breakpoint): New. | |
316 | (enable_once_breakpoint): Delete. | |
317 | (do_map_enable_breakpoint): New. | |
318 | (do_map_enable_once_breakpoint): New. | |
319 | (enable_once_command, enable_delete_command) | |
320 | (delete_trace_command): Iterate over the breakpoint's related | |
321 | breakpoints. | |
322 | ||
4a1be8d2 PA |
323 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
324 | ||
325 | * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true | |
326 | for ALPHA_ZERO_REGNUM. | |
327 | (alpha_supply_int_regs): Explicitly supply zero as the value for | |
328 | ALPHA_ZERO_REGNUM in the register cache. | |
329 | * alpha-nat.c (fetch_osf_core_registers): Ditto. | |
330 | ||
59d70315 YQ |
331 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
332 | ||
333 | * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T. | |
334 | ||
251d32d9 TG |
335 | 2011-05-26 Tristan Gingold <gingold@adacore.com> |
336 | ||
337 | * symfile.h (struct dwarf2_section_names): New type. | |
338 | (struct dwarf2_debug_sections): New type. | |
339 | (dwarf2_has_info): Add parameter. | |
340 | * dwarf2read.c (dwarf2_elf_names): New variable. | |
341 | (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION) | |
342 | (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION) | |
343 | (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove. | |
344 | (dwarf2_has_info): Add names parameter. Pass names | |
345 | to dwarf2_locate_sections. | |
346 | (section_is_p): Rewrite using the names parameter. | |
347 | (dwarf2_locate_sections): Use section names from the names parameter. | |
348 | * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info. | |
349 | * elfread.c (read_psyms): Ditto. | |
350 | * machoread.c (macho_symfile_read): Ditto. | |
351 | ||
652c71b4 AS |
352 | 2011-05-25 Andreas Schwab <schwab@redhat.com> |
353 | ||
354 | PR gdb/8677 | |
355 | * event-loop.c (handle_file_event): Don't handle POLLHUP as error. | |
356 | ||
f17170e5 KS |
357 | 2011-05-24 Keith Seitz <keiths@redhat.com> |
358 | ||
359 | PR breakpoint/12803 | |
360 | * linespec.c (keep_name_info): Add handling for "volatile" keyword. | |
361 | (decode_compound): Unconditionally call keep_name_info. | |
362 | ||
cdac0397 PA |
363 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
364 | ||
365 | * breakpoint.c (watchpoint_check): If the watchpoint went out of | |
366 | scope, clear its command list. | |
367 | (map_breakpoint_numbers): Don't walk the related breakpoints list | |
368 | of each breakpoint. | |
369 | ||
91d4fe3f TT |
370 | 2011-05-24 Tom Tromey <tromey@redhat.com> |
371 | ||
372 | * MAINTAINERS: Move Jim Blandy to past maintainers. | |
373 | ||
3017a003 TG |
374 | 2011-05-24 Tristan Gingold <gingold@adacore.com> |
375 | ||
376 | * symfile.h (enum dwarf2_section_enum): New type. | |
377 | (dwarf2_get_section_info): New prototype. | |
378 | * dwarf2read.c (dwarf2_get_section_info): Replace parameter | |
379 | section_name by sect. Use a switch to select the info. | |
380 | * dwarf2-frame.c (warf2_get_section_info): Remove prototype. | |
381 | (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info. | |
382 | ||
c91c8c16 PA |
383 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
384 | ||
385 | * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting | |
386 | shared library event breakpoint if there's no execution. | |
387 | ||
77bc418a TJB |
388 | 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com> |
389 | ||
390 | * breakpont.c (remove_hw_watchpoints): Remove unused function. | |
391 | * breakpoint.h remove_hw_watchpoints(): Remove prototype. | |
392 | ||
c50491a7 TT |
393 | 2011-05-23 Tom Tromey <tromey@redhat.com> |
394 | ||
395 | * c-lang.c (evaluate_subexp_c): Use expect_type if it is not | |
396 | NULL. | |
397 | ||
6d64e6d4 DE |
398 | 2011-05-23 Doug Evans <dje@google.com> |
399 | ||
400 | * python/lib/gdb/printing.py (register_pretty_printer): Add missing | |
401 | entry for RuntimeError to doc string. | |
402 | ||
2067c8d4 JG |
403 | 2011-05-23 Jerome Guitton <guitton@adacore.com> |
404 | ||
405 | * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction | |
406 | sequence for probing loops. | |
407 | ||
b136cd05 PA |
408 | 2011-05-23 Pedro Alves <pedro@codesourcery.com> |
409 | ||
410 | * infrun.c (user_visible_resume_ptid): Fix typos in describing | |
411 | comment. | |
412 | ||
22e74ef9 MK |
413 | 2011-05-21 Mark Kettenis <kettenis@gnu.org> |
414 | ||
415 | * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply | |
416 | zero as the value for %g0 in the register cache. | |
417 | * sparc-tdep.c (sparc32_supply_gregset): Likewise. | |
418 | * sparc64-tdep.c (sparc64_supply_gregset): Likewise. | |
419 | ||
842951eb PA |
420 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
421 | ||
422 | * infrun.c (proceed): Set previous_inferior_ptid here. | |
423 | (init_wait_for_inferior): Initialize previous_inferior_ptid from | |
424 | inferior_ptid, not null_ptid. | |
425 | (wait_for_inferior): Don't initialize previous_inferior_ptid here. | |
426 | (fetch_inferior_event): Nor here. | |
427 | ||
46cf51e6 PA |
428 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
429 | ||
430 | * inf-loop.c (inferior_event_handler): Only output a message if | |
431 | verbose. | |
432 | ||
29ef4c46 LM |
433 | 2011-05-20 Luis Machado <lgustavo@codesourcery.com> |
434 | ||
435 | * MAINTAINERS: Update my e-mail address. | |
436 | ||
f148b27e PA |
437 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
438 | ||
439 | * infrun.c (proceed): Switch the inferior event loop to | |
440 | INF_EXEC_COMPLETE if the target refused to resume from a | |
441 | vfork/fork. | |
442 | ||
09cee04b PA |
443 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
444 | ||
445 | * infcmd.c: Include "inf-loop.h". | |
446 | (step_once): When stepping into an inline subroutine, pretend the | |
447 | target has run. If the target can async, switch the inferior | |
448 | event loop to INF_EXEC_COMPLETE. | |
449 | * inferior.h (user_visible_resume_ptid): Declare. | |
450 | * infrun.c (user_visible_resume_ptid): New function, factored out | |
451 | from `resume'. | |
452 | (resume): Use it. | |
453 | * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion | |
454 | that the current thread is running. Merge async and sync | |
455 | branches. | |
456 | ||
751b8ce1 PA |
457 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
458 | ||
459 | * infcmd.c (step_1): Simplify synchronous case. | |
460 | ||
e93a69ed PA |
461 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
462 | ||
463 | * tracepoint.c: Include exceptions.h. | |
464 | (TFILE_PID): Move higher in file. | |
465 | (tfile_open): Delay pushing the tfile target until we're assured | |
466 | the tfile header is present in the file. Wrap reading the initial | |
467 | newline-terminated lines in TRY_CATCH. Pop the target if the | |
468 | initial setup failed. Add the tfile's thread immediately | |
469 | aftwards, before any non-essential setup. Don't skip | |
470 | post_create_inferior if there are no traceframes present in the | |
471 | file. | |
472 | (tfile_close): Remove redundant check for null before xfree call. | |
473 | (tfile_thread_alive): New function. | |
474 | (init_tfile_ops): Register it as to_thread_alive callback. | |
475 | ||
6823e2b1 PA |
476 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
477 | ||
478 | * tracepoint.c (tfile_open): Delete #if 0'd code. | |
479 | ||
b3c8eb43 JK |
480 | 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
481 | ||
482 | Fix -readnow for -gdwarf-4 unused type units. | |
483 | * dwarf2read.c (struct signatured_type): Remove the field offset. | |
484 | (create_signatured_type_table_from_index): Remove its initialization. | |
485 | (create_debug_types_hash_table): Likewise. Initialize per_cu.offset | |
486 | instead. Add a complaint call. | |
487 | (process_psymtab_comp_unit): Change assignment to gdb_assert. | |
488 | (process_type_comp_unit, lookup_die_type, dump_die_shallow) | |
489 | (lookup_signatured_type_at_offset, read_signatured_type) | |
490 | (write_one_signatured_type): Update the field for per_cu. | |
491 | ||
310afc76 TT |
492 | 2011-05-19 Tom Tromey <tromey@redhat.com> |
493 | ||
494 | * python/py-inferior.c (python_inferior_exit): Use | |
495 | target_gdbarch. | |
496 | (python_on_resume): Likewise. | |
497 | ||
cf6c5ffb TT |
498 | 2011-05-19 Matt Rice <ratmice@gmail.com> |
499 | ||
500 | * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. | |
501 | ||
fb80a3c5 HZ |
502 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
503 | ||
504 | * tracepoint.c (tfile_trace_find): Return directly when num is -1. | |
505 | ||
3672b1be HZ |
506 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
507 | ||
508 | * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved. | |
509 | ||
ff355380 TT |
510 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
511 | ||
512 | * dwarf2read.c (dwarf2_add_field): Constify. | |
513 | * value.c (value_static_field): Constify. | |
514 | * gdbtypes.h (struct main_type) <field.field_location.physname>: | |
515 | Now const. | |
516 | * ax-gdb.c (gen_static_field): Constify | |
517 | ||
ed731959 JK |
518 | 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
519 | ||
520 | * linux-nat.c (kill_callback): Use SIGKILL first. | |
521 | ||
967cff16 JB |
522 | 2011-05-18 Joel Brobecker <brobecker@adacore.com> |
523 | ||
524 | * ada-lang.c (print_it_exception): Avoid use of sprintf. | |
525 | ||
1d06ead6 TT |
526 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
527 | ||
528 | * value.c (value_fn_field): Constify. | |
529 | * symtab.c (gdb_mangle_name): Constify. | |
530 | * stabsread.c (update_method_name_from_physname): Make 'physname' | |
531 | argument const. | |
532 | * p-typeprint.c (pascal_type_print_method_args): Make arguments | |
533 | const. Use explicit fputc_filtered loop. | |
534 | (pascal_type_print_base): Constify. | |
535 | * p-lang.h (pascal_type_print_method_args): Update. | |
536 | * linespec.c (add_matching_methods): Constify. | |
537 | (add_constructors): Likewise. | |
538 | * jv-typeprint.c (java_type_print_base): Constify. | |
539 | * gdbtypes.h (struct cplus_struct_type) | |
540 | <fn_fieldlist.fn_field.physname>: Now const. | |
541 | * dwarf2read.c (compute_delayed_physnames): Constify. | |
542 | (dwarf2_add_member_fn): Likewise. | |
543 | * c-typeprint.c (c_type_print_base): Constify. Use cleanups. | |
544 | ||
0d9a9a5f PA |
545 | 2011-05-18 Pedro Alves <pedro@codesourcery.com> |
546 | ||
547 | * infrun.c (resume): Mention which is the current thread, and its | |
548 | current PC in debug output. | |
549 | (prepare_to_proceed): Mention the thread switching in debug | |
550 | output. | |
551 | ||
05386e9e TT |
552 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
553 | ||
554 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute | |
555 | path check. Use xmalloc and cleanups. | |
556 | (try_thread_db_load_from_dir): Use xmalloc and cleanups. | |
557 | ||
ee86786c TT |
558 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
559 | ||
560 | * cp-valprint.c (cp_print_value_fields): Catch errors from | |
561 | value_static_field. | |
562 | ||
9ff3b74f TT |
563 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
564 | ||
565 | * dwarf2read.c (dwarf2_get_die_type): Call | |
566 | get_die_type_at_offset. | |
567 | * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from | |
568 | get_base_type function. | |
569 | ||
cd3da28e PA |
570 | 2011-05-17 Tomas Martinec <fyzmat@gmail.com> |
571 | ||
572 | * infrun.c (handle_inferior_event) <handling deferred step>: Clear | |
573 | trap_expected. | |
574 | ||
fd20d931 DE |
575 | 2011-05-16 Doug Evans <dje@google.com> |
576 | ||
577 | * python/py-auto-load.c (source_section_scripts): Mention objfile | |
578 | name in warning. | |
579 | ||
75fc9810 DE |
580 | 2011-05-15 Doug Evans <dje@google.com> |
581 | ||
290351b8 DE |
582 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. |
583 | (try_thread_db_load_from_pdir): Call it. If unable to find | |
584 | libthread_db in directory of libpthread, see if we're looking at | |
585 | the separate-debug-info copy. | |
586 | ||
75fc9810 DE |
587 | * python/py-autoload.c (print_script): Print "Missing" instead of |
588 | "No" for missing scripts. | |
589 | (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". | |
590 | ||
9f7bc587 DE |
591 | 2011-05-13 Doug Evans <dje@google.com> |
592 | ||
593 | * ui-file.c (stdio_file_write_async_safe): Add comment. | |
594 | ||
093cee7d HZ |
595 | 2011-05-14 Hui Zhu <teawater@gmail.com> |
596 | ||
597 | * ui-file.c (stdio_file_write_async_safe): Add empty check for build. | |
598 | ||
dbaefcf7 DE |
599 | 2011-05-13 Doug Evans <dje@google.com> |
600 | ||
98a5dd13 DE |
601 | Support $pdir and $sdir in libthread-db-search-path. |
602 | * NEWS: Mention $sdir,$pdir. | |
603 | * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir. | |
604 | * linux-thread-db.c (try_thread_db_load_from_pdir): New function. | |
605 | (try_thread_db_load_from_sdir): New function. | |
606 | (try_thread_db_load_from_dir): New function. | |
607 | (thread_db_load_search): Handle $pdir, $sdir. Remove trying of | |
608 | system directories if search of libthread-db-search-path fails, | |
609 | that is now done via $sdir. | |
610 | (has_libpthread): New function. | |
611 | (thread_db_load): Remove search for libthread_db in directory of | |
612 | libpthread, that is now done via $pdir. | |
613 | ||
dbaefcf7 DE |
614 | * NEWS: Mention "info auto-load-scripts". |
615 | * python/py-auto-load.c (struct auto_load_pspace_info): New member | |
616 | script_not_found_warning_printed. | |
617 | (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash, | |
618 | all callers updated. Initialize script_not_found_warning_printed. | |
619 | (get_auto_load_pspace_data_for_loading): New function. | |
620 | (maybe_add_script): New function. | |
621 | (source_section_scripts): Simplify. Only print one warning regardless | |
622 | of the number of auto-load scripts not found. | |
623 | (clear_section_scripts): Clear script_not_found_warning_printed. | |
624 | (auto_load_objfile_script): Record script in hash table. | |
625 | (count_matching_scripts): New function. | |
626 | (maybe_print_script): Renamed from maybe_print_section_script, all | |
627 | callers updated. Rewrite to use ui_out_*. | |
628 | (info_auto_load_scripts): Renamed from | |
629 | maintenance_print_section_scripts, all callers updated. | |
630 | (gdbpy_initialize_auto_load): "maintenance print section-scripts" | |
631 | renamed as "info auto-load-scripts". | |
632 | ||
9930639c TT |
633 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
634 | ||
635 | * dwarf2expr.c (read_uleb128): Cast intermediate result. | |
636 | (read_sleb128): Likewise. | |
637 | ||
06826322 TT |
638 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
639 | ||
640 | * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction | |
641 | offset display. | |
642 | ||
01124a23 DE |
643 | 2011-05-13 Doug Evans <dje@google.com> |
644 | ||
645 | * linux-nat.c (debug_linux_nat_async): Delete. | |
646 | Replace all references to use debug_linux_nat instead. | |
647 | (show_debug_linux_nat_async): Delete. | |
648 | (sigchld_handler): Call ui_file_write_async_safe instead of | |
649 | fprintf_unfiltered. | |
650 | (_initialize_linux_nat): Remove `set debug lin-lwp-async'. | |
651 | * ui-file.c (struct ui_file): New member to_write_async_safe. | |
652 | (null_file_write_async_safe): New function. | |
653 | (ui_file_write_async_safe): New function. | |
654 | (set_ui_file_write_async_safe): New function. | |
655 | (ui_file_new): Initialize to_write_async_safe. | |
656 | (stdio_file_write_async_safe): New function. | |
657 | (struct stdio_file): New member fd. | |
658 | (stdio_file_new): Initialize to_write_async_safe, fd. | |
bbfac39e DE |
659 | (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling |
660 | fileno. | |
01124a23 DE |
661 | * ui-file.h (ui_file_write_async_safe_ftype): New typedef. |
662 | (set_ui_file_write_async_safe): Declare. | |
663 | (ui_file_write_async_safe): Declare. | |
664 | ||
72fc29ff TT |
665 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
666 | ||
667 | * utils.c (do_value_free): New function. | |
668 | (make_cleanup_value_free): Likewise. | |
669 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value | |
670 | freeing correctly. | |
671 | (dwarf2_loc_desc_needs_frame): Call | |
672 | make_cleanup_value_free_to_mark. | |
673 | * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field. | |
674 | * dwarf2expr.c (free_dwarf_expr_context): Don't call | |
675 | value_free_to_mark. | |
676 | (new_dwarf_expr_context): Don't call value_mark. | |
677 | * dwarf2-frame.c (execute_stack_op): Call | |
678 | make_cleanup_value_free_to_mark. | |
679 | * defs.h (make_cleanup_value_free): Declare. | |
680 | ||
028d0ed5 TJB |
681 | 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
682 | ||
683 | * mi/mi-main.c (mi_cmd_execute): Use cleanup from | |
684 | prepare_execute_command. | |
685 | * top.c (prepare_execute_command): Return cleanup. | |
686 | (execute_command): Use cleanup from prepare_execute_command. | |
687 | * top.h (prepare_execute_command): Change prototype to return | |
688 | cleanup. | |
689 | * defs.h (struct value): Add opaque declaration. | |
690 | (make_cleanup_value_free_to_mark): Add prototype. | |
691 | * utils.c (do_value_free_to_mark): New function. | |
692 | (make_cleanup_value_free_to_mark): Likewise. | |
693 | ||
b087e0ed TT |
694 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
695 | ||
696 | * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally | |
697 | cast left-hand-side to unsigned. | |
698 | ||
8a9b8146 TT |
699 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
700 | ||
701 | PR gdb/12617: | |
702 | * value.h (value_from_contents): Declare. | |
703 | * value.c (value_from_contents): New function. | |
704 | * dwarf2read.c (dwarf_stack_op_name): Add new values. | |
705 | (dwarf2_get_die_type): New function. | |
706 | * dwarf2loc.c (dwarf_expr_get_base_type): New function. | |
707 | (allocate_piece_closure): Acquire reference to values. | |
708 | (read_pieced_value): Update for value-based expressions. | |
709 | (write_pieced_value): Likewise. | |
710 | (free_pieced_value_closure): Call value_free as needed. | |
711 | (dwarf2_evaluate_loc_desc_full): Set get_base_type field. | |
712 | Update for value-based expressions. | |
713 | * dwarf2loc.h (dwarf2_get_die_type): Declare. | |
714 | * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type. | |
715 | <get_base_type>: New field. | |
716 | (struct dwarf_expr_piece) <v.value>: Change type. | |
717 | <v.regno>: New field. | |
718 | (struct dwarf_expr_context) <mark>: New field. | |
719 | (dwarf_expr_piece, dwarf_expr_fetch): Update. | |
720 | (dwarf_expr_pop, dwarf_expr_push): Remove. | |
721 | (dwarf_expr_push_address): Declare. | |
722 | * dwarf2expr.c (dwarf_arch_cookie): New global. | |
723 | (struct dwarf_gdbarch_types): New. | |
724 | (dwarf_gdbarch_types_init, dwarf_expr_address_type): New | |
725 | functions. | |
726 | (dwarf_expr_push): Change type of 'value' argument. Update. Now | |
727 | static. | |
728 | (dwarf_expr_push_address): New function. | |
729 | (dwarf_expr_pop): Now static. | |
730 | (dwarf_expr_fetch): Change return type. | |
731 | (dwarf_require_integral): New function. | |
732 | (dwarf_expr_fetch): Simplify. | |
733 | (add_piece): Update. | |
734 | (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New | |
735 | functions. | |
736 | (execute_stack_op) <sign_ext>: Remove. | |
737 | Use values for DWARF stack. | |
738 | <DW_OP_GNU_const_type, DW_OP_GNU_deref_type, | |
739 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
740 | New cases. | |
741 | (_initialize_dwarf2expr): New function. | |
742 | (add_piece): Update. | |
743 | (new_dwarf_expr_context): Set new field. | |
744 | (free_dwarf_expr_context): Call value_free_to_mark. | |
745 | * dwarf2-frame.c (no_base_type): New function. | |
746 | (execute_stack_op): Set get_base_type field. Update. | |
747 | ||
e8d28ef4 TT |
748 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
749 | ||
750 | * dwarf2read.c (read_common_block): Fix formatting. | |
751 | ||
d248b706 KY |
752 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
753 | ||
754 | * breakpoint.c (disable_breakpoint): Disable all locations | |
755 | associated with a tracepoint on target if a trace experiment is | |
756 | running. | |
757 | (disable_command): Disable a specific tracepoint location on target if | |
758 | a trace experiment is running. | |
759 | (do_enable_breakpoint): Enable all locations associated with a | |
760 | tracepoint on target if a trace experiment is running. | |
761 | (enable_command) Enable a specific tracepoint location on target if a | |
762 | trace experiment is running. | |
763 | * target.c (update_current_target): Add INHERIT and de_fault clauses for | |
764 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
765 | to_disable_tracepoint. | |
766 | * target.h: Add declaration of struct bp_location. | |
767 | (struct target_ops): Add new functions | |
768 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
769 | to_disable_tracepoint to target operations. | |
770 | (target_supports_enable_disable_tracepoint): New macro. | |
771 | (target_enable_tracepoint): New macro. | |
772 | (target_disable_tracepoint): New macro. | |
773 | * remote.c (struct remote_state): Add new field. | |
774 | (remote_enable_disable_tracepoint_feature): New. | |
775 | (remote_protocol_features): Add new entry. | |
776 | (remote_supports_enable_disable_tracepoint): New. | |
777 | (remote_enable_tracepoint): New. | |
778 | (remote_disable_tracepoint): New. | |
779 | (init_remote_ops): Add remote_enable_tracepoint, | |
780 | remote_disable_tracepoint and remote_supports_enable_disable_tracepoint | |
781 | to remote operations. | |
782 | * tracepoint.c (start_tracing): Allow tracing to start without any | |
783 | tracepoints enabled with just a warning if they can be re-enabled | |
784 | later. | |
785 | * NEWS: Add news item for the new behaviour of the enable and disable | |
786 | GDB commands when applied to tracepoints. | |
787 | Add news items for the new remote packets QTEnable and QTDisable. | |
788 | ||
cc88a640 JK |
789 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
790 | ||
791 | * config.in: Regenerate. | |
792 | * configure: Regenerate. | |
793 | * configure.ac <--with-system-readline> (for readline_echoing_p): | |
794 | Remove the test. | |
795 | * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... | |
796 | (tui_old_rl_echoing_p): ... here. | |
797 | (tui_setup_io): Rename extern declaration readline_echoing_p to | |
798 | _rl_echoing_p. Adjust assignments for the both renames. | |
799 | ||
1f84b619 TJB |
800 | 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
801 | ||
802 | * symtab.c (lookup_symtab): Run cleanup before returning. | |
803 | ||
74ac6d43 TT |
804 | 2011-05-11 Tom Tromey <tromey@redhat.com> |
805 | ||
806 | * dwarf2read.c (handle_data_member_location): New function. | |
807 | (dwarf2_add_field): Use it. | |
808 | (read_common_block): Likewise. | |
809 | ||
5488dafb JK |
810 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
811 | ||
812 | Make addrs->SECTINDEX always defined. | |
813 | * symfile.c (relative_addr_info_to_section_offsets): Check for | |
814 | SECTINDEX -1, not for zero ADDR. | |
815 | (addrs_section_compar): Remove checking for invalid SECTINDEX. | |
816 | (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries. | |
817 | * symfile.h (struct section_addr_info) <sectindex>: Update the comment | |
818 | on its validity. | |
819 | ||
84e578fb DE |
820 | 2011-05-10 Doug Evans <dje@google.com> |
821 | ||
2471d008 DE |
822 | * linux-thread-db.c: Whitespace cleanup. |
823 | (try_thread_db_load_1): Fix comment. | |
824 | ||
84e578fb DE |
825 | * linux-thread-db.c (set_libthread_db_search_path): New function. |
826 | (_initialize_thread_db): Add setter for libthread-db-search-path. | |
827 | ||
673c2bbe DE |
828 | 2011-05-09 Doug Evans <dje@google.com> |
829 | ||
478aac75 DE |
830 | * NEWS: Mention --with-iconv-bin. |
831 | * configure.ac: New option --with-iconv-bin. | |
832 | * configure: Regenerate. | |
833 | * config.in: Regenerate. | |
834 | * defs.h (relocate_gdb_directory): Declare. | |
835 | * main.c (relocate_gdb_directory): Renamed from relocate_directory, | |
836 | removed progname parameter, and exported. All callers updated. | |
837 | * charset.c (find_charset_names): Use --with-iconv-bin if specified. | |
838 | ||
673c2bbe DE |
839 | * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, |
840 | adding missing call to restore_child_signals_mask. | |
841 | ||
e4c8541f PA |
842 | 2011-05-09 Pedro Alves <pedro@codesourcery.com> |
843 | ||
844 | * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' | |
845 | parameter. | |
846 | * infrun.c (proceed, start_remote): Adjust. | |
847 | (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter, | |
848 | and adjust to not handle it. | |
849 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
850 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
851 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
852 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
853 | * windows-nat.c (do_initial_windows_stuff): Adjust. | |
854 | * infcmd.c (attach_command): Adjust. | |
855 | (notice_new_inferior): Adjust. | |
856 | ||
a536c6d7 UW |
857 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
858 | ||
859 | * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. | |
860 | (ppu2spu_unwind_register): Mark pseudo registers unavailable. | |
861 | * spu-tdep.c (op_selb): Use correct value. | |
862 | ||
7845b013 UW |
863 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
864 | ||
865 | * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL | |
866 | "parent" parameter to symbol_file_add_from_bfd call. | |
867 | ||
9c06b0b4 TJB |
868 | 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
869 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
870 | ||
871 | Implement support for PowerPC BookE masked watchpoints. | |
872 | * NEWS: Mention masked watchpoint support. Create "Changed commands" | |
873 | section. | |
874 | * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New | |
875 | method. Initialize to NULL in all existing breakpoint_ops instances. | |
876 | (struct breakpoint) <hw_wp_mask>: New field. | |
877 | * breakpoint.c (is_masked_watchpoint): Add prototype. | |
878 | (update_watchpoint): Don't set b->val for masked watchpoints. Call | |
879 | breakpoint's breakpoint_ops.works_in_software_mode if available. | |
880 | (watchpoints_triggered): Handle the case of a hardware masked | |
881 | watchpoint trigger. | |
882 | (watchpoint_check): Likewise. | |
883 | (works_in_software_mode_watchpoint): New function. | |
884 | (insert_masked_watchpoint, remove_masked_watchpoint) | |
885 | (resources_needed_masked_watchpoint) | |
886 | (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint) | |
887 | (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint) | |
888 | (print_recreate_masked_watchpoint, is_masked_watchpoint): New | |
889 | functions. | |
890 | (masked_watchpoint_breakpoint_ops): New structure. | |
891 | (watch_command_1): Check for the existence of the `mask' parameter. | |
892 | Set b->ops according to the type of hardware watchpoint being created. | |
893 | * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint) | |
894 | (ppc_linux_remove_mask_watchpoint) | |
895 | (ppc_linux_masked_watch_num_registers): New functions. | |
896 | (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint, | |
897 | to_remove_mask_watchpoint and to_masked_watch_num_registers. | |
898 | * target.c (update_current_target): Mention to_insert_mask_watchpoint, | |
899 | to_remove_mask_watchpoint, and to_masked_watch_num_registers. | |
900 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
901 | (target_masked_watch_num_registers): New functions. | |
902 | * target.h (struct target_ops) <to_insert_mask_watchpoint>, | |
903 | <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New | |
904 | methods. | |
905 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
906 | (target_masked_watch_num_registers): Add prototypes. | |
907 | ||
8be455d7 JK |
908 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
909 | ||
910 | PR 12573 | |
911 | * dwarf2read.c (struct dwarf2_cu): New field has_loclist. | |
912 | (producer_is_gcc_ge_4_0): New function. | |
913 | (process_full_comp_unit): Set also symtab->locations_valid. Move the | |
914 | symtab->language code. | |
915 | (var_decode_location): Set cu->has_loclist. | |
916 | * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and | |
917 | skip. Intialize force_skip from locations_valid. Move the prologue | |
918 | skipping code into two passes. | |
919 | * symtab.h (struct symtab): Make the primary field a bitfield. New | |
920 | field locations_valid. | |
921 | ||
d8228535 JK |
922 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
923 | ||
924 | * c-exp.y (qualified_name): Call destructor_name_p with $1.type. | |
925 | (classify_inner_name): Call cp_lookup_nested_type with | |
926 | yylval.tsym.type. | |
927 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
928 | saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call | |
929 | type_name_no_tag_or_error with saved_parent_type. | |
930 | * dwarf2read.c (load_partial_dies): Read in any children of | |
931 | DW_TAG_typedef with complaint in such case. | |
932 | * gdbtypes.c (type_name_no_tag_or_error): New function. | |
933 | * gdbtypes.h (type_name_no_tag_or_error): New prototype. | |
934 | * valops.c (destructor_name_p): New comment for parameter type. Remove | |
935 | type const. Make dname and cp const. Call type_name_no_tag_or_error. | |
936 | * value.h (destructor_name_p): Remove type const. | |
937 | ||
1976171a JK |
938 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
939 | ||
940 | * symtab.c (compare_symbol_name): New function. | |
941 | (completion_list_add_name, expand_partial_symbol_name): Call it, | |
942 | remove the variable ncmp. | |
943 | (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN, | |
944 | gdb_assert it. | |
945 | ||
a9634178 TJB |
946 | 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
947 | ||
948 | Demote to sw watchpoint only in update_watchpoint. | |
949 | * breakpoint.c (update_watchpoint): Change between software and | |
950 | hardware watchpoint for all kinds of watchpoints, not just | |
951 | read/write ones. Determine b->exact value here instead of | |
952 | in watch_command_1. Error out if there are not enough resources | |
953 | for a read or access hardware watchpoint. | |
954 | (watch_command_1): Remove logic of checking whether there are | |
955 | enough resources available, since update_watchpoint will do that | |
956 | work now. Don't set b->exact here. Catch exceptions thrown by | |
957 | update_watchpoint and delete the watchpoint. | |
958 | (can_use_hardware_watchpoint): Remove exact_watchpoints argument. | |
959 | Use target_exact_watchpoints instead. | |
960 | (delete_breakpoint): Notify observers only if deleted watchpoint | |
961 | has a breakpoint number assigned to it. | |
962 | ||
4c67c798 JJ |
963 | 2011-05-05 Janis Johnson <janisjo@codesourcery.com> |
964 | ||
965 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
966 | ||
a3fcb948 JG |
967 | 2011-05-05 Jerome Guitton <guitton@adacore.com> |
968 | ||
969 | * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): | |
970 | New functions. | |
971 | (i386_stack_tramp_frame_unwind): New static global. | |
972 | (i386_match_pattern): New function, extracted from i386_match_insn. | |
973 | (i386_match_insn): Use i386_match_pattern. | |
974 | (i386_match_insn_block): New function. | |
975 | (i386_tramp_chain_in_reg_insns) | |
976 | (i386_tramp_chain_on_stack_insns): New static variables. | |
977 | (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list | |
978 | of unwinders. | |
979 | ||
4d393d60 JM |
980 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
981 | ||
982 | * configure.host (xscale*): Don't handle target. | |
983 | * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't | |
984 | handle targets. | |
985 | ||
f70bd40b YQ |
986 | 2011-05-04 Yao Qi <yao@codesourcery.com> |
987 | ||
988 | * gdb_wait.h: remove WAITTYPE and WCOREDUMP. | |
989 | ||
dd3295ee JB |
990 | 2011-05-03 Joel Brobecker <brobecker@adacore.com> |
991 | ||
992 | Revert: | |
993 | | 2011-03-07 Michael Snyder <msnyder@vmware.com> | |
994 | | * elfread.c (elf_symtab_read): Stop memory leak. | |
995 | ||
90375a0e PM |
996 | 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
997 | ||
998 | * nto-tdep.c (nto_target): Replace deprecated call to | |
999 | cygwin_conv_to_posix_path functions by cygwin_conv_path calls. | |
1000 | ||
d07205c2 JK |
1001 | 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1002 | ||
1003 | Fix false GCC warning. | |
1004 | * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. | |
1005 | ||
1e718ff1 TJB |
1006 | 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1007 | ||
1008 | * breakpoint.c (update_watchpoint): Move code to change | |
1009 | the enable state of breakpoint from here ... | |
1010 | (do_enable_breakpoint): ... to here. | |
1011 | ||
35bef4fd TT |
1012 | 2011-04-26 Andrew Gontarek <andrewg@cray.com> |
1013 | ||
78290264 PP |
1014 | * valprint.c (val_print_array_elements): Fixed poor performance |
1015 | of printing very large arrays with repeat_count_threshold set | |
1016 | to unlimited. New comment. | |
35bef4fd | 1017 | |
38a714bb TT |
1018 | 2011-04-29 Tom Tromey <tromey@redhat.com> |
1019 | ||
1020 | * mi/mi-parse.c (mi_parse): Remove incorrect sizeof. | |
1021 | (mi_parse): Likewise. | |
1022 | * breakpoint.c (break_range_command): Use sizeof char*, not | |
1023 | char**. | |
1024 | (create_breakpoint): Likewise. | |
1025 | (parse_breakpoint_sals): Likewise. | |
1026 | ||
eb73ad13 PA |
1027 | 2011-04-29 Pedro Alves <pedro@codesourcery.com> |
1028 | ||
1029 | * linux-nat.c (linux_child_remove_fork_catchpoint) | |
1030 | (linux_child_remove_vfork_catchpoint) | |
1031 | (linux_child_remove_exec_catchpoint): New functions. | |
1032 | (linux_target_install_ops): Install them. | |
1033 | ||
d65aec65 PM |
1034 | 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> |
1035 | ||
1036 | PR mi/12531 | |
1037 | ||
1038 | * varobj.c (install_default_visualizer): Do not install a | |
1039 | visualizer if the varobj is CPLUS_FAKE_CHILD. | |
1040 | (construct_visualizer): Likewise. | |
1041 | ||
165195f4 JK |
1042 | 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1043 | ||
1044 | * symtab.c (expand_partial_symbol_name): New variable NCMP. Support | |
1045 | case insensitive comparison. | |
1046 | ||
30852783 UW |
1047 | 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org> |
1048 | ||
1049 | * infrun.c (proceed): Revert previous change. | |
1050 | (resume): Instead, handle the case of signal delivery while stepping | |
1051 | off a breakpoint location here, and only if software single-stepping | |
1052 | is used. Handle nested signals. | |
1053 | ||
7ff120b4 YQ |
1054 | 2011-04-28 Yao Qi <yao@codesourcery.com> |
1055 | ||
1056 | * arm-tdep.c (copy_unmodified): Rename to ... | |
1057 | (arm_copy_unmodified): .. this. New. | |
1058 | (copy_preload): Move common part to ... | |
1059 | (install_preload): .. this. New. | |
1060 | (arm_copy_preload): New. | |
1061 | (copy_preload_reg): Move common part to ... | |
1062 | (install_preload_reg): ... this. New. | |
1063 | (arm_copy_preload_reg): New. | |
1064 | (copy_b_bl_blx): Move common part to ... | |
1065 | (install_b_bl_blx): .. this. New. | |
1066 | (arm_copy_b_bl_blx): New. | |
1067 | (copy_bx_blx_reg): Move common part to ... | |
1068 | (install_bx_blx_reg): ... this. New. | |
1069 | (arm_copy_bx_blx_reg): New. | |
1070 | (copy_alu_reg): Move common part to ... | |
1071 | (install_alu_reg): ... this. New. | |
1072 | (arm_copy_alu_reg): New. | |
1073 | (copy_alu_shifted_reg): Move common part to ... | |
1074 | (install_alu_shifted_reg): ... this. New. | |
1075 | (copy_ldr_str_ldrb_strb): Move common part to ... | |
1076 | (install_ldr_str_ldrb_strb): ... this. New. | |
1077 | (arm_copy_ldr_str_ldrb_strb): New. | |
1078 | (copy_copro_load_store): Move some common part to ... | |
1079 | (install_copy_copro_load_store): ... this. New. | |
1080 | (arm_copy_copro_load_store): New. | |
1081 | (copy_svc): Delete. | |
1082 | (arm_copy_svc): Renamed from copy_svc. | |
1083 | (copy_undef): Delete. | |
1084 | (arm_copy_undef): Renamed from copy_undef. | |
1085 | (decode_ext_reg_ld_st): Delete. | |
1086 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
1087 | (decode_svc_copro): Delete. | |
1088 | (arm_decode_svc_copro): Renamed from decode_svc_copro. | |
1089 | (copy_copro_load_store, copy_alu_imm): update callers. | |
1090 | (copy_extra_ld_st, copy_block_xfer): Likewise. | |
1091 | (decode_misc_memhint_neon, decode_unconditional): Likewise. | |
1092 | (decode_miscellaneous, decode_dp_misc): Likewise. | |
1093 | (decode_ld_st_word_ubyte, decode_media): Likewise. | |
1094 | (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. | |
1095 | (decode_svc_copro, decode_misc_memhint_neon): Likewise. | |
1096 | (decode_unconditional, decode_miscellaneous): Likewise. | |
1097 | (decode_media, decode_b_bl_ldmstm): Likewise. | |
1098 | (arm_process_displaced_insn): Likewise.. | |
1099 | (decode_misc_memhint_neon): Delete. | |
1100 | (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. | |
1101 | (decode_miscellaneous): Delete. | |
1102 | (arm_decode_miscellaneous): Renamed from decode_miscellaneous. | |
1103 | (decode_dp_misc): Delete. | |
1104 | (arm_decode_dp_misc): Renamed from decode_dp_misc. | |
1105 | (decode_ld_st_word_ubyte): Delete. | |
1106 | (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. | |
1107 | (decode_media): Delete. | |
1108 | (arm_decode_media): Renamed from decode_media. | |
1109 | (decode_b_bl_ldmstm): Delete. | |
1110 | (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. | |
1111 | (decode_ext_reg_ld_st): Delete. | |
1112 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
1113 | (decode_unconditional): Delete. | |
1114 | (arm_decode_unconditional): Renamed from decode_unconditional. | |
1115 | ||
559a7a62 JK |
1116 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1117 | ||
1118 | Case insensitive lookups implementation. | |
1119 | * dwarf2read.c: Include ctype.h. | |
1120 | (struct mapped_index): New field version. | |
1121 | (mapped_index_string_hash): New parameter index_version. New comment | |
1122 | for it. Call tolower appropriately. | |
1123 | (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. | |
1124 | Choose the right index version for mapped_index_string_hash. | |
1125 | (dwarf2_read_index): Support also the index version 5. Initialize the | |
1126 | new struct mapped_index field version. | |
1127 | (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. | |
1128 | (find_slot): Explain the version needs. Pass INT_MAX for the new | |
1129 | parameter. | |
1130 | (write_psymtabs_to_index): Produce version 5. | |
1131 | * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, | |
1132 | use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. | |
1133 | * psymtab.c (lookup_partial_symbol): Find the | |
1134 | SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching | |
1135 | entries. | |
1136 | * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off | |
1137 | NAME lowercasing. | |
1138 | (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. | |
1139 | (completion_list_add_name): New variable ncmp, initialize it, use it. | |
1140 | * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. | |
1141 | * utils.c (strcmp_iw): Support case_sensitive_off. | |
1142 | (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. | |
1143 | New function comment part. New variables saved_string1, | |
1144 | saved_string2 and case_pass. Add a proper second pass. | |
1145 | ||
681bf369 JK |
1146 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1147 | ||
1148 | Replace re_comp/re_exec by regcomp/regexec. | |
1149 | * symtab.c (struct search_symbols_data): New fields preg, preg_p. | |
1150 | (search_symbols_name_matches): Use them, use regexec. | |
1151 | (search_symbols): New variable retval_chain, adjust the use of | |
1152 | old_chain against it. Replace re_comp by regcomp. Use the new struct | |
1153 | search_symbols_data fields, use regexec instead of re_exec. | |
1154 | ||
b11b1f88 JK |
1155 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1156 | ||
1157 | Format the code for the next patch. | |
1158 | * dwarf2read.c (struct mapped_index): Include delimiting newlines. | |
1159 | * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. | |
1160 | New variables c1 and c2. | |
1161 | ||
2484c66b UW |
1162 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
1163 | ||
1164 | * infrun.c (proceed): Do not single-step into signal delivery | |
1165 | when stepping off a breakpoint location. | |
1166 | (insert_step_resume_breakpoint_at_frame): Move prototype earlier. | |
1167 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
1168 | (insert_step_resume_breakpoint_at_sal): Likewise. | |
1169 | (insert_longjmp_resume_breakpoint): Likewise. | |
1170 | ||
47423772 YQ |
1171 | 2011-04-27 Yao Qi <yao@codesourcery.com> |
1172 | ||
1173 | * common/linux-ptrace.h: Remove include <sys/wait.h>. | |
1174 | ||
13bdd2e7 JB |
1175 | 2011-04-27 Joel Brobecker <brobecker@adacore.com> |
1176 | ||
1177 | * procfs.c (procfs_pass_signals): Fix advance declaration. | |
1178 | ||
2455069d UW |
1179 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
1180 | ||
1181 | * target.h (struct target_ops): Remove to_notice_signals; | |
1182 | add to_pass_signals. | |
1183 | (target_notice_signals): Remove. | |
1184 | (target_pass_signals): Add prototype. | |
1185 | * target.c (update_current_target): Remove to_notice_signals; | |
1186 | mention to_pass_signals. | |
1187 | (target_pass_signals): New function. | |
1188 | (debug_to_notice_signals): Remove. | |
1189 | (setup_target_debug): Do not install debug_to_notice_signals. | |
1190 | ||
1191 | * infrun.c (signal_pass): New global. | |
1192 | (resume): Call target_pass_signals. | |
1193 | (handle_inferior_event): Report all signals while stepping over | |
1194 | non-steppable watchpoint. Reset trap_expected to ensure breakpoints | |
1195 | are re-inserted when stepping over a signal handler. | |
1196 | (signal_cache_update): New function. | |
1197 | (signal_stop_update): Call it. | |
1198 | (signal_print_update): Likewise. | |
1199 | (signal_pass_update): Likewise. | |
1200 | (handle_command): Call signal_cache_update and target_pass_signals | |
1201 | instead of target_notice_signals. | |
1202 | (_initialize_infrun): Initialize signal_pass. | |
1203 | ||
1204 | * linux-nat.c (pass_mask): New global. | |
1205 | (linux_nat_pass_signals): New function. | |
1206 | (linux_nat_create_inferior): Report all signals initially. | |
1207 | (linux_nat_attach): Likewise. | |
1208 | (linux_nat_resume): Use pass_mask to decide whether to directly | |
1209 | handle an inferior signal. | |
1210 | (linux_nat_wait_1): Likewise. | |
1211 | (linux_nat_add_target): Install to_pass_signals callback. | |
1212 | ||
1213 | * nto-procfs.c (notice_signals): Remove. | |
1214 | (procfs_resume): Do not call notice_signals. | |
1215 | (procfs_notice_signals): Remove. | |
1216 | (procfs_pass_signals): New function. | |
1217 | (init_procfs_ops): Install to_pass_signals callback instead of | |
1218 | to_notice_signals callback. | |
1219 | (_initialize_procfs): Report all signals initially. | |
1220 | ||
1221 | * procfs.c (procfs_notice_signals): Remove. | |
1222 | (procfs_pass_signals): New function. | |
1223 | (procfs_target): Install to_pass_signals callback instead of | |
1224 | to_notice_signals callback. | |
1225 | (register_gdb_signals): Remove. | |
1226 | (procfs_debug_inferior): Report all signals initially. | |
1227 | (procfs_init_inferior): Remove redundant register_gdb_signals call. | |
1228 | ||
1229 | * remote.c (remote_pass_signals): Add numsigs and pass_signals | |
1230 | parameters; use them instead of calling signal_..._state routines. | |
1231 | (remote_notice_signals): Remove. | |
1232 | (remote_start_remote): Report all signals initially. | |
1233 | (remote_resume): Do not call remote_pass_signals. | |
1234 | (_initialize_remote): Install to_pass_signals callback instead of | |
1235 | to_notice_signals callback. | |
1236 | ||
46c6471b PA |
1237 | 2011-04-27 Pedro Alves <pedro@codesourcery.com> |
1238 | ||
1239 | * breakpoint.c (user_settable_breakpoint): Delete. | |
1240 | (user_breakpoint_p): Remove check on user_settable_breakpoint. | |
1241 | (delete_command): Check user_breakpoint_p instead of looking at | |
1242 | the breakpoint's type. | |
1243 | (disable_command): Ditto. | |
1244 | (enable_command): Ditto. | |
1245 | (delete_trace_command): Use user_breakpoint_p instead of looking | |
1246 | at the breakpoint number directly. When checking if there are | |
1247 | user visible tracepoints, in order to know whether to ask the user | |
1248 | for confirmation, check whether the breakpoint is actually a | |
1249 | tracepoint. | |
1250 | ||
f6d90398 VP |
1251 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
1252 | ||
1253 | * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix | |
1254 | compilation. | |
1255 | ||
8d3788bd VP |
1256 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
1257 | ||
1258 | MI breakpoint notifications. | |
1259 | ||
f33edef8 PP |
1260 | * annotate.c (breakpoint_changed): Adjust parameter type. |
1261 | * breakpoint.c (set_breakpoint_condition): Adjust to change | |
1262 | in breakpoint_modified type. | |
1263 | (breakpoint_set_commands): Likewise. | |
1264 | (do_map_commands_command): Likewise. | |
1265 | (bpstat_check_breakpoint_conditions): Notify that breakpoint has | |
1266 | changed after bumping hit count. | |
1267 | (bpstat_stop_status): Likewise. | |
1268 | (print_one_breakpoint_location): Don't wrap in tuple here. | |
1269 | (print_one_breakpoint): Always print individual locations. | |
1270 | For locations, use unnamed tuple. | |
1271 | (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint | |
1272 | has changed. | |
1273 | (create_catchpoint, create_syscall_event_catchpoint): Call | |
1274 | breakpoint_created obsever. | |
1275 | (mention): Don't call breakpoint_created observer. | |
1276 | (create_breakpoint_sal): Call breakpoint_created observer. | |
1277 | (create_breakpoint, watch_command_1): Likewise. | |
1278 | (create_ada_exception_breakpoint): Likewise. | |
1279 | (delete_breakpoint): Call breakpoint_deleted breakpoint. | |
1280 | (locations_are_equal): New. | |
1281 | (update_breakpoint_locations): If locations were changed, notify. | |
1282 | (set_ignore_count, disable_breakpoint, do_enable_breakpoint): | |
1283 | Call breakpoint_modified observer. | |
1284 | ||
1285 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
1286 | (mi_cmd_break_insert): Don't set observers for modify and delete. | |
1287 | * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New. | |
1288 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
1289 | (mi_breakpoint_modified): New. | |
1290 | (mi_interpreter_init): Hook the above. | |
1291 | * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications | |
1292 | while -break-* commands are executing. | |
1293 | * mi/mi-main.h (mi_suppress_breakpoint_notifications): New. | |
1294 | * mi/mi-out.c (struct ui_out_data): New field original_buffer. | |
1295 | (mi_redirect): New. | |
1296 | (mi_ui_out_impl): Hook in mi_redirect. | |
1297 | (mi_field_skip): True to the name, skip the field, don't output | |
1298 | a field with an empty value. | |
1299 | ||
1300 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
1301 | (gdbpy_breakpoint_deleted): Adjust. | |
1302 | * tui/tui-hooks.c (tui_event_create_breakpoint) | |
1303 | (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust. | |
8d3788bd | 1304 | |
a8f42b45 UW |
1305 | 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com> |
1306 | ||
1307 | * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype. | |
1308 | (procfs_remove_hw_watchpoint): Likewise. | |
1309 | ||
57e12211 TT |
1310 | 2011-04-26 Michael Walle <michael@walle.cc> |
1311 | ||
1312 | * remote.c (remote_start_remote): Ack packet after sending the | |
1313 | interrupt sequence. | |
1314 | ||
af96c192 YQ |
1315 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
1316 | ||
f33edef8 PP |
1317 | * linux-nat.c: Move common macros to ... |
1318 | Include linux-ptrace.h. | |
1319 | * common/linux-ptrace.h: ... here. New. | |
af96c192 | 1320 | |
3e03848b JK |
1321 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
1322 | ||
1323 | * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by | |
1324 | !objfile_has_partial_symbols. New comment. | |
1325 | * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if | |
1326 | SYM_READ_PSYMBOLS is not present. Extend the comment. | |
1327 | * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment. | |
1328 | ||
1ae0d051 JK |
1329 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
1330 | ||
1331 | * defs.h (ENUM_BITFIELD): Remove. | |
1332 | ||
03f2bd59 JK |
1333 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1334 | Eli Zaretskii <eliz@gnu.org> | |
1335 | ||
1336 | * NEWS: Document the new gdbserver --once option. | |
1337 | ||
4161fbb0 JZ |
1338 | 2011-04-21 Jie Zhang <jzhang918@gmail.com> |
1339 | ||
1340 | * MAINTAINERS: Update my email address. | |
1341 | ||
bcb28afc PM |
1342 | 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
1343 | ||
1344 | * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro. | |
1345 | (INTERMEDIATE_ENCODING): Change value to intermediate_encoding | |
1346 | function call if __STDC_ISO_10646__ macro is defined. | |
1347 | (intermediate_encoding): New prototype. | |
1348 | * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable | |
1349 | to generate compile time error for unsupported gdb_wchar_t size. | |
1350 | (ENDIAN_SUFFIX): New macro. | |
1351 | (intermediate_encoding): New function. | |
1352 | ||
7b08b9eb JK |
1353 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
1354 | ||
1355 | * ada-lang.c (struct add_partial_datum): Update the comment for | |
1356 | expand_partial_symbol_name. | |
1357 | (ada_add_partial_symbol_completions): Rename to ... | |
1358 | (ada_expand_partial_symbol_name): ... here, change return type, update | |
1359 | function comment, call symbol_completion_match instead of | |
1360 | symbol_completion_add. | |
1361 | (ada_make_symbol_completion_list): Use now expand_partial_symbol_names | |
1362 | and ada_expand_partial_symbol_name. | |
1363 | * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL | |
1364 | FILE_MATCHER. | |
1365 | (dw2_map_symbol_names): Remove. | |
1366 | (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names. | |
1367 | * psymtab.c (map_symbol_names_psymtab): Remove. | |
1368 | (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER. | |
1369 | Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check | |
1370 | order. | |
1371 | (psym_functions): Unlist map_symbol_names_psymtab. | |
1372 | (map_partial_symbol_names): Rename to ... | |
1373 | (expand_partial_symbol_names): ... here, change the FUN type, call | |
1374 | expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now. | |
1375 | * psymtab.h (map_partial_symbol_names): Rename to ... | |
1376 | (expand_partial_symbol_names): ... here, change the FUN type. | |
1377 | * symfile.h (struct quick_symbol_functions): Update the description of | |
1378 | expand_symtabs_matching. Remove map_symbol_names. | |
1379 | * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment. | |
1380 | (struct add_name_data): Update the comment for | |
1381 | expand_partial_symbol_name. | |
1382 | (add_partial_symbol_name): Rename to ... | |
1383 | (expand_partial_symbol_name): ... here. Replace | |
1384 | completion_list_add_name call by strncmp. | |
1385 | (default_make_symbol_completion_list_break_on): Use now | |
1386 | expand_partial_symbol_names and expand_partial_symbol_name. | |
1387 | * symtab.h (enum search_domain): New element ALL_DOMAIN. | |
1388 | ||
90476074 TT |
1389 | 2011-04-20 Tom Tromey <tromey@redhat.com> |
1390 | ||
1391 | * dwarf2read.c (save_gdb_index_command): Replace format | |
1392 | documentation with a pointer to the manual. | |
1393 | ||
c21236dc PA |
1394 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
1395 | ||
1396 | * regcache.c: Include remote.h. | |
1397 | (enum regcache_dump_what) <regcache_dump_remote>: New enum value. | |
1398 | (regcache_dump): Handle regcache_dump_remote. | |
1399 | (maintenance_print_remote_registers): New function. | |
1400 | (_initialize_regcache): Install "maint print remote-registers" | |
1401 | command. | |
1402 | * remote.c (map_regcache_remote_table): New function, factored out | |
1403 | from ... | |
1404 | (init_remote_state): ... here. | |
1405 | (remote_register_number_and_offset): New. | |
1406 | * remote.h (remote_register_number_and_offset): Declare. | |
1407 | ||
b78974c3 PA |
1408 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
1409 | ||
1410 | * regcache.c (get_thread_arch_regcache): If creating a regcache for | |
1411 | null_ptid, assume and allow a NULL address space, instead of | |
1412 | asking the target for the ptid's address space. | |
1413 | * infrun.c (ptid_is_pid): Remove assertion. | |
1414 | ||
7a9dd1b2 TT |
1415 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
1416 | ||
1417 | * windows-tdep.c (windows_xfer_shared_library): | |
1418 | * windows-nat.c (get_module_name, windows_make_so): | |
1419 | * v850-tdep.c (v850_handle_pushm): | |
1420 | * utils.c (null_cleanup, gdb_realpath): | |
1421 | * ui-out.c (get_next_header): | |
1422 | * tracepoint.c (clear_traceframe_info): | |
1423 | * symtab.c (lookup_symtab): | |
1424 | * serial.h (struct serial_ops): | |
1425 | * mipsread.c (read_alphacoff_dynamic_symtab): | |
1426 | * infcmd.c (print_return_value): | |
1427 | * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): | |
1428 | * f-exp.y (parse_number): | |
1429 | * exceptions.c (catch_exceptions): | |
1430 | * dummy-frame.c (dummy_frame_this_id): | |
1431 | * defs.h (struct cleanup): | |
1432 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): | |
1433 | * arm-tdep.c (arm_push_dummy_call): | |
1434 | * amd64-tdep.h (amd64_collect_xsave): | |
1435 | * amd64-tdep.c (amd64_collect_xsave): | |
1436 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): | |
1437 | * README (typing): Remove duplicate words. | |
1438 | * cli/cli-decode.c (lookup_cmd_composition): Add comma. | |
1439 | * infrun.c (siginfo_value_read): Fix typo. | |
1440 | * solib-frv.c (frv_fdpic_find_global_pointer): Likewise. | |
1441 | * top.c (source_line_number): Add comma. | |
1442 | ||
9941e0c5 MK |
1443 | 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com> |
1444 | ||
1445 | * thread.c (any_live_thread_of_process): Prioritize threads | |
1446 | that are not executing. | |
1447 | * gdbthread.h (any_live_thread_of_process): Update comment | |
1448 | as per above change. | |
1449 | ||
ed4b0e6a AS |
1450 | 2011-04-19 Andreas Schwab <schwab@linux-m68k.org> |
1451 | ||
1452 | * xcoffread.c (process_xcoff_symbol): Remove useless cast. | |
1453 | (scan_xcoff_symtab): Likewise. | |
1454 | ||
9b13a2db PM |
1455 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
1456 | ||
1457 | * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment | |
1458 | inside if clause. | |
1459 | ||
1c6e1b0d PM |
1460 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
1461 | Pedro Alves <pedro@codesourcery.com> | |
1462 | ||
1463 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local | |
1464 | variables to simplify code and avoid == operator at end of | |
1465 | line as this is against GNU coding standards. | |
1466 | ||
74de0234 PM |
1467 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
1468 | ||
1469 | * solib-svr4.c (svr4_keep_data_in_core): Rename local variable | |
1470 | lm_name to name_lm to avoid conflict with lm_name function. | |
1471 | ||
b23518f0 PM |
1472 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
1473 | ||
1474 | ARI fixes: Use only lowercase function name for static functions. | |
1475 | * nto-tdep.c (LM_ADDR): Rename to... | |
1476 | (lm_addr): New function name. | |
1477 | (nto_relocate_section_addresses): Adapt to change above. | |
1478 | * solib-sunos.c (LM_ADDR): Rename to... | |
1479 | (lm_addr): New function name. | |
1480 | (LM_NEXT): Rename to... | |
1481 | (lm_next): New function name. | |
1482 | (sunos_current_sos, sunos_relocate_section_addresses): Adapt to | |
1483 | function name changes above. | |
1484 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to... | |
1485 | (lm_addr_from_link_map): New function name. | |
1486 | (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
1487 | (has_lm_dynamic_from_link_map): New function name. | |
1488 | (LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
1489 | (lm_dynamic_from_link_map): New function name. | |
1490 | (LM_ADDR_CHECK): Rename to... | |
1491 | (lm_addr_check): New function name. | |
1492 | (LM_NEXT): Rename to... | |
1493 | (lm_next): New function name. | |
1494 | (LM_PREV): Rename to... | |
1495 | (lm_prev): New function name. | |
1496 | (LM_NAME): Rename to... | |
1497 | (lm_name): New function name. | |
1498 | (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to... | |
1499 | (ignore_first_link_map_entry): New function name. | |
1500 | (svr4_keep_data_in_core): Adapt to function name changes above. | |
1501 | (svr4_current_sos): Likewise. | |
1502 | (enable_break): Likewise. | |
1503 | (svr4_relocate_section_addresses): Likewise. | |
1504 | ||
1448a0a2 PM |
1505 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
1506 | ||
1507 | ARI cleanup. | |
1508 | * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of | |
1509 | sprintf. Simplify code and avoid loosing memory. | |
1510 | (xtensa_register_reggroup_p): Extract assignment out of IF clause. | |
1511 | (call0_frame_cache): Remove && operator from end of line. | |
1512 | ||
02835898 JK |
1513 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1514 | ||
1515 | Fix libraries displacement if they change whether they were prelinked. | |
1516 | * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer | |
1517 | does not match. Comment why. | |
1518 | ||
9a845ea2 JK |
1519 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1520 | ||
1521 | * corelow.c: Include wrapper.h. | |
1522 | (core_open): Call now gdb_target_find_new_threads. | |
1523 | * wrapper.c: Include target.h. | |
1524 | (gdb_target_find_new_threads): New. | |
1525 | * wrapper.h (gdb_target_find_new_threads): New declaration. | |
1526 | ||
254f582e JK |
1527 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1528 | ||
1529 | * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID | |
1530 | even if !TARGET_HAS_EXECUTION. | |
1531 | ||
63524580 JK |
1532 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1533 | ||
1534 | Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip. | |
1535 | * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to | |
1536 | bfd_get_synthetic_symtab. | |
1537 | * jit.c (jit_register_code): Pass NULL to the new parameter parent. | |
1538 | * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new | |
1539 | parameter parent, remove the call to add_separate_debug_objfile. | |
1540 | * solib.c (solib_read_symbols): Pass NULL to the new parameter parent. | |
1541 | * symfile-mem.c (symbol_file_add_from_memory): Likewise. | |
1542 | * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter | |
1543 | parent, new comment for it, call add_separate_debug_objfile for it. | |
1544 | (symbol_file_add_separate): Pass objfile as the parameter parent, | |
1545 | remove the call to add_separate_debug_objfile. | |
1546 | (symbol_file_add_from_bfd): New parameter parent, pass it. | |
1547 | (symbol_file_add): Pass NULL to the new parameter parent. | |
1548 | * symfile.h (symbol_file_add_from_bfd): New parameter parent. | |
1549 | ||
90359a16 JK |
1550 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1551 | ||
1552 | * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are | |
1553 | BSF_SYNTHETIC. | |
1554 | ||
626e7282 JK |
1555 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1556 | ||
1557 | Fix Python access to inlined frames. | |
1558 | * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block. | |
1559 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
1560 | ||
cf31e6f9 TT |
1561 | 2011-04-15 Tom Tromey <tromey@redhat.com> |
1562 | ||
1563 | * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length. | |
1564 | ||
c8d895f1 GB |
1565 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
1566 | ||
1567 | * MAINTAINERS: Add myself to write-after-approval section. | |
1568 | ||
56a9aa1d MF |
1569 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
1570 | ||
1571 | * remote-sim.c (sim_command_completer): New function. | |
1572 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
1573 | ||
ba770c9c TJB |
1574 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1575 | ||
1576 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
1577 | (print_it_exception_catchpoint): ... this. | |
1578 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
1579 | for print_it_exception_catchpoint. | |
1580 | ||
51bf2553 EBM |
1581 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
1582 | ||
1583 | * MAINTAINERS: Add myself for write after approval privileges. | |
1584 | ||
d242658c MP |
1585 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
1586 | ||
1587 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
1588 | ||
4a4106ca TJB |
1589 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1590 | ||
1591 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
1592 | ||
26063d49 TJB |
1593 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1594 | ||
1595 | * breakpoint.c (save_breakpoints): Verify whether | |
1596 | breakpoint_ops.print_recreate is defined before calling it. | |
1597 | ||
7782b183 GB |
1598 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
1599 | ||
1600 | Fix failure with --enable-maintainer-mode. | |
1601 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
1602 | ||
e8930875 JK |
1603 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1604 | ||
1605 | Code cleanup. | |
1606 | * symtab.c (search_symbols): Reorder the KIND description in the | |
1607 | function comment. Remove the unused 4th element of types, types2, | |
1608 | types3 and types4. New gdb_assert on KIND. | |
1609 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
1610 | New gdb_assert on KIND. | |
1611 | * symtab.h (enum search_domain): New warning in the enum comment. | |
1612 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
1613 | TYPES_DOMAIN. | |
1614 | ||
b4f2f049 JK |
1615 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1616 | ||
1617 | Fix crash of gdb save-index on a STABS file. | |
1618 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
1619 | PSYMTABS_ADDRMAP. | |
1620 | ||
60d5a603 JK |
1621 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1622 | ||
1623 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
1624 | * dwarf2read.c: Include ctype.h. | |
1625 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
1626 | functions. | |
1627 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
1628 | dwarf2_default_access_attribute. Restructure setting accessibility | |
1629 | vs. virtuality. | |
1630 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
1631 | is_private and is_protected by calling | |
1632 | dwarf2_default_access_attribute. | |
1633 | ||
e0f68161 KB |
1634 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
1635 | ||
1636 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
1637 | to the initialization. | |
1638 | ||
2e1aae43 SE |
1639 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
1640 | ||
1641 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
1642 | initalization. | |
1643 | ||
c6ca3dab PM |
1644 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
1645 | ||
1646 | Remove support for old Cygwin 1.5 versions. | |
1647 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
1648 | function on old Cygwin version. | |
1649 | * windows-nat.c: Remove cygwin version check and always define | |
1650 | __USEWIDE for Cygwin compilation. | |
1651 | ||
bd18283a YQ |
1652 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
1653 | ||
1654 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
1655 | and TO. | |
1656 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
1657 | (arm_copy_svc): Remove parameters INSN and TO. | |
1658 | (decode_svc_copro): Update caller. | |
1659 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
1660 | from function pointer `copy_svc_os'. | |
1661 | ||
8c8dba6d YQ |
1662 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
1663 | ||
1664 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
1665 | LR for ARM and Thumb. | |
1666 | ||
59d7bcaf JK |
1667 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1668 | ||
1669 | Code cleanup. | |
1670 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
1671 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
1672 | in the function comment, a new note on values compatibility. | |
1673 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
1674 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
1675 | ||
e7db58ea TJB |
1676 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1677 | ||
1678 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
1679 | Set it based on the memory region referenced in the condition | |
1680 | expression. Update all callers. | |
1681 | ||
9f743ef6 JK |
1682 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1683 | ||
1684 | Fix crash regression on systems featuring .gdb_index. | |
1685 | * objfiles.c (free_objfile): Move the | |
1686 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
1687 | Extend the comment for objfile_free_data. | |
1688 | ||
9182c5bc JK |
1689 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1690 | ||
1691 | Fix regression of displaying the debug format. | |
1692 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
1693 | subfile. | |
1694 | ||
04bd08de TT |
1695 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1696 | ||
1697 | * cli/cli-interp.c (struct captured_execute_command_args): | |
1698 | Remove. | |
1699 | (do_captured_execute_command): Remove. | |
1700 | (safe_execute_command): Use TRY_CATCH. | |
1701 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
1702 | Remove. | |
1703 | (wrapped_read_command_file): Remove. | |
1704 | (script_from_file): Use TRY_CATCH. | |
1705 | * exceptions.c (catch_exception): Remove. | |
1706 | * exceptions.h (catch_exception): Remove. | |
1707 | (deprecated_throw_reason): Update comment. | |
1708 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
1709 | argument to 'context'. | |
1710 | (mi_execute_command): Use TRY_CATCH. | |
1711 | * remote.c (struct start_remote_args): Remove. | |
1712 | (remote_start_remote): Update; change arguments. | |
1713 | (remote_open_1): Use TRY_CATCH. | |
1714 | ||
58438ac1 TT |
1715 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1716 | ||
1717 | * tracepoint.c (scope_info): Update. | |
1718 | * symtab.c (decode_line_spec): Update. | |
1719 | * python/python.c (gdbpy_decode_line): Update. | |
1720 | * linespec.h (decode_line_1): Update. | |
1721 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
1722 | (decode_compound, find_method, symtab_from_filename) | |
1723 | (decode_variable): Likewise. | |
1724 | * cli/cli-cmds.c (edit_command): Update. | |
1725 | (list_command): Update. | |
1726 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
1727 | argument. | |
1728 | (create_breakpoint): Update. | |
1729 | (until_break_command): Update. | |
1730 | (addr_string_to_sals): Update. | |
1731 | (decode_line_spec_1): Update. | |
1732 | ||
b78a6381 TT |
1733 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1734 | ||
1735 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
1736 | (do_captured_parse_breakpoint): Remove. | |
1737 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
1738 | Use TRY_CATCH directly. | |
1739 | ||
00174a86 TT |
1740 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1741 | ||
1742 | * symtab.h (free_symtab): Remove. | |
1743 | (forget_cached_source_info_for_objfile): Declare. | |
1744 | * symmisc.c (free_symtab): Remove. | |
1745 | * source.c (forget_cached_source_info_for_objfile): New function. | |
1746 | (forget_cached_source_info): Use it. | |
1747 | * objfiles.c (free_objfile): Simplify check before calling | |
1748 | clear_current_source_symtab_and_line. Call | |
1749 | forget_cached_source_info_for_objfile. | |
1750 | ||
30cc903e TT |
1751 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1752 | ||
1753 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
1754 | (new_symtab): Don't set `free_code' on symtab. | |
1755 | (new_linetable): Properly handle size==0. | |
1756 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
1757 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
1758 | free_func. | |
1759 | * jv-lang.c (struct jv_per_objfile_data): New. | |
1760 | (jv_per_objfile_free): Free the data. | |
1761 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
1762 | (get_java_class_symtab): Set the `dict' field on the | |
1763 | jv_per_objfile_data. | |
1764 | (free_class_block): Remove. | |
1765 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
1766 | the symtab. | |
1767 | ||
0c2e6019 TT |
1768 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1769 | ||
1770 | * symfile.c (reread_symbols): Update. | |
1771 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
1772 | field. | |
1773 | * objfiles.c (allocate_objfile): Update. | |
1774 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
1775 | declare. | |
1776 | * cp-namespace.c (lookup_symbol_file): Don't call | |
1777 | lookup_possible_namespace_symbol. | |
1778 | (initialize_namespace_symtab, get_possible_namespace_block) | |
1779 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
1780 | (check_possible_namespace_symbols_loop) | |
1781 | (check_one_possible_namespace_symbol) | |
1782 | (lookup_possible_namespace_symbol): Remove. | |
1783 | (maintenance_cplus_namespace): Replace with notice. | |
1784 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
1785 | ||
554d387d TT |
1786 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1787 | ||
1788 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
1789 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
1790 | * symmisc.c (free_symtab): Don't free debugformat. | |
1791 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
1792 | (record_debugformat, record_producer): Document. | |
1793 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
1794 | names on obstack. | |
1795 | (end_symtab): Don't free debugformat and producer fields. | |
1796 | (record_debugformat): Don't call xstrdup. | |
1797 | (record_producer): Likewise. | |
1798 | ||
d4d4db8a TT |
1799 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1800 | ||
1801 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
1802 | (source_line_charpos, source_charpos_line): Remove. | |
1803 | ||
8903c50d TT |
1804 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
1805 | ||
1806 | * symtab.h (domain_enum): Split in two... | |
1807 | (enum search_domain): New. | |
1808 | (search_symbols): Update. | |
1809 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
1810 | redundant declarations. | |
1811 | (search_symbols): Change 'kind' argument to search_domain. | |
1812 | Update. | |
1813 | (print_symbol_info): Likewise. | |
1814 | (symtab_symbol_info): Likewise. | |
1815 | * symfile.h (struct quick_symbol_functions) | |
1816 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
1817 | <expand_symtabs_matching>: Likewise. | |
1818 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
1819 | (expand_symtabs_matching_via_partial): Update. | |
1820 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
1821 | (dw2_expand_symtabs_for_function): Update. | |
1822 | * block.h: Moved anonymous enum... | |
1823 | * defs.h (enum block_enum): ... here. Now named. | |
1824 | ||
d9351f5f | 1825 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
1826 | ||
1827 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
1828 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
1829 | ||
d6e00af6 JB |
1830 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
1831 | ||
1832 | * NEWS: Create a new section for the next release branch. | |
1833 | Rename the section of the current branch, now that it has | |
1834 | been cut. | |
1835 | ||
2b9e5ea6 UW |
1836 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
1837 | ||
1838 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
1839 | for "fpscr" in target description. | |
1840 | ||
0cf03b49 JK |
1841 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1842 | ||
1843 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
1844 | initialize it. Delay HASH initialization. Strip the part after open | |
1845 | parenthesis for languages with qualifiers. Call do_cleanups. | |
1846 | ||
5d901a73 TT |
1847 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
1848 | ||
1849 | * utils.c (report_command_stats): Don't print `-' for negative | |
1850 | number. | |
1851 | ||
b0dd7688 JB |
1852 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
1853 | ||
1854 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
1855 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
1856 | typedefs. | |
1857 | ||
956a9fb9 JB |
1858 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
1859 | ||
1860 | * breakpoint.h (bpdisp_text): Add declaration. | |
1861 | * breakpoint.c (bpdisp_text): Make non-static. | |
1862 | * ada-lang.c: #include "mi/mi-common.h". | |
1863 | (print_it_exception): Rewrite to improve GDB/MI output. | |
1864 | ||
3352110b PA |
1865 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
1866 | ||
1867 | * arm-tdep.h (struct address_space): Add forward declaration. | |
1868 | ||
18819fa6 UW |
1869 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
1870 | ||
1871 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
1872 | * arm-tdep.c (arm_override_mode): New global. | |
1873 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
1874 | execution mode heuristics. | |
1875 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
1876 | second single-step breakpoint if needed, using | |
1877 | arm_insert_single_step_breakpoint. | |
1878 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
1879 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
1880 | (arm_get_next_pc): Encode execution mode in return value. Call | |
1881 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
1882 | (arm_insert_single_step_breakpoint): New function. | |
1883 | (arm_software_single_step): Call it. | |
1884 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
1885 | argument to return execution mode of sigreturn target. | |
1886 | (arm_linux_syscall_next_pc): Use it. | |
1887 | (arm_linux_copy_svc): Update call. | |
1888 | (arm_linux_software_single_step): Call | |
1889 | arm_insert_single_step_breakpoint. | |
1890 | ||
a6e293d1 JK |
1891 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1892 | ||
1893 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
1894 | the comment. | |
1895 | ||
a4c8e806 TT |
1896 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
1897 | ||
1898 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
1899 | errors from iterator. | |
1900 | ||
df5c6c50 JK |
1901 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1902 | ||
1903 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
1904 | struct linkage name twice. | |
1905 | ||
1dae3efc TT |
1906 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
1907 | ||
1908 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
1909 | missing ">" to message. | |
1910 | ||
f4f7ab05 TT |
1911 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
1912 | ||
1913 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
1914 | 'return'. | |
1915 | ||
fcf250e2 UW |
1916 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
1917 | ||
1918 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
1919 | if neither saved value nor register available (e.g. signal frame). | |
1920 | ||
ee6436e3 TJB |
1921 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1922 | ||
1923 | * macroexp.c (expand): Avoid uninitialized variable | |
1924 | compiler warning. | |
1925 | ||
423f41a5 TJB |
1926 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1927 | ||
1928 | * breakpoint.c (break_range_command): Fix typo in comment. | |
1929 | ||
f1310107 TJB |
1930 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1931 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
1932 | ||
1933 | Implement support for PowerPC BookE ranged breakpoints. | |
1934 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
1935 | * breakpoint.h (struct bp_target_info) <length>: New member | |
1936 | variable. | |
1937 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
1938 | instead of struct breakpoint as argument, and also add ASPACE | |
1939 | and BP_ADDR arguments. Update all callers. | |
1940 | (struct breakpoint_ops) <print_one_detail>: New method. | |
1941 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
1942 | * breakpoint.c (breakpoint_location_address_match): Add function | |
1943 | prototype. | |
1944 | (insert_bp_location): Set bl->target_info.length. | |
1945 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
1946 | (moribund_breakpoint_here_p): Likewise. | |
1947 | (regular_breakpoint_inserted_here_p): Likewise. | |
1948 | (breakpoint_thread_match): Likewise. | |
1949 | (bpstat_stop_status): Likewise. | |
1950 | (bpstat_check_location): Move call to | |
1951 | breakpoint_ops.breakpoint_hit to the top. | |
1952 | (print_one_breakpoint_location): Call | |
1953 | breakpoint_ops.print_one_detail if available. | |
1954 | (breakpoint_address_match_range): New function. | |
1955 | (breakpoint_location_address_match): Likewise. | |
1956 | (breakpoint_locations_match): Compare the length field of the | |
1957 | locations too. | |
1958 | (hw_breakpoint_used_count): Count resources used by all locations | |
1959 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
1960 | available. | |
1961 | (breakpoint_hit_ranged_breakpoint): New function. | |
1962 | (resources_needed_ranged_breakpoint): Likewise. | |
1963 | (print_it_ranged_breakpoint): Likewise. | |
1964 | (print_one_ranged_breakpoint): Likewise. | |
1965 | (print_one_detail_ranged_breakpoint): Likewise. | |
1966 | (print_mention_ranged_breakpoint): Likewise. | |
1967 | (print_recreate_ranged_breakpoint): Likewise. | |
1968 | (ranged_breakpoint_ops): New structure. | |
1969 | (find_breakpoint_range_end): New function. | |
1970 | (break_range_command): Likewise. | |
1971 | (delete_breakpoint): Free addr_string_range_end. | |
1972 | (update_breakpoint_locations): Add SALS_END argument. Update | |
1973 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
1974 | is given. Call breakpoint_locations_match instead of | |
1975 | breakpoint_address_match. | |
1976 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
1977 | ranged breakpoint. | |
1978 | (_initialize_breakpoint): Register break-range command. | |
1979 | * defs.h (print_core_address): Add function prototype. | |
1980 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
1981 | function. | |
1982 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
1983 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
1984 | (_initialize_ppc_linux_nat): Initialize | |
1985 | to_ranged_break_num_registers. | |
1986 | * target.c (update_current_target): Add comment about | |
1987 | to_ranged_break_num_registers. | |
1988 | (target_ranged_break_num_registers): New function. | |
1989 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
1990 | New method. | |
1991 | (target_ranged_break_num_registers): Add function prototype. | |
1992 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
1993 | * utils.c (print_core_address): ... here. | |
1994 | ||
02d20e4a UW |
1995 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
1996 | ||
1997 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
1998 | variable compiler warning. | |
1999 | ||
ef23e705 TJB |
2000 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2001 | ||
2002 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
2003 | code from here ... | |
2004 | (re_set_breakpoint): ... to here ... | |
2005 | (addr_string_to_sals): ... and here. | |
2006 | ||
311e6ab3 PM |
2007 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
2008 | ||
2009 | * Makefile.in (SFILES): Add missing C sources. | |
2010 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
2011 | Add missing headers. | |
2012 | ||
acd1d99c MF |
2013 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
2014 | ||
2015 | * .gitignore: New file. | |
2016 | ||
66ee2731 MF |
2017 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
2018 | ||
2019 | * NEWS: Mention new cfi device simulation. | |
2020 | ||
53832f31 TT |
2021 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
2022 | ||
2023 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
2024 | otherwise anonymous types. | |
2025 | (dwarf2_name): Likewise. | |
2026 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
2027 | type logic. Call error if j==-1. | |
2028 | ||
09b58708 JK |
2029 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
2030 | ||
2031 | Fix false GCC warning. | |
2032 | * infcall.c (find_function_addr): Initialize funaddr. | |
2033 | ||
6023c606 PM |
2034 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
2035 | ||
2036 | Fix mingw compilation with --enable-targets=all. | |
2037 | * remote-mips.c (gdb_usleep.h): Include header. | |
2038 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
2039 | ||
0e30163f JK |
2040 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2041 | ||
2042 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
2043 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
2044 | bp_gnu_ifunc_resolver_return. | |
2045 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
2046 | the loop. Support bp_gnu_ifunc_resolver and | |
2047 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
2048 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
2049 | breakpoints. | |
2050 | (bptype_string, print_one_breakpoint_location): Support | |
2051 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
2052 | (user_settable_breakpoint): Return true also for | |
2053 | bp_gnu_ifunc_resolver. | |
2054 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
2055 | bp_gnu_ifunc_resolver_return. | |
2056 | (set_breakpoint_location_function): New parameter explicit_loc, | |
2057 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
2058 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
2059 | EXPLICIT_LOC is not set. | |
2060 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
2061 | set_breakpoint_location_function. | |
2062 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
2063 | set_breakpoint_location_function. | |
2064 | (mention): Support bp_gnu_ifunc_resolver and | |
2065 | bp_gnu_ifunc_resolver_return. | |
2066 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
2067 | set_breakpoint_location_function. | |
2068 | (update_breakpoint_locations): Remove static. | |
2069 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
2070 | bp_gnu_ifunc_resolver_return. | |
2071 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
2072 | bp_gnu_ifunc_resolver_return. | |
2073 | (update_breakpoint_locations): New declaration. | |
2074 | * elfread.c: Include gdbthread.h and regcache.h. | |
2075 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
2076 | functions. | |
2077 | (elf_gnu_ifunc_fns): Install them. | |
2078 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
2079 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
2080 | (stub_gnu_ifunc_fns): Install them. | |
2081 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
2082 | and gnu_ifunc_resolver_return_stop. | |
2083 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
2084 | ||
07be84bf JK |
2085 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2086 | ||
2087 | STT_GNU_IFUNC reader implementation. | |
2088 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
2089 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
2090 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
2091 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
2092 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
2093 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
2094 | (elf_gnu_ifunc_resolve_addr): New. | |
2095 | (elf_symfile_read): Call elf_rel_plt_read. | |
2096 | (elf_gnu_ifunc_fns): New. | |
2097 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
2098 | Install elf_gnu_ifunc_fns. | |
2099 | * infcall.c (find_function_return_type): New function. | |
2100 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
2101 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
2102 | (stub_gnu_ifunc_resolve_name): New functions. | |
2103 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
2104 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
2105 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
2106 | ||
300f8e10 JK |
2107 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2108 | ||
2109 | Code cleanup for later STT_GNU_IFUNC support. | |
2110 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
2111 | dereferences for it. Move VALUE_TYPE initialization later. | |
2112 | ||
11c81455 JK |
2113 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2114 | ||
2115 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
2116 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
2117 | (clear_pc_function_cache): Clear it. | |
2118 | (find_pc_partial_function): Rename to ... | |
2119 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
2120 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
2121 | (find_pc_partial_function): New wrapper for this function. | |
2122 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
2123 | ||
0875794a JK |
2124 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2125 | ||
2126 | GDB internal type support for STT_GNU_IFUNC. | |
2127 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
2128 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
2129 | BSF_GNU_INDIRECT_FUNCTION. | |
2130 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
2131 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
2132 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
2133 | nodebug_got_plt_symbol. | |
2134 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
2135 | (TYPE_GNU_IFUNC): New. | |
2136 | (struct main_type): New field flag_gnu_ifunc. | |
2137 | (struct builtin_type): New field builtin_func_func. | |
2138 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
2139 | nodebug_got_plt_symbol. | |
2140 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
2141 | (in_gnu_ifunc_stub): New. | |
2142 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
2143 | mst_text_gnu_ifunc. | |
2144 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
2145 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
2146 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
2147 | in_gnu_ifunc_stub. | |
2148 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
2149 | * symtab.c (search_symbols): Likewise. | |
2150 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
2151 | and mst_slot_got_plt. | |
2152 | (in_gnu_ifunc_stub): New declaration. | |
2153 | ||
d0fb5eae JK |
2154 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2155 | ||
2156 | Support a ring of related breakpoints. | |
2157 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
2158 | other functions, add gdb_assert. | |
2159 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
2160 | watchpoint_del_at_next_stop. | |
2161 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
2162 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
2163 | (set_raw_breakpoint_without_location): Initialize ring in | |
2164 | related_breakpoint. | |
2165 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
2166 | watchpoint_del_at_next_stop. | |
2167 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
2168 | ||
9cded63f TT |
2169 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
2170 | ||
2171 | PR symtab/12441: | |
2172 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
2173 | with `language_minimal'. | |
2174 | ||
467d42c4 UW |
2175 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
2176 | ||
2177 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
2178 | instead of checking for STT_ARM_TFUNC symbol type. | |
2179 | ||
62853458 TT |
2180 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
2181 | ||
2182 | * linespec.c (symbol_found): Restore line-based result for | |
2183 | non-LOC_LABEL symbols. | |
2184 | ||
a7417d46 KT |
2185 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
2186 | ||
2187 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
2188 | instead of strcmp for comparison. | |
2189 | (tui_source_is_displayed): Likewise. | |
2190 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
2191 | ||
55f1336d TT |
2192 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
2193 | ||
f33edef8 PP |
2194 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in |
2195 | complaint. | |
2196 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
2197 | (find_partial_die_in_comp_unit): Likewise in comment. | |
2198 | (read_attribute_value): Likewise. | |
2199 | (lookup_die_type): Likewise. | |
2200 | (dwarf_form_name): Likewise. | |
2201 | (dump_die_shallow): Likewise. | |
2202 | (follow_die_ref_or_sig): Likewise. | |
55f1336d | 2203 | |
9ef07c8c TT |
2204 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
2205 | ||
2206 | PR breakpoints/11816: | |
2207 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
2208 | (decode_compound): Update. | |
2209 | (find_function_symbol): New function. | |
2210 | (decode_dollar): Update. | |
2211 | (decode_label): Add 'function_symbol' parameter. Handle | |
2212 | function-relative labels. | |
2213 | (decode_variable): Update. | |
2214 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
2215 | not its line. Set `special_display' and canonical name for | |
2216 | labels. | |
2217 | ||
56435ebe TT |
2218 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
2219 | ||
2220 | * linespec.h (struct linespec_result) <special_display>: New | |
2221 | field. | |
2222 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
2223 | field. | |
2224 | * breakpoint.c (print_breakpoint_location): Respect | |
2225 | display_canonical. | |
2226 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
2227 | (create_breakpoints_sal): Update. | |
2228 | (create_breakpoint): Update. | |
2229 | ||
7efd8fc2 TT |
2230 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
2231 | ||
2232 | * symtab.c (decode_line_spec): Update. | |
2233 | * linespec.c (build_canonical_line_spec): Change type of | |
2234 | 'canonical'. | |
2235 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
2236 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
2237 | (symbol_found): Likewise. | |
2238 | (init_linespec_result): New function. | |
2239 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
2240 | <canonical_p>: New field, replaces addr_string_p. | |
2241 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
2242 | 'addr_string'. | |
2243 | (parse_breakpoint_sals): Likewise. | |
2244 | (do_captured_parse_breakpoint): Update. | |
2245 | (create_breakpoint): Use struct linespec_result. | |
2246 | (until_break_command): Update. | |
2247 | (breakpoint_re_set_one): Update. | |
2248 | (decode_line_spec_1): Update. | |
2249 | * linespec.h (struct linespec_result): New. | |
2250 | (init_linespec_result): Declare. | |
2251 | ||
788c8b10 PA |
2252 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
2253 | ||
2254 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
2255 | given raw register, mark it as unavailable. | |
2256 | ||
0ba1096a KT |
2257 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
2258 | ||
2259 | * breakpoint.c (clear_command): Use filename_cmp | |
2260 | instead of strcmp for comparison. | |
2261 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
2262 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
2263 | checking just for slash. | |
2264 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
2265 | strrchr and filename_cmp instead of strcmp for filenames. | |
2266 | (add_old_header_file): Use filename_cmp | |
2267 | instead of strcmp for comparison. | |
2268 | * exec.c (exec_set_section_address): Likewise. | |
2269 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
2270 | (macro_lookup_inclusion): Likewise. | |
2271 | * elfread.c (_initialize_elfread): Likewise. | |
2272 | (elfstab_offset_sections): Likewise. | |
2273 | (elfstab_offset_sections): Use lbasename instead of | |
2274 | strrchr. | |
2275 | * mdebugread.c (parse_partial_symbols): Likewise. | |
2276 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
2277 | str(n)cmp for comparison. | |
2278 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
2279 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
2280 | * solib.c (solib_read_symbols): Likewise. | |
2281 | (reload_shared_libraries_1): Likewise. | |
2282 | * symmisc.c (maintenance_print_symbols): Likewise. | |
2283 | * symfile.c (separate_debug_file_exists): Likewise. | |
2284 | (reread_symbols): Likewise. | |
2285 | (find_separate_debug_file_by_debuglink): Likewise. | |
2286 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
2287 | * source.c (add_path): Likewise. | |
2288 | * symtab.c (filename_seen): Likewise. | |
2289 | (file_matches): Likewise. | |
2290 | (print_symbol_info): Likewise. | |
2291 | (maybe_add_partial_symtab_filename): Likewise. | |
2292 | (make_source_files_completion_list): Likewise. | |
2293 | * xml-syscall.c (init_sysinfo): Likewise. | |
2294 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
2295 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
2296 | ||
dd90784c JK |
2297 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
2298 | ||
2299 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
2300 | label abort_expression. | |
2301 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
2302 | DWARF_VALUE_OPTIMIZED_OUT. | |
2303 | ||
3167638f JK |
2304 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
2305 | ||
2306 | Code cleanup. | |
2307 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
2308 | to linkage_name. Invert its value. Update the function comment. | |
2309 | (c_type_print_varspec_suffix): Invert it at the caller. | |
2310 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
2311 | ||
ce406537 PA |
2312 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
2313 | ||
2314 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
2315 | errors when reading the `stop_pc'. | |
2316 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
2317 | get_frame_pc. | |
2318 | ||
da5d4055 PM |
2319 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
2320 | ||
2321 | * NEWS: Document gdb.Write stream keyword. | |
2322 | ||
29e0eb9c JK |
2323 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
2324 | ||
2325 | Revert: | |
2326 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
2327 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
2328 | (dwarf2_add_field): Fix new_field->accessibility for | |
2329 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
2330 | ||
05775840 PM |
2331 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
2332 | ||
f33edef8 | 2333 | PR python/12183 |
05775840 PM |
2334 | |
2335 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
2336 | other error classes. Do not print stack trace. | |
2337 | ||
a0cb7835 JK |
2338 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
2339 | ||
2340 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
2341 | (dwarf2_add_field): Fix new_field->accessibility for | |
2342 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
2343 | ||
d19f7eee UW |
2344 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
2345 | ||
2346 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
2347 | encountering a load via a non-SP register. | |
2348 | ||
4a2fbb50 UW |
2349 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
2350 | ||
2351 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
2352 | field in returned unwinder. | |
2353 | ||
3489610d JB |
2354 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
2355 | ||
2356 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
2357 | ||
8c1a34e7 JB |
2358 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
2359 | ||
2360 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
2361 | of xmalloc. | |
2362 | ||
8fbca658 PA |
2363 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
2364 | ||
2365 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
2366 | register failed. | |
2367 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
2368 | an unwind stop reason. | |
2369 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
2370 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
2371 | UNWIND_UNAVAILABLE>: New. | |
2372 | * inline-frame.c (inline_frame_unwind): Install | |
2373 | default_frame_unwind_stop_reason. | |
2374 | * frame-unwind.c: Include "exceptions.h". | |
2375 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
2376 | (default_frame_unwind_stop_reason): New. | |
2377 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
2378 | (default_frame_unwind_stop_reason): Declare. | |
2379 | (struct frame_unwind) <stop_reason>: New function pointer. | |
2380 | ||
2381 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
2382 | * dwarf2-frame.c: Include exceptions.h. | |
2383 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
2384 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
2385 | computing the CFA. If such an error was thrown, set | |
2386 | unavailable_retaddr. | |
2387 | (dwarf2_frame_unwind_stop_reason): New. | |
2388 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
2389 | unavailable. | |
2390 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
2391 | (dwarf2_signal_frame_unwind): Ditto. | |
2392 | ||
2393 | * amd64-tdep.c: Include "exceptions.h". | |
2394 | (struct amd64_frame_cache): New field "base_p". | |
2395 | (amd64_init_frame_cache): Clear it. | |
2396 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
2397 | Avoid reading registers with functions that throw if the register | |
2398 | is not necessary to compute the frame base. | |
2399 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
2400 | swallowing NOT_AVAILABLE_ERROR. | |
2401 | (amd64_frame_unwind_stop_reason): New. | |
2402 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
2403 | was unavailable. | |
2404 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
2405 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
2406 | base_p if the frame base was computable. | |
2407 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
2408 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
2409 | frame base was unavailable. | |
2410 | (amd64_sigtramp_frame_unwind): Install | |
2411 | amd64_sigtramp_frame_unwind_stop_reason. | |
2412 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
2413 | base_p if the frame base was computable. | |
2414 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
2415 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
2416 | frame base was unavailable. | |
2417 | (amd64_epilogue_frame_unwind): Install | |
2418 | amd64_epilogue_frame_unwind_stop_reason. | |
2419 | * i386-tdep.c: Include "exceptions.h". | |
2420 | (struct i386_frame_cache): New field "base_p". | |
2421 | (i386_init_frame_cache): Clear it. | |
2422 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
2423 | Avoid reading registers with functions that throw if the register | |
2424 | is not necessary to compute the frame base. | |
2425 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
2426 | swallowing NOT_AVAILABLE_ERROR. | |
2427 | (i386_frame_unwind_stop_reason): New. | |
2428 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
2429 | unavailable. | |
2430 | (i386_frame_prev_register): Handle unavailable SP. | |
2431 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
2432 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
2433 | base_p if the frame base was computable. | |
2434 | (i386_epilogue_frame_unwind_stop_reason): New. | |
2435 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
2436 | base was unavailable. | |
2437 | (i386_epilogue_frame_unwind): Install | |
2438 | i386_epilogue_frame_unwind_stop_reason. | |
2439 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
2440 | base_p if the frame base was computable. | |
2441 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
2442 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
2443 | base was unavailable. | |
2444 | (i386_sigtramp_frame_unwind): Install | |
2445 | i386_sigtramp_frame_unwind_stop_reason. | |
2446 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
2447 | type's size, not the register's. | |
2448 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
2449 | ||
2450 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
2451 | default_frame_unwind_stop_reason. | |
2452 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
2453 | (alpha_heuristic_frame_unwind): Ditto. | |
2454 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
2455 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
2456 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
2457 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
2458 | Ditto. | |
2459 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
2460 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
2461 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
2462 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
2463 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
2464 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
2465 | (hppa_stub_frame_unwind): Ditto. | |
2466 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
2467 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
2468 | (ia64_libunwind_frame_unwind) | |
2469 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
2470 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
2471 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
2472 | * m32c-tdep.c (m32c_unwind): Ditto. | |
2473 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
2474 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
2475 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
2476 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
2477 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
2478 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
2479 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
2480 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
2481 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
2482 | (mips_stub_frame_unwind): Ditto. | |
2483 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
2484 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
2485 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
2486 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
2487 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
2488 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
2489 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
2490 | (s390_sigtramp_frame_unwind): Ditto. | |
2491 | * score-tdep.c (score_prologue_unwind): Ditto. | |
2492 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
2493 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
2494 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
2495 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
2496 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
2497 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
2498 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
2499 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
2500 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
2501 | (sparc64obsd_trapframe_unwind): Ditto. | |
2502 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
2503 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
2504 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
2505 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
2506 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
2507 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
2508 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
2509 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
2510 | ||
f23d1b92 PA |
2511 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2512 | ||
2513 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
2514 | there's always a frame. Use get_frame_pc_if_available instead of | |
2515 | get_frame_pc, and if there's no PC available, don't look up a | |
2516 | symtab. | |
2517 | ||
1d4f5741 PA |
2518 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2519 | ||
2520 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
2521 | unavailable PC. | |
2522 | ||
dba09041 PA |
2523 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2524 | ||
2525 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
2526 | gracefully. | |
2527 | ||
9a26e44c PA |
2528 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2529 | ||
2530 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
2531 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
2532 | * stack.c (frame_info): Handle unavailable PC. | |
2533 | ||
2534 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
2535 | ||
2536 | * frame.c (frame_unwind_pc): Rename to ... | |
2537 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
2538 | parameter. Change return type to int. Gracefully handle | |
2539 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
2540 | happened, or 1 otherwise. | |
2541 | (frame_unwind_pc): Reimplement on top of | |
2542 | frame_unwind_pc_if_available. | |
2543 | (get_frame_func): Rename to ... | |
2544 | (get_frame_func_if_available): New `pc' output parameter. Change | |
2545 | return type to int. Gracefully handle the PC not being available. | |
2546 | (get_frame_func): Reimplement on top of | |
2547 | get_frame_func_if_available. | |
2548 | (select_frame): Handle the PC being unavailable. | |
2549 | (get_prev_frame): Handle the PC being unavailable. | |
2550 | (get_frame_pc_if_available): New. | |
2551 | (get_frame_address_in_block_if_available): New. | |
2552 | (find_frame_sal): Handle the frame PC not being available. | |
2553 | * frame.h (get_frame_pc_if_available): Declare. | |
2554 | (get_frame_address_in_block_if_available): Declare. | |
2555 | (get_frame_func_if_available): Declare. | |
2556 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
2557 | (find_frame_funname): Ditto. | |
2558 | (print_frame): Handle the PC being unavailable. | |
2559 | (get_frame_language): Ditto. | |
2560 | * blockframe.c (get_frame_block): Ditto. | |
2561 | * macroscope.c (default_macro_scope): Ditto. | |
2562 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
2563 | ||
2564 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
2565 | ||
2566 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
2567 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
2568 | ||
2569 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
2570 | ||
2571 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
2572 | returning that the register piece is unavailable/optimized out. | |
2573 | (write_pieced_value): Handle get_frame_register_bytes returning | |
2574 | that the register piece is unavailable/optimized out when doing a | |
2575 | read-modify write of a bitfield. | |
2576 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
2577 | returning that the register piece is unavailable/optimized out. | |
2578 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
2579 | and `unavailablep'. Throw error on bad debug info. Use | |
2580 | frame_register instead of frame_register_read, to fill in the new | |
2581 | arguments. | |
2582 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
2583 | and `unavailablep'. | |
2584 | * valops.c: (value_assign): Adjust, and handle | |
2585 | get_frame_register_bytes failing. | |
2586 | * spu-tdep.c: Include exceptions.h. | |
2587 | (spu_software_single_step): Adjust, and handle | |
2588 | get_frame_register_bytes failing. | |
2589 | (spu_get_longjmp_target): Ditto. | |
2590 | * gdbarch.sh (register_to_value): Change to return int. New | |
2591 | parameters `optimizedp' and `unavailablep'. | |
2592 | * gdbarch.h, gdbarch.c: Regenerate. | |
2593 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
2594 | gdbarch_register_to_value interface. | |
2595 | * i387-tdep.c (i387_register_to_value): Ditto. | |
2596 | * i387-tdep.h (i387_register_to_value): Ditto. | |
2597 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
2598 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
2599 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
2600 | * mips-tdep.c (mips_register_to_value): Ditto. | |
2601 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
2602 | ||
0fdb4f18 PA |
2603 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2604 | ||
2605 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
2606 | the register is unavailable. | |
2607 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
2608 | (frame_register): New `unavailablep' parameter. | |
2609 | (frame_register_read): Update comment. | |
2610 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
2611 | Set it if the register is unavailable. If the register is | |
2612 | unavailable, clear the output buffer. | |
2613 | (frame_register): New `unavailablep' parameter. Pass it down. | |
2614 | (frame_unwind_register): Adjust. | |
2615 | (put_frame_register): Adjust. | |
2616 | (frame_register_read): Adjust. Also return false if the register | |
2617 | is not available. | |
2618 | (frame_register_unwind_location): Adjust. | |
2619 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
2620 | is unavailable, mark the value accordingly. | |
2621 | * stack.c (frame_info): Handle unavailable registers. | |
2622 | ||
e69aa73e PA |
2623 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2624 | ||
2625 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
2626 | simplify, using regcache_cooked_read. | |
2627 | ||
05d1431c PA |
2628 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
2629 | ||
2630 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
2631 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
2632 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
2633 | (regcache_cooked_read, regcache_cooked_read_signed) | |
2634 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
2635 | (regcache_cooked_read_ftype): Change return to enum | |
2636 | register_status. | |
2637 | * regcache.c: Include exceptions.h | |
2638 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
2639 | (do_cooked_read): Change return to enum register_status. Always | |
2640 | forward to regcache_cooked_read. | |
2641 | (regcache_raw_read): Change return to enum register_status. If | |
2642 | the register is not REG_VALID, memset the buffer. Return the | |
2643 | register's status. | |
2644 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
2645 | return the register's status. | |
2646 | (regcache_raw_read_unsigned): Ditto. | |
2647 | (regcache_cooked_read): Change return to enum register_status. | |
2648 | Assert that with read-only regcaches, the register's status must | |
2649 | be known. If the regcache is read-only, and the register is not | |
2650 | REG_VALID, memset the buffer. Return the register's status. | |
2651 | (regcache_cooked_read_signed): Change return to enum | |
2652 | register_status. Handle non-REG_VALID registers and return the | |
2653 | register's status. | |
2654 | (regcache_cooked_read_unsigned): Change return to enum | |
2655 | register_status. Handle non-REG_VALID registers and return the | |
2656 | register's status. | |
2657 | (regcache_xfer_part, regcache_raw_read_part) | |
2658 | (regcache_cooked_read_part): Change return to enum | |
2659 | register_status. Return the register's status. | |
2660 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
2661 | unavailable. | |
2662 | (regcache_dump): Handle unavailable cooked registers. | |
2663 | * frame.c (do_frame_register_read): Adjust interface to match | |
2664 | regcache_cooked_read_ftype. | |
2665 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
2666 | register_status. | |
2667 | * gdbarch.h, gdbarch.c: Regenerate. | |
2668 | ||
2669 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
2670 | register_status. | |
2671 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
2672 | register_status. If reading a raw register indicates the raw | |
2673 | register is not valid, return the raw register's status, | |
2674 | otherwise, return REG_VALID. | |
2675 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
2676 | register_status. Handle non-REG_VALID raw registers and return | |
2677 | the register's status. | |
2678 | * arm-tdep.c (arm_neon_quad_read) | |
2679 | (arm_pseudo_read): Change return to enum register_status. Handle | |
2680 | non-REG_VALID raw registers and return the register's status. | |
2681 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
2682 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
2683 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
2684 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
2685 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
2686 | register_status. | |
2687 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
2688 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
2689 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
2690 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
2691 | (m32c_pseudo_register_read): Change return to enum | |
2692 | register_status. Adjust. | |
2693 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
2694 | enum register_status. Return the register's status. | |
2695 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
2696 | register_status. Return the register's status. | |
2697 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
2698 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
2699 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
2700 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
2701 | (e500_move_ev_register): Use it. Change return to enum | |
2702 | register_status. Return the register's status. | |
2703 | (do_regcache_raw_read): New function. | |
2704 | (do_regcache_raw_write): New function. | |
2705 | (e500_pseudo_register_read): Change return to enum | |
2706 | register_status. Return the register's status. Use | |
2707 | do_regcache_raw_read. | |
2708 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
2709 | (dfp_pseudo_register_read): Change return to enum register_status. | |
2710 | Return the register's status. | |
2711 | (vsx_pseudo_register_read): Ditto. | |
2712 | (efpr_pseudo_register_read): Ditto. | |
2713 | (rs6000_pseudo_register_read): Ditto. | |
2714 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
2715 | register_status. Return the register's status. | |
2716 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
2717 | (sh64_pseudo_register_read): Change return to enum | |
2718 | register_status. Use pseudo_register_read_portions. Return the | |
2719 | register's status. | |
2720 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
2721 | register_status. Return the register's status. | |
2722 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
2723 | (sh_pseudo_register_read): Change return to enum register_status. | |
2724 | Use pseudo_register_read_portions. Return the register's status. | |
2725 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
2726 | enum register_status. Return the register's status. | |
2727 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
2728 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
2729 | (spu_pseudo_register_read): Ditto. | |
2730 | * xtensa-tdep.c (xtensa_register_read_masked) | |
2731 | (xtensa_pseudo_register_read): Ditto. | |
2732 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
2733 | ||
e10abd8f PM |
2734 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2735 | ||
2736 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
2737 | call. | |
2738 | ||
7ea6d463 PM |
2739 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2740 | ||
2741 | ARI fixes: Add missing internationalization markups throughout | |
2742 | C source files. | |
2743 | * darwin-nat-info.c: Ditto. | |
2744 | * record.c: Ditto. | |
2745 | * remote.c: Ditto. | |
2746 | * mi/mi-main.c: Ditto. | |
2747 | ||
001083c6 PM |
2748 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2749 | ||
2750 | ARI fixes: Add missing internationalization markups throughout | |
2751 | yacc files. | |
2752 | * c-exp.y: Ditto. | |
2753 | * cp-name-parser.y: Ditto. | |
2754 | * f-exp.y: Ditto. | |
2755 | * m2-exp.y: Ditto. | |
2756 | * objc-exp.y: Ditto. | |
2757 | * p-exp.y: Ditto. | |
2758 | ||
4f1cdeec PM |
2759 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2760 | ||
2761 | ARI fixes: Messages should have no trailing new lines. | |
2762 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
2763 | warning function call message. | |
2764 | * record.c (bfdcore_read): Idem for error call. | |
2765 | ||
28e698f1 PM |
2766 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2767 | ||
2768 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
2769 | function call message. | |
2770 | (target_signal_to_host): Add _ markup and remove trailing new line | |
2771 | from warning call message. | |
2772 | (target_signal_from_command): Add _ markup to error function call | |
2773 | message. | |
2774 | ||
99c3dc11 PM |
2775 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
2776 | ||
f33edef8 | 2777 | PR python/12149 |
99c3dc11 PM |
2778 | |
2779 | * python/python.c (gdbpy_write): Accept a stream argument and | |
2780 | operate to the appropriate stream. | |
2781 | (gdbpy_flush): Likewise. | |
2782 | (_initialize_python): Add stream constants. | |
2783 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
2784 | ||
c20800be KY |
2785 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
2786 | ||
2787 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
2788 | ||
f4a1794a KY |
2789 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
2790 | ||
2791 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
f33edef8 PP |
2792 | to store_signed_integer. Add debug message when relocating CALL |
2793 | instructions. Fix formatting of debug message. | |
2794 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
f4a1794a | 2795 | |
d4862372 JB |
2796 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
2797 | ||
2798 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
2799 | (target_lookup_symbol): Delete macro. | |
2800 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
2801 | (update_current_target, setup_target_debug): Remove handling | |
2802 | of to_lookup_symbol target_ops field. | |
2803 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
2804 | target_lookup_symbol. | |
2805 | * coffread.c (coff_symtab_read): Likewise. | |
2806 | * dbxread.c (read_dbx_symtab): Ditto. | |
2807 | ||
d645e32e JB |
2808 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
2809 | ||
2810 | PR gdb/12116: | |
2811 | * configure.ac: Add getthrds declaration check. | |
2812 | * configure, config.in: Regenerate. | |
2813 | * aix-thread.c (getthrds): Declare only if not already declared | |
2814 | in procinfo.h. More declaration out of get_signaled_thread to | |
2815 | global scope. | |
2816 | ||
29703da4 PM |
2817 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
2818 | ||
2819 | * python/py-symtab.c: Populate symtab_object_methods, | |
2820 | sal_object_methods. | |
2821 | (stpy_is_valid): New function. | |
2822 | (salpy_is_valid): Ditto. | |
2823 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
2824 | (sympy_is_valid): New function. | |
2825 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
2826 | (objfpy_is_valid): New function. | |
2827 | * python/py-inferior.c: Populate inferior_object_methods. | |
2828 | (infpy_is_valid): New function. | |
2829 | * python/py-infthread.c: Populate thread_object_methods. | |
2830 | (thpy_is_valid): New function. | |
2831 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
2832 | block_iterator_object_methods. Populate. | |
2833 | (blpy_is_valid): New function. | |
2834 | (blpy_iter_is_valid): Ditto. | |
2835 | ||
c00f8484 KS |
2836 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
2837 | ||
2838 | * linespec.c (find_methods): Canonicalize NAME before looking | |
2839 | up the symbol. | |
2840 | (name_end): New function. | |
2841 | (keep_name_info): New function. | |
2842 | (decode_line_1): Use keep_name_info. | |
2843 | (decode_compound): Likewise. | |
2844 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
2845 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
2846 | ||
2847 | PR c++/12273 | |
2848 | * linespec.c (locate_first_half): Keep overload information, too. | |
2849 | (decode_compound): Use a string to represent break characters | |
2850 | to escape the loop. | |
2851 | If P points to a break character, do not increment it. | |
2852 | For C++ and Java, keep overload information and relevant keywords. | |
2853 | If we cannot find a symbol, search the minimal symbols. | |
2854 | ||
2855 | PR c++/11734 | |
2856 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
2857 | THE_REAL_SAVED_ARG. | |
2858 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
2859 | single-quotes. | |
2860 | Pass a valid block to lookup_symbol. | |
2861 | (lookup_prefix_sym): Likewise. | |
2862 | (find_method): Construct search name based on SYM_CLASS instead | |
2863 | of SAVED_ARG. | |
2864 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
2865 | (lookup_symbol_aux_psymtabs): Likewise. | |
2866 | Don't assume that the psymtab we found was the right one. Search | |
2867 | for the desired symbol in the symtab to be certain. | |
2868 | (psymtab_search_name): New function. | |
2869 | (lookup_partial_symbol): Use psymtab_search_name. | |
2870 | Add language parameter. | |
2871 | (read_symtabs_for_function): Add language parameter and pass to | |
2872 | lookup_partial_symbol. | |
2873 | (find_symbol_file_from_partial): Likewise. | |
2874 | ||
c91513d8 PP |
2875 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
2876 | ||
2877 | PR gdb/12528 | |
2878 | * dwarf2read.c (noop_record_line): New function. | |
2879 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
2880 | ||
b37520b6 PM |
2881 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
2882 | ||
2883 | Fix ARI warnings about new lines at the end of messages, which | |
2884 | are unneeded as there is a new line added at the end of the message | |
2885 | automatically. | |
2886 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
2887 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
2888 | * dfp.c (decimal_to_number): Ditto. | |
2889 | * exec.c (print_section_info): Ditto. | |
2890 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
2891 | * osdata.c (get_osdata): Ditto. | |
2892 | * record.c (bfdcore_write): Ditto. | |
2893 | * remote-mips.c (mips_readchar): Ditto. | |
2894 | * remote.c (read_ptid): Ditto. | |
2895 | * ser-mingw.c (ser_windows_raw): Ditto. | |
2896 | * tracepoint.c (add_local_symbols): Ditto. | |
2897 | * windows-nat.c (fake_create_process): Ditto. | |
2898 | ||
b08ee6a2 TT |
2899 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
2900 | ||
2901 | * tracepoint.c (stop_tracing): Don't declare. | |
2902 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
2903 | ||
9a6f1302 PM |
2904 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
2905 | ||
2906 | * NEWS: Add Parameter sub-classing description. | |
2907 | ||
7ceb86b1 KT |
2908 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
2909 | ||
2910 | * MAINTAINERS: Update my e-mail address. | |
2911 | ||
efeff6cf AT |
2912 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
2913 | ||
2914 | * MAINTAINERS: Add myself for write after approval privileges. | |
2915 | ||
681c238c MS |
2916 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
2917 | ||
f3df5b08 MS |
2918 | * frame.c (find_frame_sal): Assert sym is not null. |
2919 | ||
13f6513c MS |
2920 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
2921 | ||
50412521 MS |
2922 | * objc-lang.c (selectors_info): Check strchr for null result. |
2923 | ||
681c238c MS |
2924 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
2925 | ||
6ced1581 PM |
2926 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
2927 | ||
2928 | Remove trailing spaces and tabulations from pascal language | |
2929 | support sources. | |
2930 | p-exp.y: Ditto. | |
2931 | p-lang.c: Ditto. | |
2932 | p-lang.h: Ditto. | |
2933 | p-valprint.c: Ditto. | |
2934 | ||
9373cf26 JK |
2935 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
2936 | ||
2937 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
2938 | than LOW. Comment it. | |
2939 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
2940 | HIGHPC not strictly higher than LOWPC. | |
2941 | ||
9a1edae6 PM |
2942 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
2943 | ||
2944 | Fix formatting of function declarations returning a pointer in | |
2945 | previous commit. | |
2946 | * varobj.c (varobj_add_child): Ditto. | |
2947 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
2948 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
2949 | ||
24e9cda0 UW |
2950 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
2951 | ||
2952 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
2953 | for the "generic" vector ABI used with GCC 4.3 and later. | |
2954 | (ppc64_sysv_abi_return_value): Likewise. | |
2955 | ||
2956 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
2957 | |
2958 | * infcall.c (call_function_by_hand): Function return value is | |
2959 | always a non_lval, even when using struct_return. | |
2960 | ||
c9174737 PA |
2961 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
2962 | ||
2963 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
2964 | (map_display_numbers): New. | |
2965 | (do_delete_display): New. | |
2966 | (undisplay_command): Use map_display_numbers. | |
2967 | (do_enable_disable_display): New. | |
2968 | (enable_disable_display_command): New function. | |
2969 | (enable_display): Delete. | |
2970 | (enable_display_command): New. | |
2971 | (disable_display_command): Reimplement. | |
2972 | (_initialize_printcmd): Adjust "enable display" command to use | |
2973 | `enable_display_command' as callback. | |
2974 | ||
350c6c65 PM |
2975 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
2976 | ||
2977 | * NEWS: Add Python breakpoint 'stop' operation. | |
2978 | ||
824446ad PM |
2979 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
2980 | ||
2981 | * NEWS: Delete duplicate entry. Fix typo. | |
2982 | ||
2021ad3a PM |
2983 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
2984 | ||
2985 | Fix ARI warning about function names in first column. | |
2986 | Put prototype declaration on same line as return type. | |
2987 | * objc-exp.y: Ditto. | |
2988 | * p-exp.y: Ditto. | |
2989 | * python/py-stopevent.h: Ditto. | |
2990 | For long function names, split parameters to | |
2991 | allow function name on same line as return type. | |
2992 | * solib-pa64.c: Ditto. | |
2993 | * varobj.c: Ditto. | |
2994 | * varobj.h: Ditto. | |
2995 | For long function declaration, use single line. | |
2996 | * hppa-tdep.h: Ditto. | |
2997 | * inferior.h: Ditto. | |
2998 | ||
7371cf6d PM |
2999 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
3000 | ||
3001 | * python/python.h: Declare gdbpy_should_stop and | |
3002 | gdbpy_breakpoint_has_py_cond. | |
3003 | * python/python.c: Add python.h to includes. Remove python.h from | |
3004 | HAVE_PYTHON definition | |
3005 | (gdbpy_should_stop): New dummy function. | |
3006 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
3007 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
3008 | sub-classing capabilities. | |
3009 | (gdbpy_should_stop): New function. | |
3010 | (gdbpy_breakpoint_has_py_cond): New function. | |
3011 | (local_setattro): New function. | |
3012 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
3013 | operation. | |
3014 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
3015 | operation function as part of stop/continue tests. | |
3016 | ||
37b50a69 TT |
3017 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
3018 | ||
3019 | PR gdb/12576: | |
3020 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
3021 | (needs_frame_dwarf_call): Likewise. | |
3022 | ||
eeae04df PM |
3023 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
3024 | ||
3025 | Fix ARI warning about functions without parameters that do not | |
3026 | use (void). | |
3027 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
3028 | * f-exp.y (match_string_literal): Ditto. | |
3029 | (yylex): Ditto. | |
3030 | * m2-exp.y (yylex): Ditto. | |
3031 | * mep-tdep.c (current_me_module): Ditto. | |
3032 | (current_options): Ditto. | |
3033 | (current_cop_data_bus_width): Ditto. | |
3034 | (current_cr_names): Ditto. | |
3035 | (current_cr_is_float): Ditto. | |
3036 | (current_ccr_names): Ditto. | |
3037 | * objc-exp.y (yylex): Ditto. | |
3038 | * p-exp.y (yylex): Ditto. | |
3039 | * remote.c (send_interrupt_sequence): Ditto. | |
3040 | * tracepoint.c (current_trace_status): Ditto. | |
3041 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
3042 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
3043 | ||
6dc3565d MS |
3044 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
3045 | ||
1427fe5e MS |
3046 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
3047 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
3048 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
3049 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
3050 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
3051 | ||
60bc018f MS |
3052 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
3053 | (delete_async_event_handler): Ditto. | |
3054 | ||
f3be5b64 MS |
3055 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
3056 | ||
4c2d5724 MS |
3057 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
3058 | ||
6dc3565d MS |
3059 | * top.c (set_verbose): Assert showcmd was found. |
3060 | ||
4e6ca6d5 MG |
3061 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
3062 | ||
3063 | * xtensa-tdep.c (warning_once): Correct style issues. | |
3064 | ||
815a83e4 YQ |
3065 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
3066 | ||
3067 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
3068 | ||
f2eb0bc8 AS |
3069 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
3070 | ||
3071 | * common/aclocal.m4: Remove. | |
3072 | ||
b801de47 MG |
3073 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
3074 | ||
3075 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
3076 | (xtensa_write_register, xtensa_read_register): Likewise. | |
3077 | (xtensa_hextochar): Removed. | |
3078 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
3079 | ||
dbab50de MG |
3080 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
3081 | ||
3082 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 3083 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
3084 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
3085 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
3086 | (warning_once): New function. | |
3087 | (xtensa_insn_kind): New item c0opc_and. | |
3088 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
3089 | (call0_track_op): Change arguments. New local variable litbase. |
3090 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
3091 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
3092 | in the prologue. | |
dbab50de | 3093 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 3094 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
3095 | Add the variety of updates to handle extended prologues, which now can |
3096 | conduct dynamic stack adjustments. | |
3097 | (call0_frame_cache): Likewise. | |
3098 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
3099 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
3100 | ||
b2c04452 MS |
3101 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
3102 | ||
f8f67713 MS |
3103 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
3104 | (cmd_qtframe): Ditto. | |
3105 | (cmd_qtbuffer): Ditto. | |
3106 | (cmd_bigqtbuffer): Ditto. | |
3107 | ||
197f0a60 TT |
3108 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
3109 | ||
3110 | * tracepoint.c (trace_actions_command): Update. | |
3111 | * thread.c (thread_apply_command): Update. | |
3112 | * reverse.c (delete_bookmark_command): Update. | |
3113 | (bookmarks_info): Update. | |
3114 | * printcmd.c (undisplay_command): Update. | |
3115 | * memattr.c (mem_enable_command): Update. | |
3116 | (mem_disable_command): Update. | |
3117 | (mem_delete_command): Update. | |
3118 | * inferior.c (detach_inferior_command): Update. | |
3119 | (kill_inferior_command): Update. | |
3120 | (remove_inferior_command): Update. | |
3121 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
3122 | (init_number_or_range): Declare. | |
3123 | (get_number_or_range): Update. | |
3124 | * cli/cli-utils.c (init_number_or_range): New function. | |
3125 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
3126 | static variables. | |
3127 | (number_is_in_list): Update. | |
3128 | * breakpoint.h (get_tracepoint_by_number): Update. | |
3129 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
3130 | get_number_or_range. | |
3131 | (find_location_by_number): Use get_number, not | |
3132 | get_number_or_range. | |
3133 | (trace_pass_set_count): New function. | |
3134 | (trace_pass_command): Update for change to get_number_or_range. | |
3135 | Rework loop logic. | |
3136 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
3137 | 'state' parameter. | |
3138 | ||
ecec24e6 PM |
3139 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
3140 | ||
3141 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
3142 | parameters. Register Python object context. | |
3143 | (get_show_value): New function. | |
3144 | (get_set_value): New function. | |
3145 | (call_doc_function): New function. | |
3146 | (get_doc_string): Move behind get_show_value/get_set_value. | |
3147 | ||
6d6c6b1f JK |
3148 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
3149 | ||
3150 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
3151 | ||
68d6df83 MG |
3152 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
3153 | ||
dbab50de | 3154 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
3155 | (xtensa_write_register): Likewise. |
3156 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
3157 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
3158 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
3159 | (xtensa_exception_handler_t): Update to match coding conventions. | |
3160 | (xtensa_insn_kind): Likewise. | |
3161 | ||
85c9d6a6 MS |
3162 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
3163 | ||
3164 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
3165 | ||
91495617 PA |
3166 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
3167 | ||
3168 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
3169 | ||
eb8c0621 TT |
3170 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
3171 | ||
3172 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
3173 | (make_cleanup_restore_current_thread): Use | |
3174 | get_selected_frame_if_set. | |
3175 | * frame.h (get_selected_frame_if_set): Declare. | |
3176 | * frame.c (get_selected_frame_if_set): New function. | |
3177 | ||
9f37bbcc PA |
3178 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
3179 | ||
3180 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
3181 | * coffread.c (coff_start_symtab): Constify parameter. | |
3182 | (complete_symtab): Constify `name' parameter. | |
3183 | (coff_symtab_read): Constify `filestring' local. | |
3184 | (coff_getfilename): Constify return and `result' local. | |
3185 | Use lbasename. | |
3186 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
3187 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
3188 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
3189 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
3190 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
3191 | * procfs.c (procfs_make_note_section): Use lbasename. | |
3192 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
3193 | Use lbasename. | |
3194 | (print_filename): Constify parameters, and local `s'. | |
3195 | (tui_rl_display_match_list): Constify local `temp'. | |
3196 | ||
f8de3c55 JK |
3197 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
3198 | ||
3199 | Revert: | |
3200 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
3201 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
3202 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
3203 | cu->header.version >= 3. | |
3204 | ||
d9837b00 YQ |
3205 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
3206 | ||
3207 | * common/Makefile.in: Remove. | |
3208 | * common/configure: Remove. | |
3209 | * common/configure.ac: Remove. | |
3210 | ||
e637a4f5 YQ |
3211 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
3212 | ||
3213 | Revert: | |
3214 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
3215 | ||
3216 | * common/Makefile.in: Add copyright header. | |
3217 | ||
3218 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
3219 | ||
3220 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
3221 | libcommon.a. | |
3222 | * configure.ac: Add common to sub dir. | |
3223 | * configure: Regenerate. | |
3224 | ||
f976a05d MG |
3225 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
3226 | ||
3227 | * xtensa-tdep.c (call0_ret): New function. | |
3228 | (xtensa_skip_prologue): Speed up analysis. | |
3229 | ||
57041825 MG |
3230 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
3231 | ||
3232 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
3233 | while executing MI command -data-list-changed-registers. | |
3234 | ||
08b9c608 MG |
3235 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
3236 | ||
3237 | * xtensa-tdep.c (xtensa_read_register): New function. | |
3238 | (xtensa_write_register): New function. | |
3239 | (xtensa_find_register_by_name): New function. | |
3240 | (xtensa_windowed_frame_cache): Update comments in type description. | |
3241 | (xtensa_frame_cache): Likewise. | |
3242 | (xtensa_window_interrupt_insn): New function. | |
3243 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
3244 | (xtensa_insn_kind): Add new instructions. | |
3245 | (rwx_special_register): New function. | |
3246 | (call0_classify_opcode): Add new instructions to the analysis. | |
3247 | (a0_saved, a7_saved, a11_saved): New variables. | |
3248 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
3249 | (execute_l32e): New function. | |
3250 | (execute_s32e): New function. | |
3251 | (xtensa_exception_handler_t): New type. | |
3252 | (execute_code): New function. | |
3253 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
3254 | analysis for Xtensa Window Exception handlers. | |
3255 | ||
4d1acb11 MG |
3256 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
3257 | ||
98689b25 MG |
3258 | * xtensa-tdep.c (TX_PS): New. |
3259 | (windowing_enabled): Update to count for Call0 ABI. | |
3260 | (xtensa_hextochar): New. | |
3261 | (xtensa_init_reggroups): Make algorithm generic. | |
3262 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
3263 | ||
3264 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
3265 | ||
3266 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 3267 | |
d3f323f3 MS |
3268 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
3269 | ||
3dcabaa8 MS |
3270 | * i386-tdep.c (i386_follow_jump): Check return value of |
3271 | target_read_memory. | |
3272 | (i386_analyze_struct_return): Ditto. | |
3273 | (i386_skip_probe): Ditto. | |
3274 | (i386_match_insn): Ditto. | |
3275 | (i386_skip_noop): Ditto. | |
3276 | (i386_analyze_frame_setup): Ditto. | |
3277 | (i386_analyze_register_saves): Ditto. | |
3278 | (i386_skip_prologue): Ditto. | |
3279 | (i386_skip_main_prologue): Ditto. | |
3280 | ||
13b3fd9b MS |
3281 | * target.c (read_whatever_is_readable): Fix memory leak. |
3282 | ||
d3f323f3 MS |
3283 | * i386-tdep.c (i386_process_record): Document fall through. |
3284 | ||
421d5c74 JK |
3285 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3286 | ||
3287 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
3288 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
3289 | cu->header.version >= 3. | |
3290 | ||
63154eca PA |
3291 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
3292 | ||
3293 | * remote.c (remote_check_symbols): Skip if the target has no | |
3294 | execution. | |
3295 | ||
f1a507a1 JB |
3296 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
3297 | ||
3298 | * target.c (read_whatever_is_readable): Reformat comment, | |
3299 | with a minor typo fix. Minor reformatting of the code. | |
3300 | ||
36073a92 YQ |
3301 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
3302 | ||
3303 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
3304 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
3305 | Use cached result instead of calling displaced_in_arm_mode again. | |
3306 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
3307 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
3308 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
3309 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
3310 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
3311 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
3312 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
3313 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
3314 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
3315 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
3316 | (arm_catch_kernel_helper_return): Likewise. | |
3317 | * gdb/arm-tdep.h : Update function declarations. | |
3318 | ||
d3f323f3 | 3319 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 3320 | |
e0e40094 MS |
3321 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
3322 | ||
0b2381f5 MS |
3323 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
3324 | ||
0350914a MS |
3325 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
3326 | ||
69feea6f MS |
3327 | * elfread.c (elf_symtab_read): Stop memory leak. |
3328 | ||
e6040cbd MS |
3329 | * main.c (captured_main): Fix memory leak. |
3330 | ||
052874e8 AS |
3331 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
3332 | ||
3333 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
3334 | instead of string2. | |
3335 | ||
b11896a5 TT |
3336 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
3337 | ||
3338 | * xcoffread.c (xcoff_sym_fns): Update. | |
3339 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
3340 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
3341 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
3342 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
3343 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
3344 | * somread.c (som_sym_fns): Update. | |
3345 | * psymtab.h (require_partial_symbols): Declare. | |
3346 | * psymtab.c (require_partial_symbols): New function. | |
3347 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
3348 | (ALL_OBJFILE_PSYMTABS): Undef. | |
3349 | (ALL_PSYMTABS): Move from psympriv.h. | |
3350 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
3351 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
3352 | (find_last_source_symtab_from_partial) | |
3353 | (forget_cached_source_info_partial) | |
3354 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
3355 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
3356 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
3357 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
3358 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
3359 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
3360 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
3361 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
3362 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
3363 | psymtabs. | |
3364 | * mipsread.c (ecoff_sym_fns): Update. | |
3365 | * machoread.c (macho_sym_fns): Update. | |
3366 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
3367 | (read_psyms): New function. | |
3368 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
3369 | (elf_sym_fns_lazy_psyms): New global. | |
3370 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
3371 | dwarf2_build_psymtabs. | |
3372 | * dbxread.c (aout_sym_fns): Update. | |
3373 | * coffread.c (coff_sym_fns): Update. | |
3374 | ||
fda326dd TT |
3375 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
3376 | ||
3377 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
3378 | message. | |
3379 | ||
aeaec162 TT |
3380 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
3381 | ||
3382 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
3383 | parameter. | |
3384 | (target_has_execution_1): Update. | |
3385 | (target_has_execution_current): Declare. | |
3386 | (target_has_execution): Call target_has_execution_current. | |
3387 | (default_child_has_execution): Update. | |
3388 | * target.c (default_child_has_execution): Add 'the_ptid' | |
3389 | parameter. | |
3390 | (target_has_execution_1): Likewise. | |
3391 | (target_has_execution_current): New function. | |
3392 | (add_target): Update. | |
3393 | (init_dummy_target): Update. | |
3394 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
3395 | (init_m32r_ops): Use it. | |
3396 | * record.c (record_core_has_execution): Now static. Add | |
3397 | 'the_ptid' parameter. | |
3398 | * inferior.c (have_live_inferiors): Don't save current thread. | |
3399 | Use target_has_execution_1. | |
3400 | ||
08e14083 YQ |
3401 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
3402 | ||
3403 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
3404 | ||
c05d19c5 JB |
3405 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
3406 | ||
3407 | * elfread.c (elf_symtab_read): Minor reformatting. | |
3408 | ||
3e6ef9e4 JB |
3409 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
3410 | ||
3411 | * objc-lang.c (selectors_info): Minor reformatting. | |
3412 | ||
dbb8534f JB |
3413 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
3414 | ||
3415 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
3416 | ||
dd70cc93 JB |
3417 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
3418 | Michael Snyder <msnyder@vmware.com> | |
3419 | ||
3420 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
3421 | "byte_order" and "elttype" inside the block where these variables | |
3422 | are actually used. Remove some special handling for the case | |
3423 | where "elttype" and "eltlen" are null. Replace by a comment | |
3424 | and a couple of assertion checks. | |
3425 | ||
b27cf2b3 MS |
3426 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
3427 | ||
3428 | * source.c (add_path): Replace semicolon at end of block. | |
3429 | * dwarf2expr.c (execute_stack_op): Ditto. | |
3430 | ||
5387a0c6 MF |
3431 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
3432 | ||
3433 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
3434 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
3435 | (bfin-*-*): Likewise. | |
3436 | ||
e3aa49af MS |
3437 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
3438 | ||
82ae4854 MS |
3439 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
3440 | * mdebugread.c (parse_symbol): Ditto. | |
3441 | * parse.c (parse_exp_in_context): Ditto. | |
3442 | * source.c (add_path): Ditto. | |
3443 | * utils.c (gnu_debuglink_crc32): Ditto. | |
3444 | * varobj.c (variable_language): Ditto. | |
3445 | ||
e3aa49af MS |
3446 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
3447 | ||
154f592e MS |
3448 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3449 | ||
da3ecdc6 MS |
3450 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
3451 | ||
9cc89665 MS |
3452 | * symfile.c (simple_overlay_update): Check for null return value |
3453 | from lookup_minimal_symbol. | |
3454 | ||
154f592e MS |
3455 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
3456 | ||
63ffa6ee TJB |
3457 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3458 | ||
3459 | * eval.c (parse_and_eval_address_1): Remove function. | |
3460 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
3461 | instead of parse_and_eval_address_1. | |
3462 | * value.h (parse_and_eval_address_1): Remove prototype. | |
3463 | ||
a17d146e MS |
3464 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3465 | ||
3466 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
3467 | ||
1a6a67de TJB |
3468 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3469 | ||
3470 | * breakpointc (print_it_typical): Move NULL check from here... | |
3471 | (print_bp_stop_message): ... to here. | |
3472 | ||
488919c4 MS |
3473 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
3474 | ||
3475 | * breakpoint.c (enable_command): Use break instead of continue, | |
3476 | and fill in a missing break. | |
3477 | (disable_command): Ditto. | |
3478 | ||
1e182ce8 UW |
3479 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
3480 | ||
3481 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
3482 | (terminal_save_ours): Remove misleading comment. | |
3483 | (inflow_inferior_data_cleanup): Free ttystate. | |
3484 | (inflow_inferior_exit): Likewise. | |
3485 | (copy_terminal_info): Copy ttystate. | |
3486 | ||
3487 | * serial.c (serial_copy_tty_state): New function. | |
3488 | * serial.h (serial_copy_tty_state): Add prototype. | |
3489 | (struct serial_ops): Add copy_tty_state callback. | |
3490 | * ser-base.c (ser_base_copy_tty_state): New function. | |
3491 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
3492 | * ser-go32.c (dos_copy_tty_state): New function. | |
3493 | (dos_ops): Install copy_tty_state callback. | |
3494 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
3495 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
3496 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
3497 | (_initialize_ser_hardwire): Install it. | |
3498 | ||
b2c5f112 MS |
3499 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3500 | ||
2abae994 MS |
3501 | * breakpoint.c (create_breakpoint): Add missing break statement. |
3502 | ||
7f5936f9 MS |
3503 | Reverting this patch: |
3504 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
3505 | ||
b2c5f112 MS |
3506 | Reverting this patch: |
3507 | * cli/cli-script.c (script_from_file): Add break for lint. | |
3508 | ||
42b1321c MS |
3509 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
3510 | ||
3511 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
3512 | ||
3e2a0cee TT |
3513 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
3514 | ||
3515 | PR gdb/12538: | |
3516 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
3517 | DW_STRING is NULL. | |
3518 | ||
58397cb7 MS |
3519 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
3520 | ||
2e3fd767 MS |
3521 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
3522 | fields of struct 'st' to zero. | |
3523 | ||
58397cb7 MS |
3524 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
3525 | sal.pspace before calling set_current_source_symtab_and_line. | |
3526 | ||
ced54c8f YQ |
3527 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
3528 | ||
3529 | * Makefile.in (configure-common): Remove. Let Makefile | |
3530 | in dir common to rebuild itself. | |
3531 | (common/Makefile): Likewise. | |
3532 | ||
3351ea09 JB |
3533 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
3534 | ||
3535 | * utils.c (parse_escape): Add i18n markup in error message. | |
3536 | ||
bf9f652a YQ |
3537 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
3538 | ||
3539 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
3540 | ARM_PC_REGNUM. | |
3541 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
3542 | (displaced_write_reg, displaced_read_reg): Likewise. | |
3543 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
3544 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
3545 | (cleanup_branch): Replace magic number 14 and 15 with | |
3546 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
3547 | ||
d42de051 MS |
3548 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
3549 | ||
240f9570 MS |
3550 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
3551 | ||
10dd8b54 MS |
3552 | * cli/cli-script.c (script_from_file): Add break for lint. |
3553 | ||
b98bd911 MS |
3554 | * mdebugread.c (parse_partial_symbols): Fix indent. |
3555 | ||
3494b66d MS |
3556 | * target-descriptions.c (tdesc_gdb_type): No need to call |
3557 | xstrdup, callee saves a copy. | |
3558 | ||
daac021a MS |
3559 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
3560 | ||
c38d16a7 MS |
3561 | * infcall.c (call_function_by_hand): Add break statements for lint. |
3562 | ||
905b671b MS |
3563 | * utils.c (parse_escape): Escape the escape char. |
3564 | ||
f2eb0bc8 | 3565 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
3566 | PyList_Append fails. |
3567 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
3568 | ||
8c6a60d1 MS |
3569 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
3570 | a function call. | |
3571 | ||
d42de051 MS |
3572 | * record.c (record_restore): Move printf to before error return. |
3573 | ||
4db71c0b YQ |
3574 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
3575 | ||
3576 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
3577 | is_thumb and insn_size. | |
3578 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
3579 | on both ARM and Thumb mode. | |
3580 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
3581 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
3582 | (arm_displaced_step_fixup): Likewise. | |
3583 | ||
a9dc8dcc MS |
3584 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
3585 | ||
53624a93 MS |
3586 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
3587 | ||
77766669 MS |
3588 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
3589 | ||
62d5b8da MS |
3590 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
3591 | ||
5e9e105f MS |
3592 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
3593 | ||
dc19db01 MS |
3594 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
3595 | with xmalloc. | |
3596 | ||
5ce64950 MS |
3597 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
3598 | which shadows function parameter. | |
3599 | ||
a0aa2878 MS |
3600 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
3601 | to xstrdup. Callee already calls xstrdup. | |
3602 | ||
e325fb69 MS |
3603 | * linespec.c (decode_line_1): Remove unnecessary null check. |
3604 | ||
21cbba77 MS |
3605 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
3606 | variable. | |
3607 | ||
63360adc MS |
3608 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
3609 | superfluous null check. | |
3610 | ||
18ea20ac | 3611 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 3612 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 3613 | |
d014929c MS |
3614 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
3615 | ||
6e9130cf MS |
3616 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
3617 | be null. | |
3618 | ||
5f01dbc0 MS |
3619 | * linespec.c (decode_line_1): Check for null before dereference. |
3620 | ||
d684ab85 MS |
3621 | * reverse.c (record_restore): Move null-check to before pointer |
3622 | dereference. | |
3623 | ||
bfffb7e3 MS |
3624 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
3625 | ||
a9dc8dcc MS |
3626 | * objc-lang.c (selectors_info): Add explanitory comment. |
3627 | (classes_info): Ditto. | |
3628 | ||
478fd957 UW |
3629 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
3630 | ||
3631 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
3632 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
3633 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
3634 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
3635 | (arm_linux_init_abi): Install it. | |
3636 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
3637 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
3638 | ||
0480cefa MS |
3639 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
3640 | ||
ac50ab3b MS |
3641 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
3642 | a little bigger, to avoid possibility of an overflow. | |
3643 | ||
f63fbe86 MS |
3644 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
3645 | buffers a little bigger, to avoid possibility of an overflow. | |
3646 | ||
9e91a352 MS |
3647 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
3648 | ||
f2eb0bc8 | 3649 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
3650 | avoid overflow. |
3651 | (classes_info): Error out on too long REGEXP. | |
3652 | ||
098ab512 MS |
3653 | * infrun.c (handle_inferior_event): Remove unused function call. |
3654 | ||
bcbd1de9 MS |
3655 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
3656 | unused variable. | |
3657 | ||
2e456570 MS |
3658 | * linux-thread-db.c (attach_thread): Discard unused value. |
3659 | ||
14571dad MS |
3660 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
3661 | ||
a9cbf802 MS |
3662 | * remote.c (remote_get_noisy_reply): Discard unused value. |
3663 | (remote_vcont_resume): Ditto. | |
3664 | (remote_stop_ns): Ditto. | |
3665 | ||
5715d26e MS |
3666 | * linespec.c (decode_objc): Delete unused variable. |
3667 | ||
4a9bca80 MS |
3668 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
3669 | ||
f47fb265 MS |
3670 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
3671 | (read_base_type): Delete unused variable. | |
3672 | ||
e81cff30 MS |
3673 | * dbxread.c (read_dbx_symtab): Discard unused value. |
3674 | ||
262acaeb MS |
3675 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
3676 | and discard unused values. | |
3677 | ||
df983543 MS |
3678 | * infcmd.c (_initialize_infcmd): Discard unused values. |
3679 | ||
89acf84d MS |
3680 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
3681 | ||
ab8b8aca MS |
3682 | * dbxread.c (process_one_symbol): Discard unused value. |
3683 | ||
6b4511ab MS |
3684 | * coffread.c (coff_end_symtab): Delete unused variable. |
3685 | ||
e8e80198 MS |
3686 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
3687 | (dwarf2_add_typedef): Delete unused variable. | |
3688 | (read_namespace): Ditto. | |
3689 | (dwarf_decode_macros): Ditto. | |
3690 | ||
976aa66e MS |
3691 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
3692 | ||
5b92b49f MS |
3693 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
3694 | ||
91e8df85 MS |
3695 | * p-valprint.c (pascal_val_print): Discard unused value. |
3696 | ||
899500d6 MS |
3697 | * utils.c (nquery): Call va_end before return; |
3698 | (yquery): Ditto. | |
3699 | (query): Ditto. | |
3700 | ||
0480cefa MS |
3701 | * proc-service.c (ps_plog): Call va_end before return. |
3702 | ||
fb6a3ed3 TT |
3703 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
3704 | ||
3705 | * python/python.c (gdbpy_value_cst): New global. | |
3706 | (_initialize_python): Initialize it. | |
3707 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
3708 | * python/py-value.c (convert_value_from_python): Use | |
3709 | gdbpy_value_cst. | |
3710 | ||
c05202a1 MS |
3711 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
3712 | ||
e463f587 MS |
3713 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
3714 | ||
c38eea1a MS |
3715 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
3716 | ||
3ef09ab5 MS |
3717 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
3718 | ||
8f9a01ee MS |
3719 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
3720 | (lval_func_check_synthetic_pointer): Ditto. | |
3721 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 3722 | |
477d0d57 TT |
3723 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
3724 | ||
3725 | * psymtab.c (expand_partial_symbol_tables): Use | |
3726 | ALL_OBJFILE_PSYMTABS. | |
3727 | ||
20937029 JK |
3728 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3729 | ||
3730 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
3731 | ||
907b7f4f MS |
3732 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
3733 | ||
92e96192 MS |
3734 | * python/py-param.c (set_parameter_value): Add missing |
3735 | break statement. | |
3736 | ||
907b7f4f MS |
3737 | * linux-record.c (record_linux_system_call): Add missing |
3738 | break statement. | |
3739 | ||
12c5a436 UW |
3740 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
3741 | ||
3742 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
3743 | argument PRINT_ADDRESS_BITS. Update callers. | |
3744 | (print_one_breakpoint): Likewise. | |
3745 | ||
170b53b2 UW |
3746 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
3747 | ||
3748 | * breakpoint.c (wrap_indent_at_field): New function. | |
3749 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
3750 | Allocate ui_stream locally instead of using STB argument. | |
3751 | (print_one_breakpoint_location): Update call. | |
3752 | * ui-out.c (ui_out_query_field): New function. | |
3753 | * ui-out.h (ui_out_query_field): Add prototype. | |
3754 | ||
8ab1f94d JB |
3755 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
3756 | ||
3757 | From Michael Snyder <msnyder@vmware.com> | |
3758 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
3759 | ||
7d488639 MS |
3760 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3761 | ||
ae179fba MS |
3762 | * objc-lang.c (selectors_info): Prevent string overrun. |
3763 | ||
086dbf66 MS |
3764 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
3765 | error in strncpy. | |
3766 | ||
f2eb0bc8 | 3767 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
3768 | outer scope. |
3769 | ||
7d488639 MS |
3770 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
3771 | param with a local variable of the same name. | |
3772 | ||
3bd0f5ef MS |
3773 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3774 | ||
3775 | * value.c (value_from_history_ref): New function. | |
3776 | * value.h (value_from_history_ref): Export. | |
3777 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
3778 | to parse value history references. | |
3779 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
3780 | ||
3781 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
3782 | ||
3783 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
3784 | (kill_inferior_command): Ditto. | |
3785 | (remove_inferior_command): Ditto. | |
3786 | (initialize_inferiors): Make command names plural. | |
3787 | Update help strings. | |
3788 | ||
766062f6 MS |
3789 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
3790 | ||
3791 | * darwin-nat-info.c: Fix comment typo. | |
3792 | * dwarf2expr.h: Ditto. | |
3793 | * fbsd-nat.c: Ditto. | |
3794 | * fbsd-nat.h: Ditto. | |
3795 | * frame-unwind.h: Ditto. | |
3796 | * frame.h: Ditto. | |
3797 | * hppa-hpux-tdep.c: Ditto. | |
3798 | * i386-linux-nat.c: Ditto. | |
3799 | * linux-nat.c: Ditto. | |
3800 | * nbsd-nat.c: Ditto. | |
3801 | * nbsd-nat.h: Ditto. | |
3802 | * ppc-linux-tdep.c: Ditto. | |
3803 | * serial.c: Ditto. | |
3804 | * ui-file.h: Ditto. | |
3805 | * tui/tui-winsource.c: Ditto. | |
3806 | ||
f2c4ead5 MS |
3807 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
3808 | ||
86b887df MS |
3809 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
3810 | ||
66fd3b1e MS |
3811 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
3812 | ||
8c814cdd MS |
3813 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
3814 | with a local variable of the same name. | |
3815 | ||
6d5e094a | 3816 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 3817 | param with a local variable of the same name. |
6d5e094a | 3818 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 3819 | |
5eee517d MS |
3820 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
3821 | that it does not shadow a function parameter. | |
3822 | ||
8fbf6b93 MS |
3823 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
3824 | statement is meant to fall through. | |
3825 | ||
cb969d61 MS |
3826 | * expprint.c (dump_subexp_body_standard): Document that case |
3827 | statement is meant to fall through. | |
3828 | ||
f2c4ead5 MS |
3829 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
3830 | dead if statement. Condition can't be false. | |
3831 | ||
b021a221 MS |
3832 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
3833 | ||
3834 | * arm-tdep.c: Fix typos in comments. | |
3835 | * bsd-uthread.c: Ditto. | |
3836 | * completer.c: Ditto. | |
3837 | * corelow.c: Ditto. | |
3838 | * cp-namespace.c: Ditto. | |
3839 | * cp-support.c: Ditto. | |
3840 | * cris-tdep.c: Ditto. | |
3841 | * dbxread.c: Ditto. | |
3842 | * dwarf2read.c: Ditto. | |
3843 | * frame.h: Ditto. | |
3844 | * gdbtypes.h: Ditto. | |
3845 | * inferior.h: Ditto. | |
3846 | * mdebugread.c: Ditto. | |
3847 | * mips-tdep.c: Ditto. | |
3848 | * ppc-linux-nat.c: Ditto. | |
3849 | * ppc-linux-tdep.c: Ditto. | |
3850 | * printcmd.c: Ditto. | |
3851 | * sol-thread.c: Ditto. | |
3852 | * solib-frv.c: Ditto. | |
3853 | * solist.h: Ditto. | |
3854 | * sparc64-tdep.c: Ditto. | |
3855 | * spu-tdep.c: Ditto. | |
3856 | * stabsread.c: Ditto. | |
3857 | * symfile.c: Ditto. | |
3858 | * valops.c: Ditto. | |
3859 | * varobj.c: Ditto. | |
3860 | * vax-nat.c: Ditto. | |
3861 | * python/py-block.c: Ditto. | |
3862 | * python/py-symbol.c: Ditto. | |
3863 | * python/py-symtab.c: Ditto. | |
3864 | * python/py-value.c: Ditto. | |
3865 | * tui/tui-win.c: Ditto. | |
3866 | ||
c82c0b55 MS |
3867 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
3868 | ||
3869 | * inferior.c (print_inferior): Accept a string instead of an int | |
3870 | for requested_inferiors, and use get_number_or_range to parse it. | |
3871 | (info_inferiors_command): Pass args string to print_inferior. | |
3872 | (initialize_inferiors): Change help string for info inferiors. | |
3873 | * inferior.h (print_inferior): Export prototype change. | |
3874 | ||
ee00cd23 TT |
3875 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
3876 | ||
3877 | * common/ax.def (invalid2): Set to 0x31. | |
3878 | ||
0502ed8c JK |
3879 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3880 | ||
3881 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
3882 | L and plongest. | |
3883 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
3884 | use L and plongest. | |
3885 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
3886 | ||
2c9de912 MS |
3887 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
3888 | ||
3889 | * Makefile.in (clean): Make clean should remove generated files | |
3890 | observer.h and observer.inc. | |
3891 | ||
a04b0428 JB |
3892 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
3893 | ||
3894 | Revert the following patch (not approved yet): | |
3895 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
3896 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
3897 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
3898 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
3899 | * ax-general.c (ax_memcpy): New function. | |
3900 | (ax_print): Handle "printf". | |
3901 | (ax_reqs): Ditto. | |
3902 | * ax.h (ax_memcpy): Forward declare. | |
3903 | * common/ax.def (invalid2): Removed. | |
3904 | (printf): New entry. | |
3905 | * printcmd.c (printcmd.h): New include. | |
3906 | (string_printf): New function. | |
3907 | (ui_printf): Removed. | |
3908 | (printf_command): Remove static. Call string_printf. | |
3909 | (eval_command): Call string_printf. | |
3910 | * printcmd.h: New file. | |
3911 | * tracepoint.c (validate_actionline, | |
3912 | encode_actions_1): handle printf_command. | |
3913 | ||
2b52013f TT |
3914 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
3915 | ||
3916 | * ax-general.c (ax_pick): Add missing newline. | |
3917 | ||
e5a67952 MS |
3918 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
3919 | ||
3920 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
3921 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 3922 | breakpoints rather than just one. Use new function |
e5a67952 MS |
3923 | 'number_is_in_list' to implement. |
3924 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
3925 | (watchpoints_info): Ditto. | |
3926 | (tracepoints_info): Ditto. | |
3927 | (maintenance_info_breakpoints): Ditto. | |
3928 | (_initialize_breakpoint): Update help strings to reflect the fact | |
3929 | that these functions can now take more than one argument. | |
3930 | * cli/cli-utils.c (number_is_in_list): New function. | |
3931 | * cli/cli-utils.h (number_is_in_list): Export. | |
3932 | ||
3933 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
3934 | |
3935 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
3936 | (mem_disable_command): Ditto. | |
3937 | (mem_delete_command): Ditto. | |
3938 | (_initialize_mem): Tweak usage message to reflect multiple | |
3939 | arguments. | |
3940 | ||
6e6fbe60 DE |
3941 | 2011-02-22 Doug Evans <dje@google.com> |
3942 | ||
3943 | Add gdb.lookup_global_symbol python function. | |
3944 | * NEWS: Add entry. | |
3945 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
3946 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
3947 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
3948 | ||
79b97fa8 TT |
3949 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
3950 | ||
3951 | * language.c (language_class_name_from_physname): Rename | |
3952 | 'curr_language' argument to 'lang'; use in body. | |
3953 | ||
298f437a MS |
3954 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
3955 | ||
3956 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
3957 | ||
b7ea3126 PA |
3958 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
3959 | ||
3960 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
3961 | next. | |
3962 | ||
58ee6d60 TT |
3963 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
3964 | ||
3965 | * symfile.c (auto_solib_limit): Remove. | |
3966 | * symfile.h (auto_solib_limit): Remove. | |
3967 | ||
36238dbc JB |
3968 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
3969 | ||
3970 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
3971 | ||
aea5b279 MS |
3972 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
3973 | ||
3974 | * gdbthread.h (print_thread_info): Change prototype. | |
3975 | * thread.c (print_thread_info): Accept char* instead of int for | |
3976 | requested_threads argument. Use new function number_is_in_list | |
3977 | to determine which threads to list. | |
3978 | (info_threads_command): Pass char* to print_thread_info. | |
3979 | * cli/cli-utils.c (number_is_in_list): New function. | |
3980 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 3981 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
3982 | print_thread_info. |
3983 | (print_one_inferior): Ditto. | |
3984 | (mi_cmd_list_thread_groups): Ditto. | |
3985 | ||
8caa75ee JK |
3986 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
3987 | ||
3988 | * common/Makefile.in (CFLAGS): New. | |
3989 | (COMPILE): Add $(CFLAGS). | |
3990 | ||
ea666128 TT |
3991 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
3992 | ||
3993 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
3994 | ||
e9cafbcc TT |
3995 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
3996 | ||
3997 | * reverse.c: Include cli-utils.h. | |
3998 | * printcmd.c: Include cli-utils.h. | |
3999 | (string_printf): Use skip_spaces. | |
4000 | * cli/cli-utils.h: New file. | |
4001 | * cli/cli-utils.c: New file. | |
4002 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
4003 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
4004 | * breakpoint.h (get_number, get_number_or_range): Move to | |
4005 | cli-utils.h. | |
4006 | * breakpoint.c: Include cli-utils.h. | |
4007 | (get_number_trailer, get_number, get_number_or_range) | |
4008 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
4009 | (create_breakpoint_sal, find_condition_and_thread) | |
4010 | (decode_static_tracepoint_spec, watch_command_1) | |
4011 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
4012 | (catch_fork_command_1, catch_exec_command_1) | |
4013 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
4014 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
4015 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
4016 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
4017 | (cli-utils.o): New target. | |
4018 | ||
f67fd822 PM |
4019 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
4020 | ||
4021 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
4022 | before calling discard_all_inferiors. | |
4023 | ||
c9def01d UW |
4024 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
4025 | ||
4026 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
4027 | (struct builtin_opencl_type): Remove. | |
4028 | (builtin_opencl_type): Change return type to "struct type **". | |
4029 | (lookup_opencl_vector_type): Update caller. | |
4030 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
4031 | (build_opencl_types): Install plain array of "struct type *" | |
4032 | instead of "struct builtin_opencl_type". | |
4033 | ||
e3039479 UW |
4034 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
4035 | Ulrich Weigand <uweigand@de.ibm.com> | |
4036 | ||
4037 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
4038 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
4039 | (struct arm_linux_hwbp_cap): New type. | |
4040 | (arm_linux_get_hwbp_cap): New function. | |
4041 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
4042 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
4043 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
4044 | (arm_hwbp_type): New type. | |
4045 | (arm_hwbp_control_t): Likewise. | |
4046 | (struct arm_linux_hw_breakpoint): Likewise. | |
4047 | (struct arm_linux_thread_points): Likewise. | |
4048 | (arm_threads): New global variable. | |
4049 | (arm_linux_find_breakpoints_by_tid): New function. | |
4050 | (arm_hwbp_control_initialize): Likewise. | |
4051 | (arm_hwbp_control_is_enabled): Likewise. | |
4052 | (arm_hwbp_control_disable): Likewise. | |
4053 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
4054 | (arm_linux_get_hwbp_type): Likewise. | |
4055 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
4056 | (arm_linux_hw_breakpoint_equal): Likewise. | |
4057 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
4058 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
4059 | (arm_linux_insert_hw_breakpoint): Likewise. | |
4060 | (arm_linux_remove_hw_breakpoint): Likewise. | |
4061 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
4062 | (arm_linux_insert_watchpoint): Likewise. | |
4063 | (arm_linux_remove_watchpoint): Likewise. | |
4064 | (arm_linux_stopped_data_address): Likewise. | |
4065 | (arm_linux_stopped_by_watchpoint): Likewise. | |
4066 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
4067 | (arm_linux_new_thread): Likewise. | |
4068 | (arm_linux_thread_exit): Likewise. | |
4069 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
4070 | related target callbacks. Register arm_linux_new_thread and | |
4071 | arm_linux_thread_exit. | |
4072 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
4073 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
4074 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
4075 | ||
b5db5dfc UW |
4076 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
4077 | ||
4078 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
4079 | per-frame locations while within a function epilogue. | |
4080 | ||
e25b2cfa PM |
4081 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4082 | ||
4083 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
4084 | to GNU coding standards. | |
4085 | ||
4af53f97 PM |
4086 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4087 | ||
4088 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 4089 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
4090 | (ser_windows_close): Only call CancelIo if function exists. |
4091 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
4092 | to check for existence of CancelIo function in kernel32 DLL. | |
4093 | ||
d0e92d82 HZ |
4094 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
4095 | ||
4096 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
4097 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
4098 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
4099 | * ax-general.c (ax_memcpy): New function. | |
4100 | (ax_print): Handle "printf". | |
4101 | (ax_reqs): Ditto. | |
4102 | * ax.h (ax_memcpy): Forward declare. | |
4103 | * common/ax.def (invalid2): Removed. | |
4104 | (printf): New entry. | |
4105 | * printcmd.c (printcmd.h): New include. | |
4106 | (string_printf): New function. | |
4107 | (ui_printf): Removed. | |
4108 | (printf_command): Remove static. Call string_printf. | |
4109 | (eval_command): Call string_printf. | |
4110 | * printcmd.h: New file. | |
4111 | * tracepoint.c (validate_actionline, | |
4112 | encode_actions_1): handle printf_command. | |
4113 | ||
7d357efd MS |
4114 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
4115 | ||
4116 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
4117 | id rather than pointer to bookmark struct. | |
4118 | (delete_bookmark_command): Use get_number_or_range. | |
4119 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
4120 | (bookmark_1): New function. Print info for one bookmark. | |
4121 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
4122 | ||
7a45ebd7 MS |
4123 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
4124 | ||
f2eb0bc8 | 4125 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 4126 | get_number_or_range. |
65ebfb52 | 4127 | (thread_apply_command): Ditto. |
7a45ebd7 | 4128 | |
94d5e490 TT |
4129 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4130 | ||
4131 | * common/ax.def: New file. | |
4132 | * ax.h (enum agent_op): Use ax.def. | |
4133 | * ax-general.c (aop_map): Use ax.def. | |
4134 | ||
c7f96d2b TT |
4135 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4136 | ||
4137 | * ax-general.c (aop_map): Add pick and rot. | |
4138 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
4139 | <DW_OP_rot>: Implement. | |
4140 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
4141 | (ax_pick): Declare. | |
4142 | * ax-general.c (ax_pick): New function. | |
4143 | ||
66694b75 TT |
4144 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4145 | ||
4146 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
4147 | ||
eeaafae2 JK |
4148 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
4149 | Tom Tromey <tromey@redhat.com> | |
4150 | ||
4151 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
4152 | make_symbol_overload_list_block with NULL BLOCK. | |
4153 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
4154 | ||
3c3fe74c PA |
4155 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
4156 | ||
4157 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
4158 | * breakpoint.h (get_number_or_range): Declare. | |
4159 | * printcmd.c (ALL_DISPLAYS): Declare. | |
4160 | (delete_display): Reimplement taking a display pointer. | |
4161 | (undisplay_command): Accept a range of displays to delete, using | |
4162 | get_number_or_range. | |
4163 | ||
13163d80 PM |
4164 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
4165 | ||
4166 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
4167 | for arrays of unspecified length. | |
4168 | * p-valprint.c (pascal_val_print): Likewise. | |
4169 | ||
b434a28f YQ |
4170 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
4171 | ||
4172 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
4173 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
4174 | (thumb_process_displaced_insn): New. | |
4175 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
4176 | call to arm_process_displaced_insn. | |
4177 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
4178 | ||
9f6f94ff TT |
4179 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
4180 | ||
4181 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
4182 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
4183 | compile_dwarf_to_ax. No longer static. Call | |
4184 | dwarf2_compile_cfa_to_ax. | |
4185 | (locexpr_tracepoint_var_ref): Update. | |
4186 | (loclist_tracepoint_var_ref): Update. | |
4187 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
4188 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
4189 | argument; add 'gdbarch' and 'pc'. | |
4190 | (dwarf2_compile_cfa_to_ax): New function. | |
4191 | (dwarf2_frame_cache): Update. | |
4192 | ||
e67ad678 JB |
4193 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
4194 | ||
4195 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
4196 | in the case of an unconstrained packed array. | |
4197 | ||
946ebb0d YQ |
4198 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
4199 | ||
4200 | * common/Makefile.in: Add more targets for make. | |
4201 | ||
1ba1b353 TT |
4202 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
4203 | ||
4204 | * dwarf2loc.c (unimplemented): Fix typo. | |
4205 | ||
b1bfef65 TT |
4206 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
4207 | ||
4208 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
4209 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
4210 | <DW_OP_deref>: Update. | |
4211 | (disassemble_dwarf_expression): Update. | |
4212 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
4213 | (decode_locdesc): Update. | |
4214 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
4215 | ||
5f1e6f19 TT |
4216 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
4217 | ||
4218 | * ax.h (struct aop_map) <name>: Now const. | |
4219 | ||
a0c78a73 PA |
4220 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
4221 | ||
4222 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
4223 | than axs_rvalue. | |
4224 | ||
946ebb0d | 4225 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
4226 | |
4227 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
4228 | * inferior.h: Declare it. | |
4229 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
4230 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
4231 | returns non-NULL. | |
4232 | ||
08807d5a PA |
4233 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
4234 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4235 | ||
4236 | gdb/ | |
4237 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
4238 | ||
29976f3f PA |
4239 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
4240 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4241 | ||
4242 | * value.c (value_contents_copy_raw): Extend describing comment. | |
4243 | Assert that the destination contents we're overwriting are wholly | |
4244 | available. | |
fb68ae73 | 4245 | (value_contents_copy): Extend describing comment. |
29976f3f | 4246 | |
cd24cfaa PA |
4247 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
4248 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4249 | ||
4250 | * value.c (value_available_contents_eq): Remove redundant local | |
4251 | variables. Fix available contents comparision. | |
4252 | * value.h (value_available_contents_eq): Extend describing | |
4253 | comment. | |
4254 | ||
60bbf338 YQ |
4255 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
4256 | ||
4257 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
4258 | trailing newline. | |
4259 | ||
17450429 PP |
4260 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
4261 | ||
4262 | * breakpoint.c (longjmp_names): New variable. | |
4263 | (struct breakpoint_objfile_data): New type. | |
4264 | (breakpoint_objfile_key): New variable. | |
4265 | (msym_not_found): New variable. | |
4266 | (msym_not_found_p): New predicate. | |
4267 | (get_breakpoint_objfile_data): New function. | |
4268 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
4269 | symbols first. | |
4270 | (create_longjmp_master_breakpoint): Likewise. | |
4271 | (create_std_terminate_master_breakpoint): Likewise. | |
4272 | (create_exception_master_breakpoint): Likewise. | |
4273 | (_initialize_breakpoint): Register per-objfile data key. | |
4274 | ||
af02033e PP |
4275 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
4276 | ||
4277 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
4278 | parameter value. | |
4279 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
4280 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
4281 | value. | |
4282 | (update_breakpoints_after_exec): Adjust. | |
4283 | (breakpoint_re_set): Adjust. | |
4284 | ||
60f98dde MS |
4285 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
4286 | ||
cdf99611 MS |
4287 | * thread.c (info_threads_command): Process arg as thread id, |
4288 | or list of thread ids. | |
4289 | (thread_find_command): New command. | |
4290 | (_initialize_thread): Document argument for info threads. | |
4291 | Document 'thread find' command. | |
4292 | * NEWS: Document new command "thread find". | |
60f98dde | 4293 | |
0feedb2c JK |
4294 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
4295 | ||
4296 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
4297 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
4298 | * common/configure: Regenerate with autoconf-2.64. | |
4299 | ||
648cd113 KW |
4300 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
4301 | ||
4302 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
4303 | bool data type to a size of one byte. | |
4304 | ||
5657161f PA |
4305 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
4306 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4307 | ||
4308 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
4309 | look for interface description. | |
4310 | ||
494e194e YQ |
4311 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
4312 | ||
4313 | PR tdep/12352 | |
4314 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
4315 | order to store PC value on stack instead of text section. | |
4316 | ||
d9492458 TJB |
4317 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4318 | ||
4319 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
4320 | the EFP register set size. | |
4321 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
4322 | data from the VMX register. | |
4323 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
4324 | and write data from/to the VMX register. | |
4325 | ||
cdf99611 MS |
4326 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
4327 | ||
4328 | * command.h (enum command_class): New class 'no_set_class', for | |
4329 | "show" commands without a corresponding "set" command. | |
4330 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
4331 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
4332 | "show warranty". | |
4333 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
4334 | "show version". | |
4335 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
4336 | which there is no corresponding "set" command (eg. "show copying"). | |
4337 | ||
424447ee PA |
4338 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4339 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4340 | ||
4341 | * exec.c (section_table_available_memory): Change `len' parameter | |
4342 | type to ULONGEST. | |
4343 | * exec.h (section_table_available_memory): Ditto. | |
4344 | * value.h (read_value_memory): Rename the `offset' parameter to | |
4345 | `embedded_offset'. | |
4346 | ||
c0f61f9c | 4347 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 4348 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
4349 | |
4350 | * memrange.c (compare_mem_ranges): Mention sort order in | |
4351 | describing comment. | |
4352 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
4353 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
4354 | mention what happens to RESULT when the target does not support | |
4355 | the query. | |
4356 | ||
6bfc80c7 PA |
4357 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4358 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4359 | ||
4360 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
4361 | range. | |
4362 | ||
e7303042 PA |
4363 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4364 | ||
4365 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
4366 | No longer handle NULL values. | |
4367 | ||
8af8e3bc PA |
4368 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4369 | ||
4370 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
4371 | * value.c: Include "exceptions.h". | |
4372 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
4373 | generic error. | |
4374 | * cp-abi.c: Include gdb_assert.h. | |
4375 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
4376 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
4377 | errors. | |
4378 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
4379 | parameters. No longer returns -1 on error. | |
4380 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
4381 | `val' parameters. | |
4382 | * cp-valprint.c: Include exceptions.h. | |
4383 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
4384 | the baseclass_offset. Handle unavailable base classes. Use | |
4385 | val_print_invalid_address. | |
4386 | * p-valprint.c: Include exceptions.h. | |
4387 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
4388 | when fetching the baseclass_offset. No longer expect | |
4389 | baseclass_offset returning -1. Handle unavailable base classes. | |
4390 | Use val_print_invalid_address. | |
4391 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
4392 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
4393 | `embedded_offset' and `val' parameters. Adjust. | |
4394 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
4395 | parameter, and change its type to gdb_byte pointer. Add | |
4396 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
4397 | baseclass_offset returning -1. | |
4398 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
4399 | value_contents. Adjust. | |
4400 | (search_struct_field): No longer expect baseclass_offset returning | |
4401 | -1. | |
4402 | (search_struct_method): If reading memory from the target is | |
4403 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
4404 | longer expect baseclass_offset returning -1. | |
4405 | (find_method_list): No longer expect baseclass_offset returning | |
4406 | -1. Use value_contents_for_printing rather than value_contents. | |
4407 | * valprint.c (val_print_invalid_address): New function. | |
4408 | * valprint.h (val_print_invalid_address): Declare. | |
4409 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
4410 | and `val' parameters. No longer expect baseclass_offset returning | |
4411 | -1. Adjust. | |
4412 | * gnu-v2-abi.c: Include "exceptions.h". | |
4413 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
4414 | parameters. Handle unavailable memory. Recurse through | |
4415 | gnuv2_baseclass_offset directly, rather than through | |
4416 | baseclass_offset. No longer returns -1 on not found, instead | |
4417 | throw an error. | |
4418 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
4419 | `val' parameters. Adjust. | |
4420 | ||
1b28d0b3 PA |
4421 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4422 | ||
4423 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
4424 | almost but not quite adjacent. | |
4425 | ||
ec0a52e1 PA |
4426 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4427 | ||
4428 | * value.h (value_entirely_available): Declare. | |
4429 | * value.c (value_entirely_available): New function. | |
4430 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
4431 | real type if the pointer is unavailable. | |
4432 | ||
24e6bcee PA |
4433 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4434 | ||
4435 | * valops.c (value_repeat): Use read_value_memory instead of | |
4436 | read_memory. | |
4437 | ||
39d37385 PA |
4438 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4439 | ||
4440 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
4441 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
4442 | functions. | |
4443 | (value_primitive_field): Use value_contents_copy_raw instead of | |
4444 | memcpy. | |
4445 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
4446 | memcpy. | |
4447 | (value_array, value_slice): Ditto. | |
4448 | * valarith.c (value_subscripted_rvalue): Use | |
4449 | value_contents_copy_raw instead of memcpy. | |
4450 | ||
a3d34bf4 PA |
4451 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4452 | ||
4453 | <unavailable> references. | |
4454 | ||
4455 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
4456 | avoiding read_memory. | |
4457 | ||
9fc6d940 PA |
4458 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4459 | ||
4460 | * c-valprint.c (c_val_print): Print a string with unavailable | |
4461 | contents as an array. | |
4462 | ||
5467c6c8 PA |
4463 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4464 | ||
4465 | * value.h (unpack_bits_as_long): Delete declaration. | |
4466 | (unpack_value_bits_as_long): Declare. | |
4467 | (unpack_value_field_as_long): Declare. | |
4468 | (value_field_bitfield): Declare. | |
4469 | * value.c (unpack_bits_as_long): Rename to... | |
4470 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
4471 | value parameters. Return the extracted result in a new output | |
4472 | parameter. If the value contents are unavailable, return false, | |
4473 | otherwise return true. | |
4474 | (unpack_value_bits_as_long): New. | |
4475 | (unpack_field_as_long): Rename to... | |
4476 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
4477 | Add embedded_offset and value parameters. Return the extracted | |
4478 | result in a new output parameter. If the value contents are | |
4479 | unavailable, return false, otherwise return true. | |
4480 | (unpack_value_field_as_long): New. | |
4481 | (unpack_field_as_long_1): New. | |
4482 | (unpack_field_as_long): Reimplement as wrapper around | |
4483 | unpack_value_field_as_long_1. | |
4484 | (value_field_bitfield): New function. | |
4485 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
4486 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
4487 | is unavailable. | |
4488 | * jv-valprint.c (java_print_value_fields): Use | |
4489 | value_field_bitfield. | |
4490 | * p-valprint.c (pascal_object_print_value_fields): Use | |
4491 | value_field_bitfield. | |
4492 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
4493 | ||
3158c6ed PA |
4494 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4495 | ||
4496 | * value.c (get_internalvar_integer): Also return the int value of | |
4497 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
4498 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
4499 | ||
9fbdca0d PA |
4500 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4501 | ||
4502 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
4503 | INTERNALVAR_POINTER. | |
4504 | <pointer>: Delete. | |
4505 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
4506 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
4507 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
4508 | ||
c8c1c22f PA |
4509 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4510 | ||
4511 | * value.h (value_available_contents_eq): Declare. | |
4512 | * value.c (find_first_range_overlap): New function. | |
4513 | (value_available_contents_eq): New function. | |
4514 | * valprint.c (val_print_array_elements): Use | |
4515 | value_available_contents_eq. | |
4516 | * ada-valprint.c (val_print_packed_array_elements): Use | |
4517 | value_available_contents_eq. | |
4518 | * jv-valprint.c (java_value_print): Use | |
4519 | value_available_contents_eq. | |
4520 | ||
e6e4e701 PA |
4521 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4522 | ||
4523 | * target.c (target_read_live_memory): New function. | |
4524 | (memory_xfer_live_readonly_partial): New. | |
4525 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
4526 | reading unavailable read-only memory from read-only regions of | |
4527 | live target memory. | |
4528 | * tracepoint.c (disconnect_tracing): Adjust. | |
4529 | (set_current_traceframe): New, factored out from | |
4530 | set_traceframe_number. | |
4531 | (set_traceframe_number): Reimplement to only change the traceframe | |
4532 | number on the GDB side. | |
4533 | (do_restore_current_traceframe_cleanup): Adjust. | |
4534 | (make_cleanup_restore_traceframe_number): New. | |
4535 | (cur_traceframe_number): New global. | |
4536 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
4537 | (set_tfile_traceframe): New function. | |
4538 | (tfile_trace_find): If looking up a traceframe using any method | |
4539 | other than by number, make sure the current tfile traceframe | |
4540 | matches gdb's current traceframe. Update the current tfile | |
4541 | traceframe if the lookup succeeded. | |
4542 | (tfile_fetch_registers, tfile_xfer_partial) | |
4543 | (tfile_get_trace_state_variable_value): Make sure the remote | |
4544 | traceframe matches gdb's current traceframe. | |
4545 | * remote.c (remote_traceframe_number): New global. | |
4546 | (remote_open_1): Set it to -1. | |
4547 | (set_remote_traceframe): New function. | |
4548 | (remote_fetch_registers, remote_store_registers) | |
4549 | (remote_xfer_memory, remote_xfer_partial) | |
4550 | (remote_get_trace_state_variable_value): Make sure the remote | |
4551 | traceframe matches gdb's current traceframe. | |
4552 | (remote_trace_find): If looking up a traceframe using any method | |
4553 | other than by number, make sure the current remote traceframe | |
4554 | matches gdb's current traceframe. Update the current remote | |
4555 | traceframe if the lookup succeeded. | |
4556 | * infrun.c (fetch_inferior_event): Adjust. | |
4557 | * tracepoint.h (set_current_traceframe): Declare. | |
4558 | (get_traceframe_number, set_traceframe_number): Add describing | |
4559 | comments. | |
4560 | ||
e6ca34fc PA |
4561 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4562 | ||
4563 | Mark pieces of values as unavailable if the corresponding memory | |
4564 | is unavailable. | |
4565 | ||
4566 | * valops.c: Include tracepoint.h. | |
4567 | (value_fetch_lazy): Use read_value_memory. | |
4568 | (read_value_memory): New. | |
4569 | * value.h (read_value_memory): Declare. | |
4570 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
4571 | * exec.c (section_table_available_memory): New function. | |
4572 | * exec.h (section_table_available_memory): Declare. | |
4573 | ||
2a7498d8 PA |
4574 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4575 | ||
4576 | * Makefile.in (SFILES): Add memrange.c. | |
4577 | (HFILES_NO_SRCDIR): Add memrange.h. | |
4578 | (COMMON_OBS): Add memrange.o. | |
4579 | * memrange.c: New file. | |
4580 | * memrange.h: New file. | |
4581 | * tracepoint.c: Include memrange.h. | |
4582 | (struct mem_range): Delete. | |
4583 | (mem_range_s): Delete. | |
4584 | (traceframe_available_memory): New function. | |
4585 | * tracepoint.h (traceframe_available_memory): Declare. | |
4586 | ||
b3b9301e PA |
4587 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4588 | ||
4589 | * target.h (struct traceframe_info): Forward declare. | |
4590 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
4591 | (struct target_ops) <to_traceframe_info>: New field. | |
4592 | (target_traceframe_info): New. | |
4593 | * target.c (update_current_target): Inherit and default | |
4594 | to_traceframe_info. | |
4595 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
4596 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
4597 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
4598 | (remote_traceframe_info): New. | |
4599 | (init_remote_ops): Install it. | |
4600 | (_initialize_remote): Install "set/show remote traceframe-info" | |
4601 | commands. | |
4602 | * tracepoint.h (parse_traceframe_info): Declare. | |
4603 | * tracepoint.c (struct mem_range): New. | |
4604 | (mem_range_s): New typedef. | |
4605 | (struct traceframe_info): New. | |
4606 | (traceframe_info): New global. | |
4607 | (free_traceframe_info): New function. | |
4608 | (clear_traceframe_info): New function. | |
4609 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
4610 | info. | |
4611 | (build_traceframe_info): New function. | |
4612 | (tfile_traceframe_info): New function. | |
4613 | (init_tfile_ops): Install tfile_traceframe_info. | |
4614 | (traceframe_info_start_memory, free_result): New functions. | |
4615 | (memory_attributes, traceframe_info_elements): New globals. | |
4616 | (parse_traceframe_info, get_traceframe_info): New functions. | |
4617 | * features/traceframe-info.dtd: New file. | |
4618 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
4619 | ||
4e07d55f PA |
4620 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
4621 | ||
4622 | Base support for <unavailable> value contents. | |
4623 | ||
4e07d55f PA |
4624 | * value.h (value_bytes_available): Declare. |
4625 | (mark_value_bytes_unavailable): Declare. | |
4626 | * value.c (struct range): New struct. | |
4627 | (range_s): New typedef. | |
4628 | (ranges_overlap): New function. | |
4629 | (range_lessthan): New function. | |
4630 | (ranges_contain_p): New function. | |
4631 | (struct value) <unavailable>: New field. | |
4632 | (value_bytes_available): New function. | |
4633 | (mark_value_bytes_unavailable): New function. | |
4634 | (require_not_optimized_out): Constify parameter. | |
4635 | (require_available): New function. | |
4636 | (value_contents_all, value_contents): Require all bytes be | |
4637 | available. | |
4638 | (value_free): Free `unavailable'. | |
4639 | (value_copy): Copy `unavailable'. | |
4640 | * valprint.h (val_print_unavailable): Declare. | |
4641 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
4642 | to `embedded_offset'. If printing a scalar, check whether the | |
4643 | value chunk is available. | |
4644 | (val_print_unavailable): New. | |
4645 | (val_print_scalar_formatted): Check whether the value is | |
4646 | available. | |
4647 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
4648 | pretty-printing unavailable values. | |
4649 | ||
bc9a5551 JK |
4650 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4651 | ||
4652 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
4653 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
4654 | variable param_type, initialize it. Remove const/volatile qualifiers | |
4655 | for language_cplus and !show_artificial. Use param_type. | |
4656 | ||
93b55aa1 JK |
4657 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4658 | ||
4659 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
4660 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
4661 | * symtab.h (struct symtab) <next>: Comment extension. | |
4662 | ||
181d9476 YQ |
4663 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
4664 | ||
4665 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
4666 | ||
b708a5c7 JK |
4667 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
4668 | ||
4669 | * common/Makefile.in: Add copyright header. | |
4670 | ||
c5187ac6 PA |
4671 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
4672 | ||
4673 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
4674 | here ... | |
4675 | (fetch_inferior_event): ... to here. | |
4676 | ||
4f3e6fb7 YQ |
4677 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
4678 | ||
4679 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
4680 | libcommon.a. | |
4681 | * configure.ac: Add common to sub dir. | |
4682 | * configure: Regenerate. | |
4683 | ||
b708a5c7 JK |
4684 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
4685 | ||
4686 | Build libcommon.a. | |
4687 | ||
4688 | * common/Makefile.in: New. | |
4689 | * common/configure.ac: New. | |
4690 | * common/aclocal.m4: New. | |
4691 | * common/configure: Generate. | |
4692 | ||
2287cc7e PA |
4693 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
4694 | ||
4695 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
4696 | side of the parenthesis. | |
4697 | ||
4698 | Merge from GCC: | |
4699 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 4700 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 4701 | |
fd62cb89 MS |
4702 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
4703 | ||
4704 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
4705 | ||
56d2815c JK |
4706 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4707 | ||
4708 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
4709 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
4710 | psubd and paddd. | |
4711 | ||
4f7d61a8 JK |
4712 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4713 | ||
4714 | PR 12361. | |
4715 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
4716 | phsubsw. | |
4717 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
4718 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
4719 | ||
54fcddd0 UW |
4720 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
4721 | ||
4722 | * dwarf2read.c (read_subroutine_type): Set special calling | |
4723 | convention flag for functions compiled by IBM XL C for OpenCL. | |
4724 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
4725 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
4726 | calling convention. | |
4727 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
4728 | IBM OpenCL vector types calling convention. | |
4729 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
4730 | (ppc_sysv_abi_broken_return_value): Likewise. | |
4731 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
4732 | types calling convention. | |
4733 | (ppc64_sysv_abi_return_value): Likewise. | |
4734 | * spu-tdep.c: Include "dwarf2.h" | |
4735 | (spu_return_value): Implement IBM OpenCL vector types calling | |
4736 | convention. | |
4737 | ||
d6dafb7c UW |
4738 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
4739 | ||
4740 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
4741 | correct ABI for AltiVec vector arguments. | |
4742 | ||
32b72a42 PA |
4743 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
4744 | ||
4745 | * valprint.c (val_print): Extend comment. | |
4746 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
4747 | interface explanation to val_print. | |
4748 | (ada_val_print_array): Adjust comment to current interface. | |
4749 | (print_field_values): Adjust comment to current interface. | |
4750 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
4751 | explanation to val_print. | |
4752 | * f-valprint.c (f_val_print): Ditto. | |
4753 | * jv-valprint.c (java_val_print): Ditto. | |
4754 | * m2-valprint.c (m2_val_print): Ditto. | |
4755 | * p-valprint.c (pascal_val_print): Ditto. | |
4756 | ||
9998af43 TJB |
4757 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4758 | ||
4759 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
4760 | ||
505500db | 4761 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 4762 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
4763 | |
4764 | * python/py-inferior.c (python_on_normal_stop): New function. | |
4765 | (python_on_resume): New function. | |
4766 | (python_inferior_exit): New function. | |
4767 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
4768 | inferior_exit observers. | |
4769 | * python/py-evtregistry.c: New file. | |
4770 | * python/py-threadevent.c : New file. | |
4771 | * python/py-event.c: New file. | |
4772 | * python/py-evts.c: New file. | |
4773 | * python/py-continueevent.c: New file. | |
4774 | * python/py-bpevent.c: New file. | |
4775 | * python/py-signalevent.c: New file. | |
4776 | * python/py-exetiedevent.c: New file. | |
4777 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
4778 | Move struct breakpoint_object from here... | |
4779 | * python/python-internal.h: ... to here. | |
4780 | * python/py-event.h: New file. | |
4781 | * python/py-events.h: New file. | |
4782 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
4783 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
4784 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
4785 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
4786 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
4787 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
4788 | Add build rules for all the above. | |
4789 | ||
9e0ac564 TT |
4790 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
4791 | ||
4792 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
4793 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
4794 | (dwarf2_section_size): New function. | |
4795 | (dwarf2_get_section_info): Unconditionally read section. | |
4796 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
4797 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
4798 | (dwarf2_symbol_mark_computed): Likewise. | |
4799 | ||
eee5b35e DD |
4800 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
4801 | ||
4802 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
4803 | ||
385203ed DD |
4804 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
4805 | ||
4806 | * mips-linux-tdep.c: Include xml-syscall.h. | |
4807 | (mips_linux_get_syscall_number): New function. | |
4808 | (mips_linux_init_abi): Add calls to | |
4809 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
4810 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
4811 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
4812 | * syscalls/mips-n32-linux.xml: New file. | |
4813 | * syscalls/mips-n64-linux.xml: New file. | |
4814 | * syscalls/mips-o32-linux.xml: New file. | |
4815 | ||
9277c30c UW |
4816 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
4817 | ||
4818 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
4819 | Complain about inverted range entries. | |
4820 | (dwarf2_record_block_ranges): Likewise. | |
4821 | ||
a3be7890 TJB |
4822 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4823 | ||
4824 | Fix some typos. | |
4825 | * breakpoint.c (update_watchpoint): Fix name of the | |
4826 | update_global_location_list function. | |
4827 | (print_one_breakpoint): Fix typo. | |
4828 | (_initialize_breakpoint): Remove extra space in hbreak help | |
4829 | string. | |
4830 | * breakpoint.h (struct bp_location) <length>: Fix field | |
4831 | description. | |
4832 | ||
041274d8 PA |
4833 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
4834 | ||
4835 | * regcache.c (registers_changed_ptid): Don't explictly always | |
4836 | clear `current_regcache'. Only clear current_thread_ptid and | |
4837 | current_thread_arch when PTID matches. Only reinit the frame | |
4838 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
4839 | call to ... | |
4840 | (registers_changed): ... here. | |
4841 | ||
c1c2ab58 UW |
4842 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
4843 | ||
4844 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
4845 | starts with __stack_chk_guard as stack guard symbol. | |
4846 | ||
9011945e AB |
4847 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
4848 | ||
4849 | * disasm.c (compare_lines): Handle the end of sequence markers | |
4850 | within the line table to better support disassembling over | |
4851 | compilation unit boundaries. | |
4852 | ||
e0634ccf UW |
4853 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
4854 | ||
4855 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
4856 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
4857 | implementation even if no symbols are available. | |
4858 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
4859 | (arm_analyze_prologue): Likewise. | |
4860 | ||
0e9e9abd UW |
4861 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
4862 | ||
4863 | * arm-tdep.c: Include "observer.h". | |
4864 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
4865 | (arm_exidx_data_key): New static variable. | |
4866 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
4867 | (struct arm_exidx_data): Likewise. | |
4868 | (arm_exidx_data_free): New function. | |
4869 | (arm_compare_exidx_entries): Likewise. | |
4870 | (arm_obj_section_from_vma): Likewise. | |
4871 | (arm_exidx_new_objfile): Likewise. | |
4872 | (arm_find_exidx_entry): Likewise. | |
4873 | (arm_exidx_fill_cache): Likewise. | |
4874 | (arm_exidx_unwind_sniffer): Likewise. | |
4875 | (arm_exidx_unwind): New global variable. | |
4876 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
4877 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
4878 | observer. Register arm_exidx_data_key as objfile data. | |
4879 | ||
2e9e421f UW |
4880 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
4881 | ||
4882 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
4883 | due to accessing uninitialized variable. Fix indentation. | |
4884 | ||
580688f3 PA |
4885 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
4886 | ||
4887 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
4888 | adjustment, create a new value with adjusted contents rather than | |
4889 | changing the contents of the value being printed (and getting it | |
4890 | wrong). | |
4891 | ||
3d2c1d41 PA |
4892 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
4893 | ||
4894 | * xml-support.c (xml_find_attribute): New. | |
4895 | (xinclude_start_include): Use it. | |
4896 | * xml-support.h (xml_find_attribute): Declare. | |
4897 | * memory-map.c (memory_map_start_memory) | |
4898 | (memory_map_start_property): Use xml_find_attribute. | |
4899 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
4900 | xml_find_attribute. | |
4901 | * remote.c (start_thread): Use xml_find_attribute. | |
4902 | * solib-target.c (library_list_start_segment) | |
4903 | (library_list_start_section, library_list_start_library) | |
4904 | (library_list_start_list): Use xml_find_attribute. | |
4905 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
4906 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
4907 | (tdesc_start_field): Use xml_find_attribute. | |
4908 | ||
0af3e2db UW |
4909 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
4910 | ||
4911 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
4912 | (BUILD_OCL_VTYPES): Update. | |
4913 | ||
c1039e3c JB |
4914 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
4915 | ||
4916 | * configure.ac: Work around non-GNU sed limitation when computing | |
4917 | python version number. | |
4918 | * configure: Regenerate. | |
4919 | ||
600ea1be JK |
4920 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4921 | ||
4922 | Fix debug printing of TYPE_INSTANCE. | |
4923 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
4924 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
4925 | ||
56c12414 JK |
4926 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4927 | ||
4928 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
4929 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
4930 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
4931 | * ada-operator.inc: Rename the file to ... | |
4932 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
4933 | * expprint.c (op_name_standard): Remove all the entries. Include | |
4934 | "std-operator.def" instead. | |
4935 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
4936 | "ada-operator.def". Move all the entries ... | |
4937 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
4938 | ||
c52b559d PP |
4939 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
4940 | ||
4941 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
4942 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
4943 | * jit.c (jit_descriptor_addr): Delete. | |
4944 | (registering_code): Delete. | |
4945 | (clear_int): Delete. | |
4946 | (jit_inferior_data): New variable. | |
4947 | (struct jit_inferior_data): New type. | |
4948 | (get_jit_inferior_data): New function. | |
4949 | (jit_inferior_data_cleanup): New function. | |
4950 | (jit_read_descriptor): Adjust. | |
4951 | (jit_register_code): Adjust. | |
4952 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
4953 | (jit_inferior_init): ... from here. | |
4954 | (jit_breakpoint_re_set): Adjust. | |
4955 | (jit_reset_inferior_data_and_breakpoints): New function. | |
4956 | (jit_inferior_created_observer): Adjust. | |
4957 | (jit_inferior_exit_hook): Adjust. | |
4958 | (jit_executable_changed_observer): New function. | |
4959 | (jit_event_handler): Adjust. | |
4960 | (_initialize_jit): Adjust. | |
4961 | ||
e839132d MS |
4962 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
4963 | ||
4964 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
4965 | line. | |
4966 | ||
47a80e90 TT |
4967 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
4968 | ||
4969 | PR python/12216: | |
4970 | * python/python.c (execute_gdb_command): Call | |
4971 | prevent_dont_repeat. | |
4972 | * top.c (suppress_dont_repeat): New global. | |
4973 | (dont_repeat): Use it. | |
4974 | (prevent_dont_repeat): New function. | |
4975 | * command.h (prevent_dont_repeat): Declare. | |
4976 | ||
45a43567 TT |
4977 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
4978 | ||
4979 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
4980 | * python/py-breakpoint.c (bppy_set_silent): Use | |
4981 | breakpoint_set_silent. | |
4982 | (bppy_set_thread): Use breakpoint_set_thread. | |
4983 | (bppy_set_task): Use breakpoint_set_task. | |
4984 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
4985 | (breakpoint_set_task): Declare. | |
4986 | (make_breakpoint_silent): Remove. | |
4987 | * breakpoint.c (breakpoint_set_silent): New function. | |
4988 | (breakpoint_set_thread): Likewise. | |
4989 | (breakpoint_set_task): Likewise. | |
4990 | (make_breakpoint_silent): Remove. | |
4991 | ||
09d682a4 TT |
4992 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
4993 | ||
4994 | * breakpoint.h (user_breakpoint_p): Declare. | |
4995 | * breakpoint.c (user_breakpoint_p): New function. | |
4996 | (breakpoint_1): Use it. | |
4997 | (save_breakpoints): Likewise. | |
4998 | ||
9c4ea6c5 JB |
4999 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5000 | ||
5001 | * configure.ac: Add handling of Python distribution on Windows. | |
5002 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
5003 | sysconfig variables are not defined, then do not use them. | |
5004 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
5005 | instead. On Windows, return all paths using forward-slashes | |
5006 | rather than backslashes. | |
5007 | ||
ac534cba JB |
5008 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5009 | ||
5010 | * configure.ac: Remove fallback behavior for building | |
5011 | against Python. Remove tweaking of Python include path. | |
5012 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
5013 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
5014 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
5015 | Always restore CPPFLAGS and LIBS after linking test. | |
5016 | * configure: Regenerated. | |
5017 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
5018 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
5019 | * python/python-internal.h: Adjust includes of Python .h files. | |
5020 | ||
c2f0d045 JB |
5021 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5022 | ||
5023 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
5024 | in error message. | |
5025 | ||
6b0c4c1f JB |
5026 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5027 | ||
5028 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
5029 | value test. | |
5030 | ||
672c9795 YQ |
5031 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
5032 | ||
5033 | * arm-linux-nat.c: Update calls to regcache_register_status | |
5034 | instead of regcache_valid_p. | |
5035 | * aix-thread.c: Likewise. | |
5036 | * i386gnu-nat.c: Likewise. | |
5037 | ||
80b23b6a JK |
5038 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5039 | ||
5040 | Fix crash. | |
5041 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
5042 | touching TYPE_FIELD_ARTIFICIAL. | |
5043 | ||
4cd712bd RE |
5044 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
5045 | ||
5046 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
5047 | Committers. | |
5048 | ||
ffd5ec24 PA |
5049 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5050 | ||
5051 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
5052 | selected, don't try iterating over the traceframe's blocks. | |
5053 | (tfile_has_stack): If there's no traceframe selected, then there's | |
5054 | no stack. | |
5055 | (tfile_has_registers): If there's no traceframe selected, then | |
5056 | there's no registers. | |
5057 | ||
e8c9e0a1 PA |
5058 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5059 | ||
5060 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
5061 | haven't read anything. | |
5062 | ||
de15c4ab PA |
5063 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5064 | ||
5065 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
5066 | and val_print_scalar_formatted. | |
5067 | ||
9f41c731 PA |
5068 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
5069 | ||
5070 | * tracepoint.c (tfile_read): New. | |
5071 | (tfile_open): Use it. | |
5072 | (tfile_get_traceframe_address): Use it. | |
5073 | (tfile_trace_find): Use it. | |
5074 | (walk_blocks_callback_func): New typedef. | |
5075 | (match_blocktype): New function. | |
5076 | (traceframe_walk_blocks): New function. | |
5077 | (traceframe_find_block_type): New function. | |
5078 | (tfile_fetch_registers, tfile_xfer_partial) | |
5079 | (tfile_get_trace_state_variable_value): Use | |
5080 | traceframe_find_block_type and tfile_read. | |
5081 | ||
cdefc55d KB |
5082 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
5083 | ||
5084 | * remote-mips.c: Add internationalization mark ups. Remove | |
5085 | trailing \n from already marked up strings. | |
5086 | ||
a81766d8 TT |
5087 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
5088 | ||
5089 | * python/py-prettyprint.c (print_string_repr): Clear | |
5090 | 'addressprint' option when calling val_print_string. | |
5091 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
5092 | option when calling val_print_string. | |
5093 | ||
74aedc46 TT |
5094 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
5095 | ||
5096 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
5097 | GDB_PY_LL_ARG. | |
5098 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
5099 | macros. | |
5100 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
5101 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
5102 | (gdb_py_long_as_ulongest): New defines. | |
5103 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
5104 | (gdb_py_int_as_long): Declare. | |
5105 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
5106 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
5107 | (valpy_long): Add comment. | |
5108 | * python/py-utils.c (get_addr_from_python): Use | |
5109 | gdb_py_long_as_ulongest. Handle overflow properly. | |
5110 | (gdb_py_object_from_longest): New function. | |
5111 | (gdb_py_object_from_ulongest): Likewise. | |
5112 | (gdb_py_int_as_long): Likewise. | |
5113 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
5114 | * python/py-symtab.c (salpy_get_pc): Use | |
5115 | gdb_py_long_from_ulongest. | |
5116 | (salpy_get_line): Use PyInt_FromLong. | |
5117 | * python/py-param.c (set_parameter_value): Use | |
5118 | gdb_py_int_as_long. | |
5119 | * python/py-lazy-string.c (stpy_get_address): Use | |
5120 | gdb_py_long_from_ulongest. | |
5121 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
5122 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
5123 | * python/py-breakpoint.c (bppy_set_thread): Use | |
5124 | gdb_py_int_as_long. | |
5125 | (bppy_set_task): Likewise. | |
5126 | (bppy_set_ignore_count): Likewise. | |
5127 | (bppy_set_hit_count): Likewise. | |
5128 | * python/py-block.c (blpy_get_start): Use | |
5129 | gdb_py_object_from_ulongest. | |
5130 | (blpy_get_end): Likewise. | |
5131 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
5132 | ||
e4f6d2ec TJB |
5133 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
5134 | ||
5135 | PR/symtab 11766: | |
5136 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
5137 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
5138 | equality test for objfile, initialize addr_low if needed. | |
5139 | ||
b30aa278 PA |
5140 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5141 | ||
5142 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
5143 | ||
ab2188aa PA |
5144 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5145 | ||
5146 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
5147 | instead of print_scalar_formatted. | |
5148 | (print_scalar_formatted): Don't handle 's' format strings here, | |
5149 | and add an assertion that we never see such format here. | |
5150 | * valprint.h (val_print_scalar_formatted): Declare. | |
5151 | * valprint.c (val_print_scalar_formatted): New. | |
5152 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
5153 | instead of print_scalar_formatted. | |
5154 | * jv-valprint.c (java_val_print): Ditto. | |
5155 | * p-valprint.c (pascal_val_print): Ditto. | |
5156 | * ada-valprint.c (ada_val_print_1): Ditto. | |
5157 | * f-valprint.c (f_val_print): Ditto. | |
5158 | * infcmd.c (registers_info): Ditto. | |
5159 | * m2-valprint.c (m2_val_print): Ditto. | |
5160 | ||
66d61a4c PA |
5161 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5162 | ||
5163 | * m2-valprint.c (print_unbounded_array): Pass | |
5164 | value_contents_for_printing rather than value_contents, to | |
5165 | m2_print_array_contents. Also pass in the value. | |
5166 | ||
831adc1f JK |
5167 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
5168 | ||
5169 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
5170 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
5171 | ||
20622269 PA |
5172 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5173 | ||
5174 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
5175 | than frame_register, and always pass a valid value to val_print. | |
5176 | ||
585fdaa1 PA |
5177 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5178 | ||
5179 | Centralize printing "<optimized out>". | |
5180 | ||
5181 | * valprint.h (val_print_optimized_out): Declare. | |
5182 | * cp-valprint.c (cp_print_value_fields): Use | |
5183 | val_print_optimized_out. | |
5184 | * jv-valprint.c (java_print_value_fields): Ditto. | |
5185 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
5186 | * printcmd.c (print_formatted): Ditto. | |
5187 | * valprint.c (valprint_check_validity): Ditto. | |
5188 | (value_check_printable): Ditto. | |
5189 | (val_print_optimized_out): New. | |
5190 | ||
29ec5263 PA |
5191 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5192 | ||
5193 | * infcmd.c (default_print_registers_info): Allocate values so to | |
5194 | never pass a NULL value to val_print. | |
5195 | ||
de4127a3 PA |
5196 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5197 | ||
5198 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
5199 | boolean. Make sure to always pass a value that matches the | |
5200 | contents buffer to callees. Preserve `address' for following | |
5201 | iterations. | |
5202 | * value.c (value_contents_for_printing_const): New. | |
5203 | (value_address): Constify value argument. | |
5204 | * value.h (value_contents_for_printing_const): Declare. | |
5205 | (value_address): Constify value argument. | |
5206 | ||
ee99023e PA |
5207 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5208 | ||
5209 | * regcache.c (struct regcache_descr): Rename | |
5210 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
5211 | and sizeof_cooked_register_valid_p to | |
5212 | sizeof_cooked_register_status. | |
5213 | (init_regcache_descr): Adjust. | |
5214 | (struct regcache): Rename register_valid_p field to | |
5215 | register_status. | |
5216 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
5217 | (do_cooked_read): Adjust. | |
5218 | (regcache_valid_p): Rename to ... | |
5219 | (regcache_register_status): ... this. Adjust. | |
5220 | (regcache_invalidate): Adjust. | |
5221 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
5222 | Adjust. | |
5223 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
5224 | as unavailable, not valid. | |
5225 | (regcache_dump): Adjust. | |
5226 | * regcache.h (enum register_status): New. | |
5227 | (regcache_register_status): Declare. | |
5228 | (regcache_invalidate): Delete declaration. | |
5229 | * corelow.c (get_core_registers): Adjust. | |
5230 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
5231 | * trad-frame.c (REG_VALUE): Rename to ... | |
5232 | (TF_REG_VALUE): ... this. | |
5233 | (REG_UNKNOWN): Rename to ... | |
5234 | (TF_REG_UNKNOWN): ... this. | |
5235 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
5236 | * mi/mi-main.c (register_changed_p): Adjust. | |
5237 | ||
99e42fd8 PA |
5238 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5239 | ||
5240 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
5241 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
5242 | overallocate hack. | |
5243 | (regcache_xmalloc): Rename to ... | |
5244 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
5245 | Allocate the regcache type accordingly. | |
5246 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
5247 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
5248 | cooked registers, not raw. | |
5249 | (regcache_dup_no_passthrough): Delete. | |
5250 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
5251 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
5252 | mention obsolete write_register_bytes. | |
5253 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
5254 | ||
f7605bc2 PA |
5255 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5256 | ||
5257 | Stop remote_read_bytes from handling partial reads itself. | |
5258 | ||
5259 | * remote-fileio.c: Include target.h. | |
5260 | (remote_fileio_write_bytes): Delete. | |
5261 | (remote_fileio_func_open, remote_fileio_func_write) | |
5262 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
5263 | target_read_memory. | |
5264 | (remote_fileio_func_stat): Use target_read_memory and | |
5265 | target_write_memory. | |
5266 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
5267 | (remote_fileio_func_system): Use target_read_memory. | |
5268 | * remote.c (remote_write_bytes): Make it static. | |
5269 | (remote_read_bytes): Don't handle partial reads here. | |
5270 | * remote.h (remote_read_bytes): Delete declaration. | |
5271 | ||
efc0eabd PA |
5272 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5273 | ||
5274 | Simplify XML parsing a bit. | |
5275 | ||
5276 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
5277 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
5278 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
5279 | parameter. | |
5280 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
5281 | gdb_xml_create_parser_and_cleanup_1. | |
5282 | (gdb_xml_parse_quick): New. | |
5283 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
5284 | * osdata.c (osdata_parse): Ditto. | |
5285 | * remote.c (remote_threads_info): Ditto. | |
5286 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
5287 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
5288 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
5289 | ||
314d366a KB |
5290 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
5291 | ||
5292 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
5293 | with remote-mips.o added to gdb_target_obs. | |
5294 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
5295 | ||
a491d753 PA |
5296 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
5297 | ||
5298 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
5299 | correct struct value to val_print. | |
5300 | (ada_val_print_1): Ditto. | |
5301 | ||
490f124f PA |
5302 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
5303 | ||
5304 | Don't lose embedded_offset in printing routines throughout. | |
5305 | ||
5306 | * valprint.h (val_print_array_elements): Change prototype. | |
5307 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
5308 | parameter, and adjust to pass it down to val_print, while passing | |
5309 | `valaddr' or `address' unmodified. Take embedded_offset into | |
5310 | account when checking repetitions. | |
5311 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
5312 | val_print_array_elements instead of adjusting `valaddr' and | |
5313 | `address'. | |
5314 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
5315 | embedded_offset to val_print_array_elements instead of adjusting | |
5316 | `valaddr'. | |
5317 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
5318 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
5319 | val_print_array_elements and pascal_object_print_value_fields | |
5320 | instead of adjusting `valaddr'. | |
5321 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
5322 | adjust to use it. | |
5323 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
5324 | use it. | |
5325 | (pascal_object_print_static_field): Use | |
5326 | value_contents_for_printing/value_embedded_offset, rather than | |
5327 | value_contents. | |
5328 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
5329 | parameter, and adjust to use it. Use | |
5330 | value_contents_for_printing/value_embedded_offset, rather than | |
5331 | value_contents. | |
5332 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
5333 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
5334 | it. | |
5335 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
5336 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
5337 | Instead work with offsets. Use | |
5338 | value_contents_for_printing/value_embedded_offset, rather than | |
5339 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
5340 | and use value_from_pointer to extract a target pointer, rather | |
5341 | than value_from_longest. | |
5342 | (print_variant_part): Add `offset' parameter. Replace | |
5343 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
5344 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
5345 | (ada_value_print): Use | |
5346 | value_contents_for_printing/value_embedded_offset, rather than | |
5347 | value_contents. | |
5348 | (print_record): Add `offset' parameter, and adjust to pass it | |
5349 | down. | |
5350 | (print_field_values): Add `offset' parameter. Replace | |
5351 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
5352 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
5353 | Use value_contents_for_printing/value_embedded_offset, rather than | |
5354 | value_contents. | |
5355 | * d-valprint.c (dynamic_array_type): Use | |
5356 | value_contents_for_printing/value_embedded_offset, rather than | |
5357 | value_contents. | |
5358 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
5359 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
5360 | (java_print_value_fields): Take `offset' into account. Don't | |
5361 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
5362 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
5363 | java_print_value_fields. | |
5364 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
5365 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
5366 | down adjusted offsets. | |
5367 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
5368 | (f_val_print): Take `embedded_offset' into account. | |
5369 | ||
7bfc9434 JB |
5370 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
5371 | ||
5372 | * inflow.c: Include "gdbcmd.h". | |
5373 | (interactive_mode): New static global, moved here from top.c. | |
5374 | (show_interactive_mode): New function, moved here from top.c. | |
5375 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
5376 | determine the current mode. | |
5377 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
5378 | setting. | |
5379 | (_initialize_inflow): Add the "set/show interactive-mode" | |
5380 | commands. Moved here from top.c, after having adjusted slightly | |
5381 | the help text. | |
5382 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
5383 | to inflow.c. | |
5384 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
5385 | setting, moved to infow.c. | |
5386 | (init_main): Remove creation of the "set/show interactive-mode" | |
5387 | commands, moved to inflow.c. | |
5388 | ||
44603653 JB |
5389 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
5390 | ||
5391 | * NEWS: Add entry for native ia64-hpux support. | |
5392 | ||
4694da01 TT |
5393 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
5394 | ||
5395 | PR mi/8618: | |
5396 | * thread.c (free_thread): Free 'name'. | |
5397 | (print_thread_info): Emit thread name. Change CLI output. | |
5398 | (thread_name_command): New function. | |
5399 | (do_captured_thread_select): Emit newline. | |
5400 | (_initialize_thread): Register 'thread name' command. | |
5401 | * target.h (struct target_ops) <to_thread_name>: New field. | |
5402 | (target_thread_name): New macro. | |
5403 | * target.c (update_current_target): Handle to_thread_name. | |
5404 | * python/py-infthread.c (thpy_get_name): New function. | |
5405 | (thpy_set_name): Likewise. | |
5406 | (thread_object_getset): Add "name". | |
5407 | * linux-nat.c (linux_nat_thread_name): New function. | |
5408 | (linux_nat_add_target): Set to_thread_name. | |
5409 | * gdbthread.h (struct thread_info) <name>: New field. | |
5410 | ||
10d44370 JB |
5411 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
5412 | ||
5413 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
5414 | (ada_val_print_1): Likewise. | |
5415 | ||
e3acb115 JB |
5416 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
5417 | ||
5418 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
5419 | upper limit address is not greater than the function end address | |
5420 | when the upper limit could not be computed using the debugging | |
5421 | info. | |
5422 | ||
dc92e161 TT |
5423 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
5424 | ||
5425 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
5426 | get_regcomp_error. | |
5427 | * utils.c: Include gdb_regex.h. | |
5428 | (do_regfree_cleanup): New function. | |
5429 | (make_regfree_cleanup): Likewise. | |
5430 | (get_regcomp_error): Likewise. | |
5431 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
5432 | ||
f55af66d TT |
5433 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
5434 | ||
5435 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
5436 | re_compile_fastmap. | |
5437 | ||
a5a44b53 PM |
5438 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
5439 | ||
5440 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
5441 | for internal variables. | |
5442 | (last_was_structop): New static variable. | |
5443 | (COMPLETE): New token. | |
5444 | (field_exp): New rule to group all '.' suffix handling. | |
5445 | Add mark_struct_expression calls when approriate to be able | |
5446 | to correctly find fields for completion. | |
5447 | (yylex): Adapt to handle field completion and set INTVAR when | |
5448 | required. | |
5449 | ||
2c291032 YQ |
5450 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
5451 | ||
5452 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
5453 | save_reggroup, restore_reggroup and all_reggroup. | |
5454 | ||
447b483c JB |
5455 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
5456 | ||
5457 | * ada-valprint. (ada_printchar): Use the correct type length | |
5458 | in call to ada_emit_char. | |
5459 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
5460 | ||
7b64a93b PM |
5461 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
5462 | ||
5463 | * solib-som.h (hpux_major_release): Declare variable here. | |
5464 | * solib-som.c: Remove <sys/utsname.h> header. | |
5465 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
5466 | (hpux_major_release): Make global, change default value to | |
5467 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 5468 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
5469 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
5470 | Add "solib-som.h" header. | |
5471 | (set_hpux_major_release): New function. | |
5472 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
5473 | ||
4e18c053 MF |
5474 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
5475 | ||
5476 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
5477 | ||
a9df6b22 JB |
5478 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
5479 | ||
5480 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
5481 | new-line at end of warning message. | |
5482 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
5483 | error message. | |
5484 | * ia64-hpux-tdep.c: Rephrase comment. | |
5485 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
5486 | dld_flags from "long long" to ULONGEST. | |
5487 | ||
ecb956dd PA |
5488 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
5489 | ||
5490 | * target.h (deprecated_child_ops): Delete declaration. | |
5491 | * target.c (deprecated_child_ops): Delete definition. | |
5492 | ||
76adfcae PA |
5493 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
5494 | ||
5495 | * Makefile.in (hpux-thread.o): Delete rule. | |
5496 | * configure.ac: Don't check for HPUX DCE threads support. | |
5497 | * configure, config.in: Regenerate. | |
5498 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
5499 | (hppa_hpux_child_can_run): Delete. | |
5500 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
5501 | * hpux-thread.c: Delete. | |
5502 | ||
042e866e JB |
5503 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5504 | ||
5505 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
5506 | ||
4ffa5a33 JB |
5507 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5508 | ||
5509 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
5510 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
5511 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
5512 | ||
de8fa76c JB |
5513 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5514 | ||
5515 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
5516 | to the case where instream is stdin. | |
5517 | ||
c4de7027 JB |
5518 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5519 | ||
5520 | * ia64-tdep.h (struct regcache): Forward declare. | |
5521 | (struct ia64_infcall_ops): New struct type. | |
5522 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
5523 | and "infcall_ops". | |
5524 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
5525 | Renames ia64_find_global_pointer. | |
5526 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
5527 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
5528 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
5529 | methods. | |
5530 | (ia64_infcall_ops): New static global constant. | |
5531 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
5532 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
5533 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
5534 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
5535 | (ia64_hpux_dummy_code): New static global constant. | |
5536 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
5537 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
5538 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
5539 | New function. | |
5540 | (ia64_hpux_infcall_ops): New static global constant. | |
5541 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
5542 | for inferior function calls to work properly on ia64-hpux. | |
5543 | ||
77ca787b JB |
5544 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5545 | ||
5546 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
5547 | * ia64-tdep.h (struct frame_info): forward declaration. | |
5548 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
5549 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
5550 | to determine the size of the register frame. | |
5551 | (ia64_size_of_register_frame): New function. | |
5552 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
5553 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
5554 | (IA64_HPUX_UREG_REASON): New macro. | |
5555 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
5556 | New functions. | |
5557 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
5558 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
5559 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
5560 | objects. | |
5561 | ||
92c9a463 JB |
5562 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5563 | ||
5564 | Add support for ia64-hpux. | |
5565 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
5566 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
5567 | ||
5568 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
5569 | floatformats. | |
5570 | * configure.tgt: Add handling for ia64-hpux targets. | |
5571 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
5572 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
5573 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
5574 | ||
f688d93f JB |
5575 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5576 | ||
5577 | [ttrace] Compute thread list immediately after attach. | |
5578 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
5579 | New subprogram. | |
5580 | (inf_ttrace_attach): Use it. | |
5581 | ||
1b89e62f JB |
5582 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5583 | ||
5584 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
5585 | if we could not determine the frame's function address. Instead, | |
5586 | use the frame's PC, and then continue. | |
5587 | ||
3e5e6e2a JB |
5588 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5589 | ||
5590 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
5591 | not already defined. | |
5592 | ||
825d6d8a JB |
5593 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5594 | ||
5595 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
5596 | (ia64_extract_return_value): Handle integral values that are | |
5597 | less than 8 bytes long. | |
5598 | (ia64_push_dummy_call): Likewise. | |
5599 | ||
7458e667 JB |
5600 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
5601 | ||
5602 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
5603 | floatformat_ia64_ext. | |
5604 | (floatformat_ia64_ext_big): New static const. | |
5605 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
5606 | ||
1b05df00 TT |
5607 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
5608 | ||
5609 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
5610 | messages. | |
5611 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
5612 | (mi_cmd_thread_list_ids): Likewise. | |
5613 | (mi_cmd_data_list_changed_registers): Likewise. | |
5614 | (mi_cmd_data_list_register_values): Likewise. | |
5615 | (mi_cmd_data_write_register_values): Likewise. | |
5616 | (mi_cmd_data_evaluate_expression): Likewise. | |
5617 | (mi_cmd_data_read_memory): Likewise. | |
5618 | (mi_cmd_data_read_memory_bytes): Likewise. | |
5619 | (mi_cmd_data_write_memory): Likewise. | |
5620 | (mi_cmd_enable_timings): Likewise. | |
5621 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
5622 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
5623 | (mi_cmd_var_delete): Likewise. | |
5624 | (mi_cmd_var_set_format): Likewise. | |
5625 | (mi_cmd_var_show_format): Likewise. | |
5626 | (mi_cmd_var_info_num_children): Likewise. | |
5627 | (mi_cmd_var_list_children): Likewise. | |
5628 | (mi_cmd_var_info_type): Likewise. | |
5629 | (mi_cmd_var_info_expression): Likewise. | |
5630 | (mi_cmd_var_show_attributes): Likewise. | |
5631 | (mi_cmd_var_assign): Likewise. | |
5632 | (mi_cmd_var_update): Likewise. | |
5633 | (mi_cmd_enable_pretty_printing): Likewise. | |
5634 | (mi_cmd_var_set_update_range): Likewise. | |
5635 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
5636 | messages. | |
5637 | (mi_cmd_target_file_put): Likewise. | |
5638 | (mi_cmd_target_file_delete): Likewise. | |
5639 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
5640 | messages. | |
5641 | (mi_cmd_stack_info_depth): Likewise. | |
5642 | (mi_cmd_stack_list_locals): Likewise. | |
5643 | (mi_cmd_stack_list_args): Likewise. | |
5644 | (mi_cmd_stack_select_frame): Likewise. | |
5645 | (mi_cmd_stack_select_frame): Likewise. | |
5646 | (mi_cmd_stack_info_frame): Likewise. | |
5647 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
5648 | messages. | |
5649 | (mi_cmd_file_list_exec_source_files): Likewise. | |
5650 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
5651 | (mi_cmd_env_cd): Likewise. | |
5652 | (mi_cmd_env_path): Likewise. | |
5653 | (mi_cmd_env_dir): Likewise. | |
5654 | (mi_cmd_inferior_tty_show): Likewise. | |
5655 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
5656 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
5657 | (mi_cmd_break_watch): Likewise. | |
5658 | ||
ad422571 TJB |
5659 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5660 | ||
5661 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
5662 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
5663 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
5664 | (ppc_linux_insert_watchpoint): Likewise. | |
5665 | ||
c2ff108b JK |
5666 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
5667 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5668 | ||
5669 | PR fortran/11104 and DWARF unbound arrays detection. | |
5670 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
5671 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
5672 | unspecified upper bound. | |
5673 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
5674 | variables array_size_array, tmp_type and offset_item. New variable | |
5675 | array. Remove call to f77_get_upperbound. New variables array_type | |
5676 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
5677 | the final call to deprecated_set_value_type. | |
5678 | ||
41e8491f JK |
5679 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
5680 | ||
5681 | Make value allocations more lazy. | |
5682 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
5683 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 5684 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
5685 | instead of allocate_value and set_value_lazy. |
5686 | * findvar.c (value_of_register_lazy): Likewise. | |
5687 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 5688 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
5689 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
5690 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
5691 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
5692 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
5693 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
5694 | the end, remove set_value_lazy there. | |
5695 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
5696 | instead of allocate_value and set_value_lazy when possible. | |
5697 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
5698 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
5699 | of allocate_value and set_value_lazy. | |
5700 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
5701 | allocate_value and set_value_lazy when possible. | |
5702 | ||
b716877b AB |
5703 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
5704 | ||
5705 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
5706 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
5707 | dumping of instruction opcodes. | |
5708 | ||
d5ae309f JB |
5709 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
5710 | ||
5711 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
5712 | appropiately. | |
5713 | ||
98871305 TT |
5714 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
5715 | ||
5716 | * thread.c (do_captured_thread_select): Emit newline before | |
5717 | printing frame. | |
5718 | ||
c378eb4e MS |
5719 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
5720 | ||
5721 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
5722 | * score-tdep.c: Ditto. | |
5723 | * score-tdep.h: Ditto. | |
5724 | * ser-base.c: Ditto. | |
5725 | * ser-go32.c: Ditto. | |
5726 | * serial.c: Ditto. | |
5727 | * serial.h: Ditto. | |
5728 | * ser-mingw.c: Ditto. | |
5729 | * ser-pipe.c: Ditto. | |
5730 | * ser-tcp.c: Ditto. | |
5731 | * ser-unix.c: Ditto. | |
5732 | * sh64-tdep.c: Ditto. | |
5733 | * shnbsd-nat.c: Ditto. | |
5734 | * sh-tdep.c: Ditto. | |
5735 | * sh-tdep.h: Ditto. | |
5736 | * solib.c: Ditto. | |
5737 | * solib-darwin.c: Ditto. | |
5738 | * solib-frv.c: Ditto. | |
5739 | * solib.h: Ditto. | |
5740 | * solib-irix.c: Ditto. | |
5741 | * solib-osf.c: Ditto. | |
5742 | * solib-pa64.c: Ditto. | |
5743 | * solib-som.c: Ditto. | |
5744 | * solib-spu.c: Ditto. | |
5745 | * solib-sunos.c: Ditto. | |
5746 | * solib-svr4.c: Ditto. | |
5747 | * solist.h: Ditto. | |
5748 | * sol-thread.c: Ditto. | |
5749 | * somread.c: Ditto. | |
5750 | * source.c: Ditto. | |
5751 | * source.h: Ditto. | |
5752 | * sparc64-linux-tdep.c: Ditto. | |
5753 | * sparc64-tdep.c: Ditto. | |
5754 | * sparc-linux-nat.c: Ditto. | |
5755 | * sparc-linux-tdep.c: Ditto. | |
5756 | * sparc-sol2-nat.c: Ditto. | |
5757 | * sparc-sol2-tdep.c: Ditto. | |
5758 | * sparc-tdep.c: Ditto. | |
5759 | * sparc-tdep.h: Ditto. | |
5760 | * spu-tdep.c: Ditto. | |
5761 | * stabsread.c: Ditto. | |
5762 | * stabsread.h: Ditto. | |
5763 | * stack.c: Ditto. | |
5764 | * symfile.c: Ditto. | |
5765 | * symfile.h: Ditto. | |
5766 | * symmisc.c: Ditto. | |
5767 | * symtab.c: Ditto. | |
5768 | * symtab.h: Ditto. | |
5769 | * target.c: Ditto. | |
5770 | * target-descriptions.c: Ditto. | |
5771 | * target-descriptions.h: Ditto. | |
5772 | * target.h: Ditto. | |
5773 | * target-memory.c: Ditto. | |
5774 | * terminal.h: Ditto. | |
5775 | * thread.c: Ditto. | |
5776 | * top.c: Ditto. | |
5777 | * tracepoint.c: Ditto. | |
5778 | * tracepoint.h: Ditto. | |
5779 | * trad-frame.h: Ditto. | |
5780 | * typeprint.c: Ditto. | |
5781 | ||
581e13c1 MS |
5782 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
5783 | ||
5784 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
5785 | * ui-file.h: Ditto. | |
5786 | * ui-out.c: Ditto. | |
5787 | * ui-out.h: Ditto. | |
5788 | * utils.c: Ditto. | |
5789 | * v850-tdep.c: Ditto. | |
5790 | * valarith.c: Ditto. | |
5791 | * valops.c: Ditto. | |
5792 | * valprint.c: Ditto. | |
5793 | * valprint.h: Ditto. | |
5794 | * value.c: Ditto. | |
5795 | * value.h: Ditto. | |
5796 | * varobj.c: Ditto. | |
5797 | * varobj.h: Ditto. | |
5798 | * vax-tdep.c: Ditto. | |
5799 | * vec.c: Ditto. | |
5800 | * vec.h: Ditto. | |
5801 | * version.h: Ditto. | |
5802 | * windows-nat.c: Ditto. | |
5803 | * windows-tdep.c: Ditto. | |
5804 | * xcoffread.c: Ditto. | |
5805 | * xcoffsolib.c: Ditto. | |
5806 | * xml-support.c: Ditto. | |
5807 | * xstormy16-tdep.c: Ditto. | |
5808 | * xtensa-tdep.c: Ditto. | |
5809 | * xtensa-tdep.h: Ditto. | |
5810 | ||
90e4670f TJB |
5811 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5812 | ||
5813 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
5814 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
5815 | ||
e09342b5 TJB |
5816 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
5817 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5818 | ||
5819 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 5820 | * breakpoint.h |
e09342b5 TJB |
5821 | (struct breakpoint_ops) <resources_needed>: New method. |
5822 | Initialize to NULL in all existing breakpoint_ops instances. | |
5823 | (struct breakpoint) <exact>: New field. | |
5824 | (target_exact_watchpoints): Declare external global. | |
5825 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
5826 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
5827 | b->enable_state to bp_enabled before calling | |
5828 | hw_watchpoint_used_count. | |
5829 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
5830 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
5831 | if available. | |
5832 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
5833 | if the watchpoint is exact. | |
5834 | (resources_needed_watchpoint): New function. | |
5835 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
5836 | (watch_command_1): Set b->exact if the user asked for an exact | |
5837 | watchpoint and one can be set. | |
5838 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
5839 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
5840 | the user asks for an exact watchpoint and one can be set. Return | |
5841 | number of needed debug registers to watch the expression. | |
5842 | * gdbtypes.c (is_scalar_type): New function, based on | |
5843 | valprint.c:scalar_type_p. | |
5844 | (is_scalar_type_recursive): New function. | |
5845 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
5846 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
5847 | handle regions when ranged watchpoints are available. | |
5848 | (create_watchpoint_request): New function. | |
5849 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
5850 | create_watchpoint_request. | |
5851 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
5852 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
5853 | `set powerpc' and `show powerpc' commands. | |
5854 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
5855 | Mention documentation comment in the target macro. | |
5856 | (target_region_ok_for_hw_watchpoint): Document return value. | |
5857 | ||
9fa40276 TJB |
5858 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5859 | ||
5860 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
5861 | hardware watchpoint after the bp_locations are created. | |
5862 | ||
77b06cd7 TJB |
5863 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5864 | ||
5865 | Convert hardware watchpoints to use breakpoint_ops. | |
5866 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
5867 | <insert_location>: ... this. Return int instead of void. | |
5868 | Accept pointer to struct bp_location instead of pointer to | |
5869 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 5870 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
5871 | <remove_location>: ... this. Accept pointer to struct bp_location |
5872 | instead of pointer to struct breakpoint. Adapt all implementations. | |
5873 | * breakpoint.c (insert_catchpoint): Delete function. | |
5874 | (insert_bp_location): Call the watchpoint or catchpoint's | |
5875 | breakpoint_ops.insert method. | |
5876 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
5877 | breakpoint_ops.remove method. | |
5878 | (insert_watchpoint, remove_watchpoint): New functions. | |
5879 | (watchpoint_breakpoint_ops): New structure. | |
5880 | (watch_command_1): Initialize the OPS field. | |
5881 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
5882 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
5883 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
5884 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
5885 | Delete functions. | |
5886 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
5887 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
5888 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
5889 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
5890 | * target.c (update_current_target): Change default implementation of | |
5891 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
5892 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
5893 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
5894 | to_set_syscall_catchpoint to return_one. | |
5895 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
5896 | (debug_to_insert_exec_catchpoint): Report return value. | |
5897 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
5898 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
5899 | of void. | |
5900 | ||
9b20d036 MS |
5901 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
5902 | ||
5903 | * arm-tdep.c: Internationalization. | |
5904 | * c-lang.c: Ditto. | |
5905 | * charset.c: Ditto. | |
5906 | * fork-child.c: Ditto. | |
5907 | * nto-procfs.c: Ditto. | |
5908 | * ppc-sysv-tdep.c: Ditto. | |
5909 | * procfs.c: Ditto. | |
5910 | * remote-mips.c: Ditto. | |
5911 | * remote.c: Ditto. | |
5912 | * rs6000-nat.c: Ditto. | |
5913 | * rs6000-tdep.c: Ditto. | |
5914 | * target.c: Ditto. | |
5915 | * valops.c: Ditto. | |
5916 | * value.c: Ditto. | |
5917 | * xml-support.c: Ditto. | |
5918 | * mi/mi-cmd-break.c: Ditto. | |
5919 | * mi/mi-cmd-var.c: Ditto. | |
5920 | * mi/mi-interp.c: Ditto. | |
5921 | * mi/mi-main.c: Ditto. | |
5922 | ||
dae477fe AB |
5923 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
5924 | ||
5925 | * remote-sim.c (gdbsim_store_register): Update API to | |
5926 | sim_store_register to check more error conditions. | |
5927 | ||
0df8b418 MS |
5928 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
5929 | ||
5930 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
5931 | * nto-tdep.c: Ditto. | |
5932 | * nto-tdep.h: Ditto. | |
5933 | * objc-exp.y: Ditto. | |
5934 | * objc-lang.c: Ditto. | |
5935 | * objfiles.c: Ditto. | |
5936 | * objfiles.h: Ditto. | |
5937 | * observer.c: Ditto. | |
5938 | * opencl-lang.c: Ditto. | |
5939 | * osabi.c: Ditto. | |
5940 | * parse.c: Ditto. | |
5941 | * parser-defs.h: Ditto. | |
5942 | * p-exp.y: Ditto. | |
5943 | * p-lang.c: Ditto. | |
5944 | * posix-hdep.c: Ditto. | |
5945 | * ppcbug-rom.c: Ditto. | |
5946 | * ppc-linux-nat.c: Ditto. | |
5947 | * ppc-linux-tdep.c: Ditto. | |
5948 | * ppc-linux-tdep.h: Ditto. | |
5949 | * ppcnbsd-tdep.c: Ditto. | |
5950 | * ppcobsd-tdep.c: Ditto. | |
5951 | * ppcobsd-tdep.h: Ditto. | |
5952 | * ppc-sysv-tdep.c: Ditto. | |
5953 | * ppc-tdep.h: Ditto. | |
5954 | * printcmd.c: Ditto. | |
5955 | * proc-abi.c: Ditto. | |
5956 | * proc-flags.c: Ditto. | |
5957 | * procfs.c: Ditto. | |
5958 | * proc-utils.h: Ditto. | |
5959 | * progspace.h: Ditto. | |
5960 | * prologue-value.c: Ditto. | |
5961 | * prologue-value.h: Ditto. | |
5962 | * psympriv.h: Ditto. | |
5963 | * psymtab.c: Ditto. | |
5964 | * p-typeprint.c: Ditto. | |
5965 | * p-valprint.c: Ditto. | |
5966 | * ravenscar-sparc-thread.c: Ditto. | |
5967 | * ravenscar-thread.c: Ditto. | |
5968 | * ravenscar-thread.h: Ditto. | |
5969 | * record.c: Ditto. | |
5970 | * regcache.c: Ditto. | |
5971 | * regcache.h: Ditto. | |
5972 | * remote.c: Ditto. | |
5973 | * remote-fileio.c: Ditto. | |
5974 | * remote-fileio.h: Ditto. | |
5975 | * remote.h: Ditto. | |
5976 | * remote-m32r-sdi.c: Ditto. | |
5977 | * remote-mips.c: Ditto. | |
5978 | * remote-sim.c: Ditto. | |
5979 | * rs6000-aix-tdep.c: Ditto. | |
5980 | * rs6000-nat.c: Ditto. | |
5981 | * rs6000-tdep.c: Ditto. | |
5982 | ||
0d7a18f7 MS |
5983 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
5984 | ||
5985 | * charset.c (validate): Internationalization. | |
5986 | * coffread.c (read_one_sym): Ditto. | |
5987 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
5988 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
5989 | * inflow.c (new_tty): Ditto. | |
5990 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
5991 | * m32c-tdep.c (m32c_return_value): Ditto. | |
5992 | * mep-tdep.c (mep_store_return_value): Ditto. | |
5993 | * score-tdep.c (score7_fetch_insn): Ditto. | |
5994 | * ser-mingw.c (pipe_windows_open): Ditto. | |
5995 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
5996 | * spu-tdep.c (spu_register_type): Ditto. | |
5997 | * tracepoint.c (trace_find_command): Ditto. | |
5998 | * valarith.c (value_pos): Ditto. | |
5999 | ||
9a153e0b JB |
6000 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
6001 | ||
6002 | * ada-valprint.c (printstr): Minor comment reformatting. | |
6003 | ||
35ecd2d6 MS |
6004 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6005 | ||
6006 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
6007 | markup. | |
6008 | ||
1777feb0 MS |
6009 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6010 | ||
6011 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
6012 | * hppa-hpux-tdep.c: Ditto. | |
6013 | * hppa-linux-nat.c: Ditto. | |
6014 | * hppa-linux-tdep.c: Ditto. | |
6015 | * hppanbsd-tdep.c: Ditto. | |
6016 | * hppa-tdep.c: Ditto. | |
6017 | * hppa-tdep.h: Ditto. | |
6018 | * hpux-thread.c: Ditto. | |
6019 | * i386-cygwin-tdep.c: Ditto. | |
6020 | * i386-darwin-nat.c: Ditto. | |
6021 | * i386gnu-nat.c: Ditto. | |
6022 | * i386-linux-nat.c: Ditto. | |
6023 | * i386-linux-tdep.c: Ditto. | |
6024 | * i386-nat.c: Ditto. | |
6025 | * i386-nat.h: Ditto. | |
6026 | * i386nbsd-tdep.c: Ditto. | |
6027 | * i386-sol2-nat.c: Ditto. | |
6028 | * i386-stub.c: Ditto. | |
6029 | * i386-tdep.c: Ditto. | |
6030 | * i386-tdep.h: Ditto. | |
6031 | * i387-tdep.c: Ditto. | |
6032 | * ia64-linux-nat.c: Ditto. | |
6033 | * ia64-linux-tdep.c: Ditto. | |
6034 | * ia64-tdep.c: Ditto. | |
6035 | * infcall.c: Ditto. | |
6036 | * infcall.h: Ditto. | |
6037 | * infcmd.c: Ditto. | |
6038 | * inferior.c: Ditto. | |
6039 | * inferior.h: Ditto. | |
6040 | * infloop.c: Ditto. | |
6041 | * inflow.c: Ditto. | |
6042 | * infrun.c: Ditto. | |
6043 | * interps.c: Ditto. | |
6044 | * interps.h: Ditto. | |
6045 | * iq2000-tdep.c: Ditto. | |
6046 | * irix5-nat.c: Ditto. | |
6047 | * jit.c: Ditto. | |
6048 | * jit.h: Ditto. | |
6049 | * jv-exp.y: Ditto. | |
6050 | * jv-lang.c: Ditto. | |
6051 | * jv-lang.h: Ditto. | |
6052 | * jv-typeprint.c: Ditto. | |
6053 | * jv-valprint.c: Ditto. | |
6054 | * language.c: Ditto. | |
6055 | * language.h: Ditto. | |
6056 | * linespec.c: Ditto. | |
6057 | * linux-fork.c: Ditto. | |
6058 | * linux-nat.c: Ditto. | |
6059 | * linux-thread-db.c: Ditto. | |
6060 | * lm32-tdep.c: Ditto. | |
6061 | ||
025bb325 MS |
6062 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6063 | ||
6064 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
6065 | * m2-lang.c: Ditto. | |
6066 | * m2-typeprint.c: Ditto. | |
6067 | * m2-valprint.c: Ditto. | |
6068 | * m32c-tdep.c: Ditto. | |
6069 | * m32r-linux-nat.c: Ditto. | |
6070 | * m32r-rom.c: Ditto. | |
6071 | * m32r-tdep.c: Ditto. | |
6072 | * m32r-tdep.h: Ditto. | |
6073 | * m68hc11-tdep.c: Ditto. | |
6074 | * m58klinux-nat.c: Ditto. | |
6075 | * m68k-tdep.c: Ditto. | |
6076 | * m88k-tdep.c: Ditto. | |
6077 | * m88k-tdep.h: Ditto. | |
6078 | * machoread.c: Ditto. | |
6079 | * macrocmd.c: Ditto. | |
6080 | * macroexp.c: Ditto. | |
6081 | * macrotab.c: Ditto. | |
6082 | * main.c: Ditto. | |
6083 | * maint.c: Ditto. | |
6084 | * mdebugread.c: Ditto. | |
6085 | * mdebugread.h: Ditto. | |
6086 | * memattr.c: Ditto. | |
6087 | * memattr.h: Ditto. | |
6088 | * memory-map.h: Ditto. | |
6089 | * mep-tdep.c: Ditto. | |
6090 | * microblaze-rom.c: Ditto. | |
6091 | * microblaze-tdep.c: Ditto. | |
6092 | * minsyms.c: Ditto. | |
6093 | * mips-irix-tdep.c: Ditto. | |
6094 | * mips-linux-nat.c: Ditto. | |
6095 | * mips-linux-tdep.c: Ditto. | |
6096 | * mips-linux-tdep.h: Ditto. | |
6097 | * mipsnbsd-nat.c: Ditto. | |
6098 | * mipsnbsd-tdep.c: Ditto. | |
6099 | * mipsread.c: Ditto. | |
6100 | * mips-tdep.c: Ditto. | |
6101 | * mips-tdep.h: Ditto. | |
6102 | * mn10300-linux-tdep.c: Ditto. | |
6103 | * mn10300-tdep.c: Ditto. | |
6104 | * mn10300-tdep.h: Ditto. | |
6105 | * monitor.c: Ditto. | |
6106 | * monitor.h: Ditto. | |
6107 | * moxie-tdep.c: Ditto. | |
6108 | * moxie-tdep.h: Ditto. | |
6109 | * mt-tdep.c: Ditto. | |
6110 | ||
1642781b MF |
6111 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
6112 | ||
6113 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
6114 | ||
394b0adb JB |
6115 | 2011-01-08 Robert Millan <rmh@gnu.org> |
6116 | ||
6117 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
6118 | ||
b670013c MS |
6119 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6120 | ||
6121 | * charset.c (_initialize_charset): Fix typo in string. | |
6122 | ||
a743e542 MS |
6123 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6124 | ||
6125 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
6126 | for i18n. | |
f2eb0bc8 | 6127 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
6128 | Split line so that operator goes to beginning of line. |
6129 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
6130 | assignment out of if statement. | |
6131 | ||
0963b4bd MS |
6132 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6133 | ||
6134 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
6135 | * ada-lang.h: Ditto. | |
6136 | * ada-tasks.c: Ditto. | |
6137 | * ada-valprint.c: Ditto. | |
6138 | * aix-threads.c: Ditto. | |
6139 | * alpha-linux-nat.c: Ditto. | |
6140 | * alpha-linux-tdep.c: Ditto. | |
6141 | * alpha-mdebug-tdep.c: Ditto. | |
6142 | * alpha-nat.c: Ditto. | |
6143 | * alpha-osf1-tdep.c: Ditto. | |
6144 | * alpha-tdep.c: Ditto. | |
6145 | * alphabsd-nat.c: Ditto. | |
6146 | * alphabsd-tdep.c: Ditto. | |
6147 | * amd64-darwin-tdep.c: Ditto. | |
6148 | * amd64-linux-nat.c: Ditto. | |
6149 | * amd64-linux-tdep.c: Ditto. | |
6150 | * amd64-sol2-tdep.c: Ditto. | |
6151 | * amd64-tdep.c: Ditto. | |
6152 | * amd64-fbsd-tdep.c: Ditto. | |
6153 | * amd64-nbsd-tdep.c: Ditto. | |
6154 | * amd64-obsd-tdep.c: Ditto. | |
6155 | * amd64-linux-nat.c: Ditto. | |
6156 | * amd64-linux-tdep.c: Ditto. | |
6157 | * arm-tdep.c: Ditto. | |
6158 | * arm-tdep.h: Ditto. | |
6159 | * armnbsd-nat.c: Ditto. | |
6160 | * avr-tdep.c: Ditto. | |
6161 | * bfin-tdep.c: Ditto. | |
6162 | * bsd-kvm.c: Ditto. | |
6163 | * c-typeprintc: Ditto. | |
6164 | * c-valprint.c: Ditto. | |
6165 | * coff-pe-read.h: Ditto. | |
6166 | * coffreead.c: Ditto. | |
6167 | * cris-tdep.c: Ditto. | |
6168 | * d-lang.c: Ditto. | |
6169 | * darwin-nat-info.c: Ditto. | |
6170 | * darwin-nat.c: Ditto. | |
6171 | * dbug-rom.c: Ditto. | |
6172 | * dbxread.c: Ditto. | |
6173 | * dcache.c: Ditto. | |
6174 | * dcache.h: Ditto. | |
6175 | * dec-thread.c: Ditto. | |
6176 | * defs.h: Ditto. | |
6177 | * demangle.c: Ditto. | |
6178 | * dicos-tdep.c: Ditto. | |
6179 | * dictionary.c: Ditto. | |
6180 | * dictionary.h: Ditto. | |
6181 | * dink32-rom.c: Ditto. | |
6182 | * disasm.c: Ditto. | |
6183 | * doublest.c: Ditto. | |
6184 | * dsrec.c: Ditto. | |
6185 | * dummy-frame.c: Ditto. | |
6186 | * dwarf2-frame.c: Ditto. | |
6187 | * dwarf2expr.c: Ditto. | |
6188 | * dwarf2loc.c: Ditto. | |
6189 | * dwarf2read.c: Ditto. | |
6190 | * elfread.c: Ditto. | |
6191 | * environ.c: Ditto. | |
6192 | * eval.c: Ditto. | |
6193 | * event-top.h: Ditto. | |
6194 | * exceptions.c: Ditto. | |
6195 | * exceptions.h: Ditto. | |
6196 | * exec.c: Ditto. | |
6197 | * expprint.c: Ditto. | |
6198 | * expression.h: Ditto. | |
6199 | * f-exp.y: Ditto. | |
6200 | * f-lang.c: Ditto. | |
6201 | * f-lang.h: Ditto. | |
6202 | * f-typeprint.c: Ditto. | |
6203 | * f-valprint.c: Ditto. | |
6204 | * fbsd-nat.c: Ditto. | |
6205 | * findvar.c: Ditto. | |
6206 | * fork-child.c: Ditto. | |
6207 | * frame.c: Ditto. | |
6208 | * frame.h: Ditto. | |
6209 | * frv-linux-tdep.c: Ditto. | |
6210 | * frv-tdep.c: Ditto. | |
6211 | * gcore.c: Ditto. | |
6212 | * gdb-stabs.h: Ditto. | |
6213 | * gdb_assert.h: Ditto. | |
6214 | * gdb_string.h: Ditto. | |
6215 | * gdb_thread_db.h: Ditto. | |
6216 | * gdb_wait.h: Ditto. | |
6217 | * gdbarch.sh: Ditto. | |
6218 | * gdbcore.h: Ditto. | |
6219 | * gdbthread.h: Ditto. | |
6220 | * gdbtypes.c: Ditto. | |
6221 | * gdbtypes.h: Ditto. | |
6222 | * gnu-nat.c: Ditto. | |
6223 | * gnu-nat.h: Ditto. | |
6224 | * gnu-v2-abi.c: Ditto. | |
6225 | * gnu-v3-abi.c: Ditto. | |
6226 | * go32-nat.c: Ditto. | |
6227 | * gdbarch.c: Regenerate. | |
6228 | * gdbarch.h: Regenerate. | |
6229 | ||
ac74f770 MS |
6230 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6231 | ||
6232 | * ax-gdb.c: Adjust some long output strings. | |
6233 | * breakpoint.c: Ditto. | |
6234 | * charset.c: Ditto. | |
6235 | * cp-abi.c: Ditto. | |
6236 | * infcall.c: Ditto. | |
6237 | * infrun.c: Ditto. | |
6238 | * linux-nat.c: Ditto. | |
6239 | * solib-pa64.c: Ditto. | |
6240 | * solib-som.c: Ditto. | |
6241 | ||
d8e22779 TT |
6242 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
6243 | ||
6244 | PR python/12367: | |
6245 | * NEWS: Add item. | |
6246 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
6247 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
6248 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
6249 | ||
a255712f PP |
6250 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
6251 | ||
6252 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
6253 | * jit.c (jit_debug): New variable. | |
6254 | (show_jit_debug): New function. | |
6255 | (struct target_buffer): Use ULONGEST. | |
6256 | (bfd_open_from_target_memory): Likewise. | |
6257 | (jit_register_code, jit_inferior_init): Add debug output. | |
6258 | (_initialize_jit): Register "debug jit" command. | |
6259 | ||
ccfc3d6e TT |
6260 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
6261 | ||
6262 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
6263 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
6264 | and ARCH_FRAME. | |
6265 | ||
57126e4a TT |
6266 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
6267 | ||
6268 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
6269 | ||
16dfc9ce JB |
6270 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
6271 | ||
6272 | Do not stop on SIGPRIO signals by default | |
6273 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
6274 | signal_print for TARGET_SIGNAL_PRIO. | |
6275 | ||
b1ce2347 JB |
6276 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
6277 | ||
6278 | * ada-tasks.c: Fix style violation in comment. | |
6279 | ||
8f7e195f JB |
6280 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
6281 | ||
6282 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
6283 | at end of error string. | |
6284 | * solib-irix.c (irix_current_sos): Likewise. | |
6285 | * varobj.c (uninstall_variable): Likewise. | |
6286 | ||
e9bdf92c JB |
6287 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
6288 | ||
6289 | * copyright.py: New script. | |
6290 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
6291 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
6292 | ||
3e43a32a MS |
6293 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
6294 | ||
6295 | * addrmap.c: Shorten lines of >= 80 columns. | |
6296 | * arch-utils.c: Ditto. | |
6297 | * arch-utils.h: Ditto. | |
6298 | * ax-gdb.c: Ditto. | |
6299 | * ax-general.c: Ditto. | |
6300 | * bcache.c: Ditto. | |
6301 | * blockframe.c: Ditto. | |
6302 | * breakpoint.c: Ditto. | |
6303 | * buildsym.c: Ditto. | |
6304 | * c-lang.c: Ditto. | |
6305 | * c-typeprint.c: Ditto. | |
6306 | * charset.c: Ditto. | |
6307 | * coffread.c: Ditto. | |
6308 | * command.h: Ditto. | |
6309 | * corelow.c: Ditto. | |
6310 | * cp-abi.c: Ditto. | |
6311 | * cp-namespace.c: Ditto. | |
6312 | * cp-support.c: Ditto. | |
6313 | * dbug-rom.c: Ditto. | |
6314 | * dbxread.c: Ditto. | |
6315 | * defs.h: Ditto. | |
6316 | * dfp.c: Ditto. | |
6317 | * dfp.h: Ditto. | |
6318 | * dictionary.c: Ditto. | |
6319 | * disasm.c: Ditto. | |
6320 | * doublest.c: Ditto. | |
6321 | * dwarf2-frame.c: Ditto. | |
6322 | * dwarf2expr.c: Ditto. | |
6323 | * dwarf2loc.c: Ditto. | |
6324 | * dwarf2read.c: Ditto. | |
6325 | * elfread.c: Ditto. | |
6326 | * eval.c: Ditto. | |
6327 | * event-loop.c: Ditto. | |
6328 | * event-loop.h: Ditto. | |
6329 | * exceptions.h: Ditto. | |
6330 | * exec.c: Ditto. | |
6331 | * expprint.c: Ditto. | |
6332 | * expression.h: Ditto. | |
6333 | * f-lang.c: Ditto. | |
6334 | * f-valprint.c: Ditto. | |
6335 | * findcmd.c: Ditto. | |
6336 | * frame-base.c: Ditto. | |
6337 | * frame-unwind.c: Ditto. | |
6338 | * frame-unwind.h: Ditto. | |
6339 | * frame.c: Ditto. | |
6340 | * frame.h: Ditto. | |
6341 | * gcore.c: Ditto. | |
6342 | * gdb-stabs.h: Ditto. | |
6343 | * gdb_assert.h: Ditto. | |
6344 | * gdb_dirent.h: Ditto. | |
6345 | * gdb_obstack.h: Ditto. | |
6346 | * gdbcore.h: Ditto. | |
6347 | * gdbtypes.c: Ditto. | |
6348 | * gdbtypes.h: Ditto. | |
6349 | * inf-ttrace.c: Ditto. | |
6350 | * infcall.c: Ditto. | |
6351 | * infcmd.c: Ditto. | |
6352 | * inflow.c: Ditto. | |
6353 | * infrun.c: Ditto. | |
6354 | * inline-frame.h: Ditto. | |
6355 | * language.c: Ditto. | |
6356 | * language.h: Ditto. | |
6357 | * libunwind-frame.c: Ditto. | |
6358 | * libunwind-frame.h: Ditto. | |
6359 | * linespec.c: Ditto. | |
6360 | * linux-nat.c: Ditto. | |
6361 | * linux-nat.h: Ditto. | |
6362 | * linux-thread-db.c: Ditto. | |
6363 | * machoread.c: Ditto. | |
6364 | * macroexp.c: Ditto. | |
6365 | * macrotab.c: Ditto. | |
6366 | * main.c: Ditto. | |
6367 | * maint.c: Ditto. | |
6368 | * mdebugread.c: Ditto. | |
6369 | * memattr.c: Ditto. | |
6370 | * minsyms.c: Ditto. | |
6371 | * monitor.c: Ditto. | |
6372 | * monitor.h: Ditto. | |
6373 | * objfiles.c: Ditto. | |
6374 | * objfiles.h: Ditto. | |
6375 | * osabi.c: Ditto. | |
6376 | * p-typeprint.c: Ditto. | |
6377 | * p-valprint.c: Ditto. | |
6378 | * parse.c: Ditto. | |
6379 | * printcmd.c: Ditto. | |
6380 | * proc-events.c: Ditto. | |
6381 | * procfs.c: Ditto. | |
6382 | * progspace.c: Ditto. | |
6383 | * progspace.h: Ditto. | |
6384 | * psympriv.h: Ditto. | |
6385 | * psymtab.c: Ditto. | |
6386 | * record.c: Ditto. | |
6387 | * regcache.c: Ditto. | |
6388 | * regcache.h: Ditto. | |
6389 | * remote-fileio.c: Ditto. | |
6390 | * remote.c: Ditto. | |
6391 | * ser-mingw.c: Ditto. | |
6392 | * ser-tcp.c: Ditto. | |
6393 | * ser-unix.c: Ditto. | |
6394 | * serial.c: Ditto. | |
6395 | * serial.h: Ditto. | |
6396 | * solib-frv.c: Ditto. | |
6397 | * solib-irix.c: Ditto. | |
6398 | * solib-osf.c: Ditto. | |
6399 | * solib-pa64.c: Ditto. | |
6400 | * solib-som.c: Ditto. | |
6401 | * solib-sunos.c: Ditto. | |
6402 | * solib-svr4.c: Ditto. | |
6403 | * solib-target.c: Ditto. | |
6404 | * solib.c: Ditto. | |
6405 | * somread.c: Ditto. | |
6406 | * source.c: Ditto. | |
6407 | * stabsread.c: Ditto. | |
6408 | * stabsread.c: Ditto. | |
6409 | * stack.c: Ditto. | |
6410 | * stack.h: Ditto. | |
6411 | * symfile-mem.c: Ditto. | |
6412 | * symfile.c: Ditto. | |
6413 | * symfile.h: Ditto. | |
6414 | * symmisc.c: Ditto. | |
6415 | * symtab.c: Ditto. | |
6416 | * symtab.h: Ditto. | |
6417 | * target-descriptions.c: Ditto. | |
6418 | * target-memory.c: Ditto. | |
6419 | * target.c: Ditto. | |
6420 | * target.h: Ditto. | |
6421 | * terminal.h: Ditto. | |
6422 | * thread.c: Ditto. | |
6423 | * top.c: Ditto. | |
6424 | * tracepoint.c: Ditto. | |
6425 | * tracepoint.h: Ditto. | |
6426 | * ui-file.c: Ditto. | |
6427 | * ui-file.h: Ditto. | |
6428 | * ui-out.h: Ditto. | |
6429 | * user-regs.c: Ditto. | |
6430 | * user-regs.h: Ditto. | |
6431 | * utils.c: Ditto. | |
6432 | * valarith.c: Ditto. | |
6433 | * valops.c: Ditto. | |
6434 | * valprint.c: Ditto. | |
6435 | * valprint.h: Ditto. | |
6436 | * value.c: Ditto. | |
6437 | * varobj.c: Ditto. | |
6438 | * varobj.h: Ditto. | |
6439 | * vec.h: Ditto. | |
6440 | * xcoffread.c: Ditto. | |
6441 | * xcoffsolib.c: Ditto. | |
6442 | * xcoffsolib.h: Ditto. | |
6443 | * xml-syscall.c: Ditto. | |
6444 | * xml-tdesc.c: Ditto. | |
6445 | ||
9a2b4c1b MS |
6446 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
6447 | ||
6448 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
6449 | * cli/cli-decode.c: Ditto. | |
6450 | * cli/cli-dump.c: Ditto. | |
6451 | * cli/cli-logging.c: Ditto. | |
6452 | * cli/cli-script.c: Ditto. | |
6453 | * cli/cli-setshow.c: Ditto. | |
6454 | * common/signals.c: Ditto. | |
6455 | * mi/mi-cmd-break.c: Ditto. | |
6456 | * mi/mi-cmd-disas.c: Ditto. | |
6457 | * mi/mi-cmd-stack.c: Ditto. | |
6458 | * mi/mi-cmd-var.c: Ditto. | |
6459 | * mi/mi-cmds.c: Ditto. | |
6460 | * mi/mi-common.h: Ditto. | |
6461 | * mi/mi-console.c: Ditto. | |
6462 | * mi/mi-interp.c: Ditto. | |
6463 | * mi/mi-main.c: Ditto. | |
6464 | * osf-share/cma_attr.c: Ditto. | |
6465 | * osf-share/cma_deb_core.h: Ditto. | |
6466 | * osf-share/cma_debug_client.h: Ditto. | |
6467 | * osf-share/cma_handle.h: Ditto. | |
6468 | * osf-share/cma_mutex.h: Ditto. | |
6469 | * osf-share/cma_stack_int.h: Ditto. | |
6470 | * osf-share/cma_tcb_defs.h: Ditto. | |
6471 | * python/py-auto-load.c: Ditto. | |
6472 | * python/py-breakpoint.c: Ditto. | |
6473 | * python/py-cmd.c: Ditto. | |
6474 | * python/py-frame.c: Ditto. | |
6475 | * python/py-objfile.c: Ditto. | |
6476 | * python/py-param.c: Ditto. | |
6477 | * python/py-progspace.c: Ditto. | |
6478 | * python/py-symbol.c: Ditto. | |
6479 | * python/py-value.c: Ditto. | |
6480 | * python/python-internal.h: Ditto. | |
6481 | * python/python.c: Ditto. | |
6482 | * tui/tui-data.c: Ditto. | |
6483 | * tui/tui-disasm.c: Ditto. | |
6484 | * tui/tui-hooks.c: Ditto. | |
6485 | * tui/tui-io.c: Ditto. | |
6486 | * tui/tui-layout.c: Ditto. | |
6487 | * tui/tui-regs.c: Ditto. | |
6488 | * tui/tui-source.c: Ditto. | |
6489 | * tui/tui-stack.c: Ditto. | |
6490 | * tui/tui-win.c: Ditto. | |
6491 | * tui/tui-windata.c: Ditto. | |
6492 | * tui/tui-winsource.c: Ditto. | |
6493 | ||
44944448 JB |
6494 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
6495 | ||
6496 | * configure.ac, gdb.1: Copyright year update. | |
6497 | ||
ebedcab5 JK |
6498 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
6499 | ||
6500 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
6501 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
6502 | "__morestack" minimal symbol there. | |
6503 | ||
e5cc9f32 JB |
6504 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
6505 | ||
6506 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
6507 | ||
7b6bb8da JB |
6508 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
6509 | ||
6510 | Copyright year update in most files (performed by copyright.sh). | |
6511 | ||
71ce852c JB |
6512 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
6513 | ||
6514 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 6515 | |
c3c1ebe8 | 6516 | For older changes see ChangeLog-2010. |
c906108c SS |
6517 | \f |
6518 | Local Variables: | |
6519 | mode: change-log | |
6520 | left-margin: 8 | |
6521 | fill-column: 74 | |
6522 | version-control: never | |
57da7796 | 6523 | coding: utf-8 |
c906108c | 6524 | End: |