Commit | Line | Data |
---|---|---|
f6eeced0 JK |
1 | 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2 | ||
3 | * symfile.c (reread_symbols): Move free_objfile_separate_debug, | |
4 | preserve_values, sym_finish and clear_objfile_data calls before BFD | |
5 | close. Move free_objfile_separate_debug as the very first call. New | |
6 | comment on the ordering. | |
7 | ||
8de7d199 UW |
8 | 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com> |
9 | ||
10 | * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit | |
11 | in return PSWA. | |
12 | ||
984ac464 TT |
13 | 2011-12-19 Tom Tromey <tromey@redhat.com> |
14 | ||
15 | * symtab.h (add_minsym_to_hash_table): Don't declare. | |
16 | * minsyms.c (add_minsym_to_hash_table): Now static. | |
17 | ||
828cfa8d JB |
18 | 2011-12-19 Joel Brobecker <brobecker@adacore.com> |
19 | ||
20 | * elfread.c (elf_symtab_read): Ignore undefined symbols with | |
21 | nonzero addresses if they do not correspond to a .plt section | |
22 | when one is available in the objfile. | |
23 | ||
dd274a34 AS |
24 | 2011-12-17 Andreas Schwab <schwab@linux-m68k.org> |
25 | ||
26 | * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use | |
27 | obstack_empty_p. | |
28 | ||
a3e3e961 MK |
29 | 2011-12-17 Mark Kettenis <kettenis@gnu.org> |
30 | ||
31 | * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set | |
32 | regset_from_core_section. | |
33 | (amd64obsd_core_init_abi): New function that sets | |
34 | regset_from_core_section. | |
35 | (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for | |
36 | traditional core dumps. | |
37 | ||
0dcddd84 MK |
38 | 2011-12-17 Mark Kettenis <kettenis@gnu.org> |
39 | ||
40 | * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal | |
41 | trampoline to be introduced in OpenBSD 5.0. | |
42 | ||
3e290cb1 JK |
43 | 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
44 | ||
45 | Fix build regression from the PR threads/10729 fix. | |
46 | * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP, | |
47 | not LP->PTID. | |
48 | ||
56934ab1 AS |
49 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
50 | ||
51 | * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and | |
52 | `optarg' to `oind' and `oarg', respectively(-Wshadow). | |
53 | (mi_cmd_data_read_memory): Ditto. | |
54 | (mi_cmd_data_read_memory_bytes): Ditto. | |
55 | (mi_cmd_data_write_memory): Ditto. | |
56 | ||
324478ca AS |
57 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
58 | ||
59 | * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to | |
60 | `oind' and `oarg', respectively(-Wshadow). | |
61 | (mi_valid_noargs): Ditto. | |
62 | ||
54dc8297 AS |
63 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
64 | ||
65 | * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to | |
66 | `oind' and `oarg', respectively(-Wshadow). | |
67 | ||
00629212 AS |
68 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
69 | ||
70 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and | |
71 | `optarg' to `oind' and `oarg', respectively(-Wshadow). | |
72 | (mi_cmd_target_file_put): Ditto. | |
73 | (mi_cmd_target_file_delete): Ditto. | |
74 | ||
7082409d AS |
75 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
76 | ||
77 | * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and | |
78 | `optarg' to `oind' and `oarg', respectively(-Wshadow). | |
79 | (mi_cmd_env_dir): Ditto. | |
80 | ||
81 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> | |
81493c62 | 82 | |
7082409d AS |
83 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and |
84 | `optarg' to `oind' and `oarg', respectively(-Wshadow). | |
81493c62 | 85 | |
f8c000a2 AS |
86 | 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com> |
87 | ||
88 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and | |
81493c62 | 89 | `optparg' to `oind' and `oarg', respectively(-Wshadow). |
f8c000a2 AS |
90 | (mi_cmd_break_watch): Ditto. |
91 | ||
07fea4b4 TT |
92 | 2011-12-16 Tom Tromey <tromey@redhat.com> |
93 | ||
94 | * linespec.c (collect_symbols): Call maybe_add_address after | |
95 | calling symbol_to_sal. | |
96 | (minsym_found): Call maybe_add_address here. | |
97 | (search_minsyms_for_name): Don't call maybe_add_address. | |
98 | ||
39b856a4 TT |
99 | 2011-12-16 Tom Tromey <tromey@redhat.com> |
100 | ||
101 | * linespec.c (struct collect_info) <objfile>: Remove field. | |
102 | (decode_objc): Update. | |
103 | (find_method): Update. | |
104 | (decode_variable): Update. | |
105 | (struct minsym_and_objfile): New. | |
106 | (struct collect_minsyms): New. | |
107 | (classify_mtype): New function. | |
108 | (compare_msyms): Likewise. | |
109 | (add_minsym): Likewise. | |
110 | (check_minsym): Remove. | |
111 | (search_minsyms_for_name): Sort minsyms and apply only those with | |
112 | top priority. | |
113 | ||
ccbac09d TT |
114 | 2011-12-16 Tom Tromey <tromey@redhat.com> |
115 | ||
116 | * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. | |
117 | ||
77cce10f PA |
118 | 2011-12-16 Pedro Alves <pedro@codesourcery.com> |
119 | ||
120 | * inf-loop.c: Include top.h. | |
121 | (inferior_event_handler): Call check_frame_language. | |
122 | * top.c (check_frame_language_change): New, factored out from ... | |
123 | (execute_command): ... this. Use check_frame_language_change. | |
124 | * top.h (check_frame_language_change): Declare. | |
125 | ||
a961bc18 PM |
126 | 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix) |
127 | ||
128 | * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing | |
129 | prototypes. | |
130 | ||
e0f9f062 DE |
131 | 2011-12-16 Doug Evans <dje@google.com> |
132 | ||
133 | * NEWS: Add entry for stdio gdbserver. | |
134 | ||
80b6e756 PM |
135 | 2011-12-16 Phil Muldoon <pmuldoon@redhat.com> |
136 | ||
137 | * python/python.c: Define python_excp_enums. | |
138 | (eval_python_from_control_command): Do not call gdbpy_print_stack. | |
139 | (python_command): Ditto. | |
140 | (gdbpy_print_stack): Rewrite to use new enum constants. | |
141 | (maint_set_python): Remove function. | |
142 | (maint_show_python): Ditto. | |
143 | (_initialize_python): Do not add "maint" commands. Add "set/show | |
144 | python print-stack commands". | |
145 | * NEWS: Update to reflect removal for "maint set/show | |
146 | print-stack" | |
147 | ||
ef140872 DE |
148 | 2011-12-15 Doug Evans <dje@google.com> |
149 | ||
150 | * exceptions.c (catcher_list_size): New function. | |
151 | (last_message): Delete. | |
152 | (exception_messages, exception_messages_size): New static globals. | |
153 | (throw_it): Use exception_messages array to handle nested calls. | |
154 | ||
b5b445a3 TT |
155 | 2011-12-15 Tom Tromey <tromey@redhat.com> |
156 | ||
157 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad | |
158 | do_cleanups call. | |
159 | ||
0b6cb71e DE |
160 | 2011-12-14 Doug Evans <dje@google.com> |
161 | ||
162 | * defs.h (wait_to_die_with_timeout): Declare. | |
163 | * utils.c: #include "gdb_wait.h". | |
164 | (sigalrm_handler, wait_to_die_with_timeout): New functions. | |
165 | * ser-pipe.c: Don't #include "gdb_wait.h". | |
166 | (pipe_close): Give child a chance to die on its own after closing | |
167 | its stdin before SIGTERM'ing it. | |
168 | ||
6475f2fe | 169 | 2011-12-14 Joel Brobecker <brobecker@adacore.com> |
afaabefa | 170 | Tom Tromey <tromey@redhat.com> |
6475f2fe JB |
171 | |
172 | * ada-lang.c (add_nonlocal_symbols): Initialize data to | |
173 | all zeros. Remove setting of data.arg_sym to NULL. | |
174 | ||
7b50312a PA |
175 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
176 | ||
177 | PR threads/10729 | |
178 | ||
179 | * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp | |
180 | pointer. | |
181 | (linux_nat_prepare_to_resume): New global. | |
182 | (lwp_free): New. | |
183 | (purge_lwp_list): Use it. | |
184 | (add_lwp): Call linux_nat_new_thread even on the first LWP. | |
185 | Adjust to interface change. | |
186 | (delete_lwp): Call lwp_free instead of xfree. | |
187 | (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume) | |
188 | (linux_handle_syscall_trap, linux_handle_extended_wait) | |
189 | (linux_nat_filter_event, resume_stopped_resumed_lwps): Call | |
190 | linux_nat_prepare_to_resume before resuming. | |
191 | (linux_stop_lwp): New. | |
192 | (linux_nat_set_new_thread): Adjust. | |
193 | (linux_nat_set_prepare_to_resume): New. | |
194 | * linux-nat.h (struct arch_lwp_info): Forward declare. | |
195 | (struct lwp_info) <arch_private>: New field. | |
196 | (linux_stop_lwp): Declare. | |
197 | (linux_nat_set_new_thread): Adjust. | |
198 | (linux_nat_set_prepare_to_resume): New. | |
199 | ||
200 | * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL) | |
201 | (struct i386_debug_reg_state): Move to i386-nat.h. | |
202 | (dr_mirror): Comment. | |
203 | (i386_debug_reg_state): New. | |
204 | (i386_update_inferior_debug_regs): Simplify. | |
205 | (i386_stopped_data_address): Use the debug register state from the | |
206 | inferior, not from the local cache. | |
207 | * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and | |
208 | unset_status fields. New get_addr and get_control fields. | |
209 | (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c. | |
210 | (DR_NADDR, DR_STATUS): New. | |
211 | (struct i386_debug_reg_state): Moved from i386-nat.c. | |
212 | ||
213 | * amd64-linux-nat.c (struct arch_lwp_info): New. | |
214 | (amd64_linux_dr): Delete global. | |
215 | (amd64_linux_dr_get_addr): New. | |
216 | (amd64_linux_dr_get_control): New. | |
217 | (amd64_linux_dr_unset_status): Delete. | |
218 | (amd64_linux_dr_set_addr): Reimplement. | |
219 | (amd64_linux_dr_reset_addr): Delete. | |
220 | (update_debug_registers_callback): New. | |
221 | (amd64_linux_dr_set_control): Reimplement. | |
222 | (amd64_linux_dr_set_addr): Reimplement. | |
223 | (amd64_linux_prepare_to_resume): New. | |
224 | (amd64_linux_new_thread): Change parameter to an lwp pointer. | |
225 | Reimplement. | |
226 | (_initialize_amd64_linux_nat): No longer install | |
227 | i386_dr_low.reset_addr and i386_dr_low.unset_status. Install | |
228 | amd64_linux_dr_get_control as i386_dr_low.get_control. Install | |
229 | amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install | |
230 | amd64_linux_prepare_to_resume. | |
231 | * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) | |
232 | (DR_CONTROL): Delete. | |
233 | (struct arch_lwp_info): New. | |
234 | (i386_linux_dr): Delete global. | |
235 | (i386_linux_dr_set_control): Reimplement. | |
236 | (i386_linux_dr_get_addr): New. | |
237 | (i386_linux_dr_set_addr): Reimplement. | |
238 | (i386_linux_dr_get_control): New. | |
239 | (update_debug_registers_callback): New. | |
240 | (i386_linux_dr_unset_status): Delete. | |
241 | (i386_linux_dr_set_addr): Reimplement. | |
242 | (i386_linux_prepare_to_resume): New. | |
243 | (i386_linux_new_thread): Change parameter to an lwp pointer. | |
244 | Reimplement. | |
245 | (_initialize_i386_linux_nat): No longer install | |
246 | i386_dr_low.reset_addr and i386_dr_low.unset_status. Install | |
247 | i386_linux_dr_get_control as i386_dr_low.get_control. Install | |
248 | i386_linux_dr_get_addr as i386_dr_low.get_addr. Install | |
249 | i386_linux_prepare_to_resume. | |
250 | ||
251 | * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an | |
252 | lwp pointer. Adjust. | |
253 | * ia64-linux-nat.c (ia64_linux_new_thread): Likewise. | |
254 | * mips-linux-nat.c (mips_linux_new_thread): Likewise. | |
255 | * ppc-linux-nat.c (ppc_linux_new_thread): Likewise. | |
256 | * s390-nat.c (s390_fix_watch_points): Likewise. | |
257 | ||
258 | * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) | |
259 | (DR_CONTROL): Delete. | |
260 | (i386_darwin_dr_reset_addr): Delete. | |
261 | (i386_darwin_dr_get_addr): New. | |
262 | (i386_darwin_dr_get_control): New. | |
263 | * go32-nat.c | |
264 | (go32_get_dr7, go32_get_dr): New. | |
265 | (init_go32_ops): No longer install i386_dr_low.reset_addr. | |
266 | Install go32_get_dr7 as i386_dr_low.get_control. Install | |
267 | go32_get_dr as i386_dr_low.get_addr. | |
268 | * i386bsd-nat.c (i386bsd_dr_get): New. | |
269 | (i386bsd_dr_reset_addr): Delete. | |
270 | (i386bsd_dr_get_addr): New. | |
271 | (i386bsd_dr_get_status): Use i386bsd_dr_get. | |
272 | (i386bsd_dr_get_control): New. | |
273 | * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete. | |
274 | (i386bsd_dr_get_addr): New. | |
275 | (i386bsd_dr_get_control): New. | |
276 | * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install | |
277 | i386_dr_low.reset_addr and i386_dr_low.unset_status. Install | |
278 | i386bsd_dr_get_control as i386_dr_low.get_control. Install | |
279 | i386bsd_dr_get_addr as i386_dr_low.get_addr. | |
280 | * windows-nat.c (init_windows_ops): No longer install | |
281 | i386_dr_low.reset_addr and i386_dr_low.unset_status. Install | |
282 | cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr | |
283 | as i386_dr_low.get_addr. | |
284 | (cygwin_get_dr): New. | |
285 | (cygwin_get_dr7): New. | |
286 | ||
dd110abf PA |
287 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
288 | ||
289 | * ia64-tdep.c (ia64_memory_remove_breakpoint): Use | |
290 | target_write_raw_memory. | |
291 | * m32r-tdep.c (m32r_memory_remove_breakpoint): Use | |
292 | target_write_raw_memory. | |
293 | * microblaze-linux-tdep.c | |
294 | (microblaze_linux_memory_remove_breakpoint): Use | |
295 | target_write_raw_memory. | |
296 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use | |
297 | target_write_raw_memory. | |
298 | ||
ad32032e JB |
299 | 2011-12-14 Joel Brobecker <brobecker@adacore.com> |
300 | ||
301 | * linespec.c (decode_line_internal): Make static. | |
302 | ||
d14c4eb7 YQ |
303 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
304 | ||
305 | * breakpoint.c (create_breakpoint): Set canonical.addr_string | |
306 | for static tracepoint. | |
307 | ||
25564b66 | 308 | 2011-12-13 Joel Brobecker <brobecker@adacore.com> |
309 | ||
310 | GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC) | |
311 | * version.in: Bump version to 7.4.50.20111213-cvs. | |
312 | ||
8837a20f JB |
313 | 2011-12-13 Joel Brobecker <brobecker@adacore.com> |
314 | ||
315 | * NEWS: Create a new section for the next release branch. | |
316 | Rename the section of the current branch, now that it has | |
317 | been cut. | |
318 | ||
7dda8cff JB |
319 | 2011-12-11 Joel Brobecker <brobecker@adacore.com> |
320 | ||
321 | * ada-lang.c (ada_exception_support_info_sniffer): Improve | |
322 | error message. | |
323 | ||
3eecfa55 JB |
324 | 2011-12-11 Joel Brobecker <brobecker@adacore.com> |
325 | ||
326 | * ada-lang.c (struct ada_inferior_data) [exception_info]: | |
327 | New field. | |
328 | (exception_info): Delete. | |
329 | (ada_exception_support_info_sniffer): Get exception_support_info | |
330 | data from our per-inferior data. Adjust code accordingly. | |
331 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
332 | (ada_exception_name_addr_1, ada_exception_sym_name): Ditto. | |
333 | (ada_executable_changed_observer): Delete. | |
334 | (_initialize_ada_language): Remove call to | |
335 | observer_attach_executable_changed. | |
336 | ||
a6af7abe JB |
337 | 2011-12-11 Joel Brobecker <brobecker@adacore.com> |
338 | ||
339 | * ada-lang.c (ada_has_this_exception_support): Raise an error | |
340 | if we could find the Ada exception hook in the Ada runtime, | |
341 | but no debugging info for that hook. | |
342 | ||
f17011e0 JB |
343 | 2011-12-11 Joel Brobecker <brobecker@adacore.com> |
344 | ||
345 | * ada-lang.c (ada_has_this_exception_support): New function, | |
346 | extracted out of ada_exception_sal and ada_exception_sal. | |
347 | (ada_exception_support_info_sniffer): Simplify by using | |
348 | ada_has_this_exception_support. | |
349 | (ada_exception_sal): Replace unnecessary checks by assertions. | |
350 | Minor simplifications. | |
351 | ||
d3fbdd86 AS |
352 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
353 | ||
354 | * breakpoint.c (update_global_location_list): Remove nested | |
355 | definition of `b'(-Wshadow). | |
356 | ||
eacd795a AS |
357 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
358 | ||
359 | * breakpoint.c (insert_breakpoint_locations): Rename `error' to | |
360 | `error_flag'(-Wshadow). | |
361 | ||
ad13d8df AS |
362 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
363 | ||
364 | * bfd-target.c (target_bfd_reopen): Rename `bfd' to | |
365 | `abfd'(-Wshadow). | |
366 | ||
917793af AS |
367 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
368 | ||
369 | * annotate.c (annotate_array_section_begin): Rename `index' to | |
370 | `idx'(-Wshadow). | |
371 | ||
d48ebb5b AS |
372 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
373 | ||
374 | * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to | |
375 | `idx'(-Wshadow). | |
376 | ||
9ed936ec AS |
377 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
378 | ||
379 | * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename | |
380 | `syscall' to `syscall_number'(-Wshadow). | |
381 | ||
a35ddb44 AS |
382 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
383 | ||
384 | * ada-lang.c (remove_extra_symbols): Rename `remove' to | |
385 | `remove_p'(-Wshadow). | |
386 | ||
e5e61bd7 AS |
387 | 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com> |
388 | ||
389 | * ada-exp.y (write_var_or_type): Rename nested `renaming' to | |
390 | `ren_sym'(-Wshadow). | |
391 | ||
d200ab1e DE |
392 | 2011-12-10 Doug Evans <dje@google.com> |
393 | ||
b0df02fd DE |
394 | * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to |
395 | debug_types_section. All uses updated. | |
396 | (partial_read_comp_unit_head): Rename parameter is_debug_type_section | |
397 | to is_debug_types_section. | |
398 | ||
d200ab1e DE |
399 | * python/py-auto-load.c (source_section_scripts): Call xfree |
400 | instead of free. | |
401 | ||
4511b1ba YQ |
402 | 2011-12-10 Hui Zhu <teawater@gmail.com> |
403 | Yao Qi <yao@codesourcery.com> | |
404 | ||
405 | * tracepoint.c (start_tracing): Clear `inserted' flag. | |
406 | ||
df5a4bd3 HZ |
407 | 2011-12-10 Hui Zhu <teawater@gmail.com> |
408 | ||
409 | * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf. | |
410 | ||
1afeeb75 AS |
411 | 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com> |
412 | ||
413 | * breakpoint.c (bp_loc_is_permanent): Rename `brk' to | |
414 | `bpoint'(-Wshadow). | |
415 | ||
80e1d417 AS |
416 | 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com> |
417 | ||
418 | * breakpoint.c (update_static_tracepoint): Rename nested `sal' and | |
419 | `marker' variables to `sal2' and `tpmarker' respectively | |
420 | (-Wshadow). | |
421 | ||
04ca3c22 AP |
422 | 2011-12-09 Andrew Pinski <apinski@cavium.com> |
423 | ||
424 | * linespec.c (hash_address_entry): Use iterative_hash_object on each | |
425 | field rather than the struct itself. | |
426 | ||
8a2c437b TT |
427 | 2011-12-09 Tom Tromey <tromey@redhat.com> |
428 | ||
429 | * breakpoint.c (compare_breakpoints): New function. | |
430 | (clear_command): Remove duplicate breakpoints. Properly clean | |
431 | up. | |
432 | ||
280711e7 MR |
433 | 2011-12-08 Maciej W. Rozycki <macro@mips.com> |
434 | Maciej W. Rozycki <macro@codesourcery.com> | |
435 | ||
436 | * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend | |
437 | address chunks retrieved from decoded lui/addiu pairs. | |
438 | ||
4c2051c6 MR |
439 | 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com> |
440 | ||
441 | * mips-tdep.c (extended_offset): Correct calculation. | |
442 | (unpack_mips16): Correct bitfield positions used for extraction | |
443 | of the immediate argument; fix sign-extension of same. | |
444 | (extended_mips16_next_pc): Correct B instruction's offset | |
445 | calculation. Correct register decoding of the BEQZ and BNEZ | |
446 | as well as jump-register instructions. Handle compact jumps. | |
447 | ||
ff011ed7 TT |
448 | 2011-12-08 Tom Tromey <tromey@redhat.com> |
449 | ||
450 | * objfiles.h (struct objfile): Remove obsolete comment. | |
451 | * objfiles.c (build_objfile_section_table): Remove obsolete | |
452 | comment. | |
453 | ||
7cd3876c SS |
454 | 2011-12-07 Stan Shebs <stan@codesourcery.com> |
455 | ||
456 | * MAINTAINERS (Responsible Maintainers): Add Yao Qi as | |
457 | maintainer of the tic6x target. | |
458 | ||
35f73cfc UW |
459 | 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
460 | ||
461 | * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype. | |
462 | * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function. | |
463 | (arm_deal_with_atomic_sequence_raw): Likewise. | |
464 | (arm_deal_with_atomic_sequence): Likewise. | |
465 | (arm_software_single_step): Call it. | |
466 | * arm-linux-tdep.c (arm_linux_software_single_step): Likewise. | |
467 | ||
94eae614 UW |
468 | 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com> |
469 | ||
470 | * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments | |
471 | where appropriate. | |
472 | * s390-tdep.h: Likewise. | |
473 | ||
13b8d0c6 TG |
474 | 2011-12-07 Tristan Gingold <gingold@adacore.com> |
475 | ||
476 | * machoread.c (macho_symtab_read): Do not consider N_OPT as | |
477 | a debugging stab. Improve complaint message. | |
478 | ||
5436df95 MR |
479 | 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com> |
480 | ||
481 | * mips-tdep.c (mips32_scan_prologue): Only update the immediate | |
482 | load adjustment if still within the prologue. | |
483 | ||
040dff2a MR |
484 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
485 | ||
486 | * mips-tdep.c (mips32_next_pc): Fix floating point condition | |
487 | code mask. | |
488 | ||
754d7c78 MR |
489 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
490 | ||
491 | * mips-tdep.c (deal_with_atomic_sequence): Fix the handling | |
492 | of BLTZ* and BGEZ* instructions. | |
493 | ||
91912e4d MR |
494 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
495 | ||
496 | * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks | |
497 | performed to determine whether an address refers to standard | |
498 | MIPS or MIPS16 code. | |
499 | (mips16_next_pc): Use mips_pc_is_mips16 instead of | |
500 | is_mips16_addr. | |
501 | ||
f0ba3972 PA |
502 | 2011-12-06 Pedro Alves <pedro@codesourcery.com> |
503 | ||
504 | * breakpoint.c (breakpoint_restore_shadows): Rename to ... | |
505 | (breakpoint_xfer_memory): ... this. Change prototype. Handle | |
506 | memory writes too. | |
507 | * breakpoint.h (breakpoint_restore_shadows): Delete. | |
508 | (breakpoint_xfer_memory): Declare. | |
509 | * mem-break.c (default_memory_insert_breakpoint) | |
510 | (default_memory_remove_breakpoint): Use target_write_raw_memory. | |
511 | (memory_xfer_partial): Rename to ... | |
512 | (memory_xfer_partial_1): ... this. Don't mask out breakpoints | |
513 | here. | |
514 | (memory_xfer_partial): New. | |
515 | (target_write_raw_memory): New. | |
516 | * target.h (target_write_raw_memory): New. | |
517 | ||
31aba06f DE |
518 | 2011-12-06 Doug Evans <dje@google.com> |
519 | ||
520 | * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning. | |
521 | ||
f8eba3c6 TT |
522 | 2011-12-06 Joel Brobecker <brobecker@acacore.com> |
523 | ||
524 | * language.h (struct language_defn): Add new component | |
525 | la_symbol_name_compare. | |
526 | * symfile.h (struct quick_symbol_functions): Update the profile | |
527 | of parameter "name_matcher" for the expand_symtabs_matching | |
528 | method. Update the documentation accordingly. | |
529 | * ada-lang.h (ada_name_for_lookup): Add declaration. | |
530 | * ada-lang.c (ada_name_for_lookup): New function, extracted out | |
531 | from ada_iterate_over_symbols. | |
532 | (ada_iterate_over_symbols): Do not encode symbol name anymore. | |
533 | (ada_expand_partial_symbol_name): Adjust profile. | |
534 | (ada_language_defn): Add value for la_symbol_name_compare field. | |
535 | * linespec.c: #include "ada-lang.h". | |
536 | (iterate_name_matcher): Add language parameter. Replace call | |
537 | to strcmp_iw by call to language->la_symbol_name_compare. | |
538 | (decode_variable): Encode COPY if current language is Ada. | |
539 | * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile | |
540 | of name_matcher parameter. Adjust call to name_matcher. | |
541 | * psymtab.c (expand_symtabs_matching_via_partial): Likewise. | |
542 | (expand_partial_symbol_names): Update profile of parameter "fun". | |
543 | * psymtab.h (expand_partial_symbol_names): Update profile of | |
544 | parameter "fun". | |
545 | * symtab.c (demangle_for_lookup): Update function documentation. | |
546 | (search_symbols_name_matches): Add language parameter. | |
547 | (expand_partial_symbol_name): Likewise. | |
548 | * c-lang.c (c_language_defn, cplus_language_defn) | |
549 | (asm_language_defn, minimal_language_defn): Add value for | |
550 | la_symbol_name_compare field. | |
551 | * d-lang.c (d_language_defn): Likewise. | |
552 | * f-lang.c (f_language_defn): Ditto. | |
553 | * jv-lang.c (java_language_defn): Ditto. | |
554 | * m2-lang.c (m2_language_defn): Ditto. | |
555 | * objc-lang.c (objc_language_defn): Ditto. | |
556 | * opencl-lang.c (opencl_language_defn): Ditto. | |
557 | * p-lang.c (pascal_language_defn): Ditto. | |
558 | * language.c (unknown_language_defn, auto_language_defn) | |
559 | (local_language_defn): Ditto. | |
560 | ||
561 | 2011-12-06 Tom Tromey <tromey@redhat.com> | |
562 | ||
563 | * linespec.c (iterate_over_all_matching_symtabs): Use | |
564 | LA_ITERATE_OVER_SYMBOLS. | |
565 | (lookup_prefix_sym, add_matching_symbols_to_info): Likewise. | |
566 | (find_function_symbols, decode_variable): Remove Ada special | |
567 | case. | |
568 | * language.h (struct language_defn) <la_iterate_over_symbols>: New | |
569 | field. | |
570 | (LA_ITERATE_OVER_SYMBOLS): New macro. | |
571 | * language.c (unknown_language_defn, auto_language_defn) | |
572 | (local_language_defn): Update. | |
573 | * c-lang.c (c_language_defn, cplus_language_defn) | |
574 | (asm_language_defn, minimal_language_defn): Update. | |
575 | * d-lang.c (d_language_defn): Update. | |
576 | * f-lang.c (f_language_defn): Update. | |
577 | * jv-lang.c (java_language_defn): Update. | |
578 | * m2-lang.c (m2_language_defn): Update. | |
579 | * objc-lang.c (objc_language_defn): Update. | |
580 | * opencl-lang.c (opencl_language_defn): Update. | |
581 | * p-lang.c (pascal_language_defn): Update. | |
582 | * ada-lang.c (ada_iterate_over_symbols): New function. | |
583 | (ada_language_defn): Update. | |
584 | ||
585 | 2011-12-06 Tom Tromey <tromey@redhat.com> | |
586 | Joel Brobecker <brobecker@acacore.com> | |
587 | ||
588 | PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366, | |
589 | PR objc/8535, PR breakpoints/11657, PR breakpoints/11970, | |
590 | PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856, | |
591 | PR shlibs/8929, PR shlibs/7393: | |
592 | * python/py-type.c (compare_maybe_null_strings): Rename from | |
593 | compare_strings. | |
594 | (check_types_equal): Update. | |
595 | * utils.c (compare_strings): New function. | |
596 | * tui/tui-winsource.c (tui_update_breakpoint_info): Update for | |
597 | location changes. | |
598 | * tracepoint.c (scope_info): Update. | |
599 | (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE. | |
600 | * symtab.h (iterate_over_minimal_symbols) | |
601 | (iterate_over_some_symtabs, iterate_over_symtabs) | |
602 | (find_pcs_for_symtab_line, iterate_over_symbols) | |
603 | (demangle_for_lookup): Declare. | |
604 | (expand_line_sal): Remove. | |
605 | * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs) | |
606 | (lookup_symtab_callback): New functions. | |
607 | (lookup_symtab): Rewrite. | |
608 | (demangle_for_lookup): New function, extract from | |
609 | lookup_symbol_in_language. | |
610 | (lookup_symbol_in_language): Use it. | |
611 | (iterate_over_symbols): New function. | |
612 | (find_line_symtab): Update. | |
613 | (find_pcs_for_symtab_line): New functions. | |
614 | (find_line_common): Add 'start' argument. | |
615 | (decode_line_spec): Update. Change argument to 'flags', change | |
616 | interpretation. | |
617 | (append_expanded_sal): Remove. | |
618 | (append_exact_match_to_sals): Remove. | |
619 | (expand_line_sal): Remove. | |
620 | * symfile.h (struct quick_symbol_functions) <lookup_symtab>: | |
621 | Remove. | |
622 | <map_symtabs_matching_filename>: New field. | |
623 | * stack.c (func_command): Only look in the current program space. | |
624 | Use DECODE_LINE_FUNFIRSTLINE. | |
625 | * source.c (line_info): Set pspace on sal. Check program space in | |
626 | the loop. Use DECODE_LINE_LIST_MODE. | |
627 | (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE. | |
628 | * solib-target.c: Remove DEF_VEC_I(CORE_ADDR). | |
629 | * python/python.c (gdbpy_decode_line): Update. | |
630 | * psymtab.c (partial_map_expand_apply): New function. | |
631 | (partial_map_symtabs_matching_filename): Rename from | |
632 | lookup_partial_symbol. Update arguments. | |
633 | (lookup_symtab_via_partial_symtab): Remove. | |
634 | (psym_functions): Update. | |
635 | * objc-lang.h (parse_selector, parse_method): Don't declare. | |
636 | (find_imps): Update. | |
637 | * objc-lang.c (parse_selector, parse_method): Now static. | |
638 | (find_methods): Change arguments. Fill in a vector of symbol | |
639 | names. | |
640 | (uniquify_strings): New function. | |
641 | (find_imps): Change arguments. | |
642 | * minsyms.c (iterate_over_minimal_symbols): New function. | |
643 | * linespec.h (enum decode_line_flags): New. | |
644 | (struct linespec_sals): New. | |
645 | (struct linespec_result) <canonical>: Remove. | |
646 | <pre_expanded, addr_string, sals>: New fields. | |
647 | (destroy_linespec_result, make_cleanup_destroy_linespec_result) | |
648 | (decode_line_full): Declare. | |
649 | (decode_line_1): Update. | |
650 | * linespec.c (struct address_entry, struct linespec_state, struct | |
651 | collect_info): New types. | |
652 | (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry) | |
653 | (eq_address_entry, maybe_add_address): New functions. | |
654 | (total_number_of_methods): Remove. | |
655 | (iterate_name_matcher, iterate_over_all_matching_symtabs): New | |
656 | functions. | |
657 | (find_methods): Change arguments. Don't canonicalize input. | |
658 | Simplify logic. | |
659 | (add_matching_methods, add_constructors) | |
660 | (build_canonical_line_spec): Remove. | |
661 | (filter_results, convert_results_to_lsals): New functions. | |
662 | (decode_line_2): Change arguments. Rewrite for new data | |
663 | structures. | |
664 | (decode_line_internal): Rename from decode_line_1. Change | |
665 | arguments. Add cleanups. Update for new data structures. | |
666 | (linespec_state_constructor, linespec_state_destructor) | |
667 | (decode_line_full, decode_line_1): New functions. | |
668 | (decode_indirect): Change arguments. Update. | |
669 | (locate_first_half): Use skip_spaces. | |
670 | (decode_objc): Change arguments. Update for new data structures. | |
671 | Simplify logic. | |
672 | (decode_compound): Change arguments. Add cleanups. Remove | |
673 | fallback code, replace with error. | |
674 | (struct decode_compound_collector): New type. | |
675 | (collect_one_symbol): New function. | |
676 | (lookup_prefix_sym): Change arguments. Update. | |
677 | (compare_symbol_name, add_all_symbol_names_from_pspace) | |
678 | (find_superclass_methods ): New functions. | |
679 | (find_method): Rewrite. | |
680 | (struct symtab_collector): New type. | |
681 | (add_symtabs_to_list, collect_symtabs_from_filename): New | |
682 | functions. | |
683 | (symtabs_from_filename): Change API. Rename from | |
684 | symtab_from_filename. | |
685 | (collect_function_symbols): New function. | |
686 | (find_function_symbols): Change API. Rename from | |
687 | find_function_symbol. Rewrite. | |
688 | (decode_all_digits): Change arguments. Rewrite. | |
689 | (decode_dollar): Change arguments. Use decode_variable. | |
690 | (decode_label): Change arguments. Rewrite. | |
691 | (collect_symbols): New function. | |
692 | (minsym_found): Change arguments. Rewrite. | |
693 | (check_minsym, search_minsyms_for_name) | |
694 | (add_matching_symbols_to_info): New function. | |
695 | (decode_variable): Change arguments. Iterate over all symbols. | |
696 | (symbol_found): Remove. | |
697 | (symbol_to_sal): New function. | |
698 | (init_linespec_result, destroy_linespec_result) | |
699 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
700 | New functions. | |
701 | (decode_digits_list_mode, decode_digits_ordinary): New functions. | |
702 | * dwarf2read.c (dw2_map_expand_apply): New function. | |
703 | (dw2_map_symtabs_matching_filename): Rename from | |
704 | dw2_lookup_symtab. Change arguments. | |
705 | (dwarf2_gdb_index_functions): Update. | |
706 | * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR). | |
707 | * defs.h (compare_strings): Declare. | |
708 | * cli/cli-cmds.c (compare_strings): Move to utils.c. | |
709 | (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call | |
710 | filter_sals. | |
711 | (compare_symtabs, filter_sals): New functions. | |
712 | * breakpoint.h (struct bp_location) <line_number, source_file>: | |
713 | New fields. | |
714 | (struct breakpoint) <line_number, source_file>: Remove. | |
715 | <filter>: New field. | |
716 | * breakpoint.c (print_breakpoint_location, init_raw_breakpoint) | |
717 | (momentary_breakpoint_from_master, add_location_to_breakpoint): | |
718 | Update for changes to locations. | |
719 | (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on | |
720 | breakpoint. | |
721 | (create_breakpoint_sal): Add 'filter' argument. | |
722 | (remove_sal, expand_line_sal_maybe): Remove. | |
723 | (create_breakpoints_sal): Remove 'sals' argument. Handle | |
724 | pre-expanded sals and the filter. | |
725 | (parse_breakpoint_sals): Use decode_line_full. | |
726 | (check_fast_tracepoint_sals): Use get_sal_arch. | |
727 | (create_breakpoint): Create a linespec_sals. Update. | |
728 | (break_range_command): Use decode_line_full. Update. | |
729 | (until_break_command): Update. | |
730 | (clear_command): Update match conditions for linespec.c changes. | |
731 | Use DECODE_LINE_LIST_MODE. | |
732 | (say_where): Update for changes to locations. | |
733 | (bp_location_dtor): Free 'source_file'. | |
734 | (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'. | |
735 | (update_static_tracepoint): Update for changes to locations. | |
736 | (update_breakpoint_locations): Disable ranged breakpoint if too | |
737 | many locations match. Update. | |
738 | (addr_string_to_sals): Use decode_line_full. Resolve all sal | |
739 | PCs. | |
740 | (breakpoint_re_set_default): Don't call expand_line_sal_maybe. | |
741 | (decode_line_spec_1): Update. Change argument name to 'flags', | |
742 | change interpretation. | |
743 | * block.h (block_containing_function): Declare. | |
744 | * block.c (block_containing_function): New function. | |
745 | * skip.c (skip_function_command): Update. | |
746 | (skip_re_set): Update. | |
747 | * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE. | |
748 | * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE. | |
749 | * NEWS: Add entry. | |
750 | ||
751 | 2011-12-06 Tom Tromey <tromey@redhat.com> | |
752 | ||
753 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow | |
754 | breakpoint's pspace to be NULL. | |
755 | * breakpoint.h (struct breakpoint) <pspace>: Update comment. | |
756 | * breakpoint.c (init_raw_breakpoint): Conditionally set | |
757 | breakpoint's pspace. | |
758 | (init_breakpoint_sal): Don't set breakpoint's pspace. | |
759 | (prepare_re_set_context): Conditionally switch program space. | |
760 | (addr_string_to_sals): Check executing_startup on location's | |
761 | program space. | |
762 | ||
763 | 2011-12-06 Tom Tromey <tromey@redhat.com> | |
764 | ||
765 | * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove. | |
766 | * breakpoint.c (should_be_inserted): Explicitly check if program | |
767 | space is executing startup. | |
768 | (describe_other_breakpoints): Update. | |
769 | (disable_breakpoints_before_startup): Change executing_startup | |
770 | earlier. Remove loop. | |
771 | (enable_breakpoints_after_startup): Likewise. | |
772 | (init_breakpoint_sal): Don't use bp_startup_disabled. | |
773 | (create_breakpoint): Don't use bp_startup_disabled. | |
774 | (update_global_location_list): Use should_be_inserted. | |
775 | (bkpt_re_set): Update. | |
776 | ||
75c8c9d7 TT |
777 | 2011-12-06 Tom Tromey <tromey@redhat.com> |
778 | ||
779 | * python/lib/gdb/command/pretty_printers.py | |
780 | (InfoPrettyPrinter.invoke1): Remove extra double quote. | |
781 | ||
7376e450 TT |
782 | 2011-12-06 Tom Tromey <tromey@redhat.com> |
783 | ||
784 | * NEWS: Add MI news. | |
785 | ||
c642a434 UW |
786 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
787 | ||
788 | * s390-tdep.h (S390_ORIG_R2_REGNUM): Define. | |
789 | (S390_LAST_BREAK_REGNUM): Likewise. | |
790 | (S390_SYSTEM_CALL_REGNUM): Likewise. | |
791 | (S390_NUM_REGS): Update. | |
792 | ||
793 | (s390_regmap_last_break): Add declaration. | |
794 | (s390x_regmap_last_break): Likewise. | |
795 | (s390_regmap_system_call): Likewise. | |
796 | ||
797 | (tdesc_s390_linux32v1): Add declaration. | |
798 | (tdesc_s390_linux32v2): Likewise. | |
799 | (tdesc_s390_linux64v1): Likewise. | |
800 | (tdesc_s390_linux64v2): Likewise. | |
801 | (tdesc_s390x_linux64v1): Likewise. | |
802 | (tdesc_s390x_linux64v2): Likewise. | |
803 | ||
804 | * s390-tdep.c: Include new target description files | |
805 | "features/s390-linux32v1.c", "features/s390-linux32v2.c", | |
806 | "features/s390-linux64v1.c", "features/s390-linux64v2.c", | |
807 | "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c". | |
808 | (s390_cannot_store_register): New function. | |
809 | (s390_write_pc): Likewise. | |
810 | (s390_dwarf_regmap): Add fields for new registers. | |
811 | (s390_regmap_gregset): Likewise. | |
812 | (s390x_regmap_gregset): Likewise. | |
813 | (s390_regmap_fpregset): Likewise. | |
814 | (s390_regmap_upper): Likewise. | |
815 | (s390_regmap_last_break): New variable. | |
816 | (s390x_regmap_last_break): Likewise. | |
817 | (s390_regmap_system_call): Likewise. | |
818 | (s390_last_break_regset): Likewise. | |
819 | (s390x_last_break_regset): Likewise. | |
820 | (s390_system_call_regset): Likewise. | |
821 | (s390_upper_regset_sections): Rename to ... | |
822 | (s390_linux64_regset_sections): ... this. | |
823 | (s390_linux32_regset_sections): New variable. | |
824 | (s390x_linux64_regset_sections): Likewise. | |
825 | (s390_linux32v1_regset_sections): Likewise. | |
826 | (s390_linux32v2_regset_sections): Likewise. | |
827 | (s390_linux64v1_regset_sections): Likewise. | |
828 | (s390_linux64v2_regset_sections): Likewise. | |
829 | (s390x_linux64v1_regset_sections): Likewise. | |
830 | (s390x_linux64v2_regset_sections): Likewise. | |
831 | (s390_regset_from_core_section): Handle .reg-s390-last-break and | |
832 | .reg-s390-system-call core file sections. | |
833 | (s390_core_read_description): Check for presence of | |
834 | .reg-s390-last-break and .reg-s390-system-call core file | |
835 | sections and return appropriate target description. | |
836 | (s390_gdbarch_init): Detect Linux-specific registers "orig_r2", | |
837 | "last_break" and "system_call" in target description. Install | |
838 | appropriate gdbarch_core_regset_sections array. | |
839 | Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc. | |
840 | (_initialize_s390_tdep): Initialize additional target descriptions. | |
841 | ||
842 | * s390-nat.c: Include "elf/common.h". | |
843 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
844 | (have_regset_last_break): New static variable. | |
845 | (have_regset_system_call): Likewise. | |
846 | (s390_native_supply): Handle S390_ORIG_R2_REGNUM. | |
847 | (s390_native_collect): Likewise. | |
848 | (fetch_regset, store_regset, check_regset): New functions. | |
849 | (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM | |
850 | and S390_SYSTEM_CALL_REGNUM. | |
851 | (s390_linux_store_inferior_registers): Likewise. | |
852 | (s390_read_description): Check for presence of NT_S390_LAST_BREAK | |
853 | and NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
854 | ||
855 | * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1, | |
856 | s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2. | |
857 | (s390-linux32v1-expedite): Define. | |
858 | (s390-linux32v2-expedite): Likewise. | |
859 | (s390-linux64v1-expedite): Likewise. | |
860 | (s390-linux64v2-expedite): Likewise. | |
861 | (s390x-linux64v1-expedite): Likewise. | |
862 | (s390x-linux64v2-expedite): Likewise. | |
863 | ||
864 | * features/s390-linux32.xml: Add orig_r2 register. | |
865 | * features/s390-linux64.xml: Likewise. | |
866 | * features/s390x-linux64.xml: Likewise. | |
867 | * features/s390-linux32v1.xml: New file. | |
868 | * features/s390-linux32v2.xml: Likewise. | |
869 | * features/s390-linux64v1.xml: Likewise. | |
870 | * features/s390-linux64v2.xml: Likewise. | |
871 | * features/s390x-linux64v1.xml: Likewise. | |
872 | * features/s390x-linux64v2.xml: Likewise. | |
873 | ||
874 | * features/s390-linux32.c: Regenerate. | |
875 | * features/s390-linux64.c: Likewise. | |
876 | * features/s390x-linux64.c: Likewise. | |
877 | * features/s390-linux32v1.c: New generated file. | |
878 | * features/s390-linux32v2.c: Likewise. | |
879 | * features/s390-linux64v1.c: Likewise. | |
880 | * features/s390-linux64v2.c: Likewise. | |
881 | * features/s390x-linux64v1.c: Likewise. | |
882 | * features/s390x-linux64v2.c: Likewise. | |
883 | ||
884 | * regformats/s390-linux32.dat: Regenerate. | |
885 | * regformats/s390-linux64.dat: Regenerate. | |
886 | * regformats/s390x-linux64.dat: Regenerate. | |
887 | * regformats/s390-linux32v1.dat: New generated file. | |
888 | * regformats/s390-linux32v2.dat: Likewise. | |
889 | * regformats/s390-linux64v1.dat: Likewise. | |
890 | * regformats/s390-linux64v2.dat: Likewise. | |
891 | * regformats/s390x-linux64v1.dat: Likewise. | |
892 | * regformats/s390x-linux64v2.dat: Likewise. | |
893 | ||
336060f3 PA |
894 | 2011-12-05 Pedro Alves <pedro@codesourcery.com> |
895 | ||
896 | * linux-nat.c (resume_stopped_resumed_lwps): Call | |
897 | registers_changed. | |
898 | ||
049e32d3 PA |
899 | 2011-12-05 Pedro Alves <pedro@codesourcery.com> |
900 | ||
901 | * breakpoint.c: Include record.h. | |
902 | (breakpoints_always_inserted_mode): Return false when the record | |
903 | target is in use. | |
904 | ||
5c03c7f9 | 905 | 2011-12-05 Pedro Alves <pedro@codesourcery.com> |
482950ed PA |
906 | |
907 | * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment. | |
908 | Reinstate perror_with_name call on ptrace error. Remove #if 0. | |
909 | * i386-linux-nat.c (i386_linux_dr_get): Likewise. | |
910 | * i386bsd-nat.c (i386bsd_dr_get_status): Likewise. | |
911 | ||
fbbd034e AS |
912 | 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com> |
913 | ||
914 | * breakpoint.c (init_breakpoint_sal): Remove nested definitions of | |
915 | `i'(-Wshadow). | |
916 | ||
a5ff8356 | 917 | 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com> |
12747160 AS |
918 | |
919 | * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow). | |
920 | ||
921 | 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com> | |
922 | ||
a5ff8356 AS |
923 | * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition |
924 | of `tdep'(-Wshadow). | |
925 | ||
93f2a35e JK |
926 | 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
927 | ||
928 | Fix compilation --without-expat. | |
929 | * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here | |
930 | from ... | |
931 | [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here. | |
932 | ||
2268b414 JK |
933 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
934 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
935 | ||
936 | * Makefile.in (XMLFILES): Add library-list-svr4.dtd. | |
937 | * features/library-list-svr4.dtd: New file. | |
938 | * remote.c (PACKET_qXfer_libraries_svr4): New. | |
939 | (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4. | |
940 | (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4. | |
941 | * solib-svr4.c (struct svr4_library_list): New. | |
942 | [HAVE_LIBEXPAT]: Include xml-support.h. | |
943 | [HAVE_LIBEXPAT] (svr4_library_list_start_library) | |
944 | [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes) | |
945 | [HAVE_LIBEXPAT] (svr4_library_list_children) | |
946 | [HAVE_LIBEXPAT] (svr4_library_list_attributes) | |
947 | [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries) | |
948 | [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries) | |
949 | [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New. | |
950 | (svr4_read_so_list): Extend the corruption message by addresses. | |
951 | (svr4_current_sos): New variable library_list, call | |
952 | svr4_current_sos_via_xfer_libraries. | |
953 | * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4. | |
954 | ||
585861ea JK |
955 | 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
956 | ||
957 | PR threads/13448 | |
958 | * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u. | |
959 | For DW_OP_GNU_push_tls_address increment the value, new comment for it. | |
960 | ||
9750bca9 JK |
961 | 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
962 | ||
963 | PR breakpoints/13346 | |
964 | * dwarf2read.c (process_psymtab_comp_unit): Set | |
965 | PSYMTABS_ADDRMAP_SUPPORTED. | |
966 | * psympriv.h (struct partial_symtab): Comment textlow and texthigh | |
967 | validity. New field psymtabs_addrmap_supported. | |
968 | * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on | |
969 | psymtabs_addrmap_supported. | |
970 | (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for | |
971 | !PSYMTABS_ADDRMAP_SUPPORTED. | |
972 | (dump_psymtab, maintenance_info_psymtabs): Print also | |
973 | psymtabs_addrmap_supported. | |
974 | ||
f28c316a DE |
975 | 2011-12-01 Doug Evans <dje@google.com> |
976 | ||
977 | * python/py-type.c (type_object_methods): Fix "array" doc string. | |
978 | ||
fc0ae648 AB |
979 | 2011-12-01 Andrew Burgess <aburgess@broadcom.com> |
980 | ||
981 | * source.c (print_source_lines_base): Fix missing braces on else | |
982 | clause leading to additional output. | |
983 | ||
d6db1fab UW |
984 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
985 | ||
986 | * s390-nat.c (SUBOFF): Remove. | |
987 | (s390_native_supply, s390_native_collect): New functions. | |
988 | (supply_gregset, supply_fpregset): Use s390_native_supply. | |
989 | (fill_gregset, fill_fpregset): Use s390_native_collect. | |
990 | ||
991 | * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment. | |
992 | (s390_unwind_pseudo_register): New function. | |
993 | (s390_prologue_frame_unwind_cache): Unwind PSW address and mask | |
994 | registers instead of PC and CC. | |
995 | (s390_backchain_frame_unwind_cache): Likewise. | |
996 | (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or | |
997 | full GPR pseudos. | |
998 | (s390_trad_frame_prev_register): New function. | |
999 | (s390_frame_prev_register): Use it. | |
1000 | (s390_sigtramp_frame_prev_register): Likewise. | |
1001 | (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register. | |
1002 | (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use | |
1003 | special callback to unwind any pseudo. | |
1004 | ||
1005 | * features/s390-core32.xml: Add pswm/pswa to save/restore group. | |
1006 | * features/s390-core64.xml: Likewise. | |
1007 | * features/s390x-core64.xml: Likewise. | |
1008 | * features/s390-linux32.c: Regenerate. | |
1009 | * features/s390-linux64.c: Likewise. | |
1010 | * features/s390x-linux64.c: Likewise. | |
1011 | ||
1dd635ac UW |
1012 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
1013 | ||
1014 | * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type. | |
1015 | ||
0161e4b9 UW |
1016 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
1017 | ||
1018 | * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL | |
1019 | instruction. Add more diagnostic output. | |
1020 | ||
0c36327f AS |
1021 | 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com> |
1022 | ||
1023 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1024 | ||
b4264740 SD |
1025 | 2011-11-29 Sanjoy Das <sdas@igalia.com> |
1026 | ||
1027 | * jit.c (add_objfile_entry, jit_reader_try_read_symtab) | |
1028 | (jit_bfd_try_read_symtab): Fix comments. | |
1029 | ||
87326c78 DD |
1030 | 2011-11-28 DJ Delorie <dj@redhat.com> |
1031 | ||
1032 | * NEWS: Mention RL78 simulator. | |
1033 | ||
1e3a8f45 JB |
1034 | 2011-11-28 Joel Brobecker <brobecker@adacore.com> |
1035 | ||
1036 | * symfile.h (struct quick_symbol_functions): Fix the documentation | |
1037 | of field map_matching_symbols, as symbols are sorted using | |
1038 | strcmp_iw_ordered, not strcmp_iw. | |
1039 | ||
265e52c3 JB |
1040 | 2011-11-28 Paul Hilfinger <hilfinger@adacore.com> |
1041 | ||
1042 | * symfile.h (struct quick_symbol_functions): Update the | |
1043 | documentation for field map_matching_symbols. | |
1044 | ||
1a1d5513 JB |
1045 | 2011-11-28 Joel Brobecker <brobecker@adacore.com> |
1046 | ||
1047 | * ada-lang.c (compare_names): Fix wrong return value in case | |
1048 | string1 starts with the same contents as string2, followed | |
1049 | by an underscore that do not start a symbol name suffix. | |
1050 | ||
5d9c5995 PM |
1051 | 2011-11-28 Phil Muldoon <pmuldoon@redhat.com> |
1052 | ||
1053 | PR python/13369 | |
1054 | PR python/13374 | |
1055 | ||
1056 | * python/python.c (gdbpy_decode_line): Do not acquire GIL. | |
1057 | * python/py-inferior.c (inferior_to_inferior_object): Ditto. | |
1058 | * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB | |
1059 | exceptions. | |
1060 | * python/py-type.c (typy_strip_typedefs): Ditto. | |
1061 | (typy_legacy_template_argument): Ditto. | |
1062 | * python/py-inferior.c (inferior_to_inferior_object): Ditto. | |
1063 | * python/py-breakpoint.c (bppy_set_ignore_count): Ditto. | |
1064 | ||
2bf50f6f JB |
1065 | 2011-11-27 Joel Brobecker <brobecker@acacore.com> |
1066 | ||
1067 | * remote.c (remote_get_tracepoint_status): Delete addrbuf | |
1068 | local variable. Avoid use of sprintf_vma. | |
1069 | ||
744ab88c SD |
1070 | 2011-11-27 Sanjoy Das <sdas@igalia.com> |
1071 | ||
1072 | Fix regression in jit.exp. | |
1073 | * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) | |
1074 | (jit_register_code): Set the jit_objfile_data field to the correct | |
1075 | value. | |
1076 | ||
46ad3598 UW |
1077 | 2011-11-25 Uros Bizjak <ubizjak@gmail.com> |
1078 | ||
1079 | * alpha-tdep.c (br_opcode): New. | |
1080 | (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto. | |
1081 | (alpha_deal_with_atomic_sequence): New function. | |
1082 | (alpha_gdbarch_init): Handle single stepping of atomic sequences | |
1083 | with alpha_deal_with_atomic_sequence. | |
1084 | ||
e4c5f296 TG |
1085 | 2011-11-24 Tristan Gingold <gingold@adacore.com> |
1086 | ||
1087 | * machoread.c (oso_el): Remove num_Sections, symbols, offsets | |
1088 | fields. Add oso_sym, end_sym and nbr_syms. | |
1089 | (macho_register_oso): Change interface. | |
1090 | (macho_symtab_add_minsym): New function. | |
1091 | (macho_symtab_read): Rewritten. | |
1092 | (get_archive_prefix_len): Remove trailing blanks. | |
1093 | (oso_el_compare_name): Add comment. | |
1094 | (struct macho_sym_hash_entry): New structure. | |
1095 | (macho_relocate_common_syms): Remove. | |
1096 | (macho_sym_hash_newfunc): New function. | |
1097 | (macho_resolve_oso_sym_with_minsym): Likewise. | |
1098 | (macho_add_oso_symfile): Rewritten. | |
1099 | (macho_symfile_read_all_oso): Remove trailing blanks. | |
1100 | Adjust code to free oso vector. | |
1101 | (macho_symfile_read): Likewise. | |
1102 | Move code to initialize minimal symbol | |
1103 | ||
130854df MR |
1104 | 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com> |
1105 | ||
1106 | * mips-tdep.c (extended_offset): Fix formatting. | |
1107 | ||
3d7bb9d9 DE |
1108 | 2011-11-23 Doug Evans <dje@google.com> |
1109 | ||
1110 | * dwarf2read.c (dw2_lookup_symtab): Add comment. | |
1111 | (dw2_expand_symtabs_with_filename): Ditto. | |
1112 | (dw2_expand_symtabs_matching): Ditto. | |
1113 | (dw2_map_symbol_filenames): Ditto. | |
1114 | ||
1fbf5ada JB |
1115 | 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com> |
1116 | ||
1117 | * ada-lang.c (assign_aggregate): Minor reformatting. | |
1118 | ||
d984108d JB |
1119 | 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com> |
1120 | ||
1121 | * ada-lang.c (assign_aggregate): Remove declaration of local | |
1122 | variable `i' which is shadowing another variable with the same | |
1123 | name declared in the outer scope. | |
1124 | ||
18af8284 JB |
1125 | 2011-11-23 Joel Brobecker <brobecker@adacore.com> |
1126 | ||
1127 | * ada-lang.c (get_base_type): Renames base_type. Adjust all | |
1128 | calls throughout this file. | |
1129 | ||
1fc7b5d7 JB |
1130 | 2011-11-23 Joel Brobecker <brobecker@adacore.com> |
1131 | ||
1132 | * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to | |
1133 | FormatMessage. | |
1134 | ||
36dfb11c TT |
1135 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
1136 | ||
1137 | PR mi/8444: | |
1138 | * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK) | |
1139 | (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY) | |
1140 | (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants. | |
1141 | * mi/mi-common.c (async_reason_string_lookup): Add new reasons. | |
1142 | * breakpoint.c (print_it_catch_fork, print_it_catch_vfork) | |
1143 | (print_it_catch_syscall, print_it_catch_exec) | |
1144 | (internal_bkpt_print_it): Use ui_out. Emit stop reason. | |
1145 | (bpstat_print): Add 'kind' argument. Handle | |
1146 | TARGET_WAITKIND_LOADED. | |
1147 | * infrun.c (normal_stop): Update for bpstat_print change. Don't | |
1148 | handle TARGET_WAITKIND_LOADED here. | |
1149 | * breakpoint.h (bpstat_print): Update. | |
1150 | ||
5bd6aa83 TT |
1151 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
1152 | ||
1153 | * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print. | |
1154 | ||
f5afdc18 TT |
1155 | 2011-11-22 Tom Tromey <tromey@redhat.com> |
1156 | ||
1157 | * mi/mi-common.c (_initialize_gdb_mi_common): Remove. | |
1158 | Use static_assert to check the size of | |
1159 | async_reason_string_lookup. | |
1160 | * common/gdb_assert.h (static_assert): New macro. | |
1161 | ||
a3769e0c AM |
1162 | 2011-11-22 Alan Modra <amodra@gmail.com> |
1163 | ||
1164 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch | |
1165 | destination calculation. Don't expect >> to sign extend. Don't | |
1166 | add a break if branch lands inside the sequence anywhere. | |
1167 | ||
56767571 KS |
1168 | 2011-11-21 Keith Seitz <keiths@redhat.com> |
1169 | ||
1170 | * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51, | |
1171 | -var-evaluate-expression of an enumeration and fix expected result. | |
1172 | * gdb.mi/mi2-varvdisplay.exp: Likewise. | |
1173 | ||
8443c207 KY |
1174 | 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com> |
1175 | ||
1176 | * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle | |
1177 | the case where osdata->items is empty. Rename column names to a | |
1178 | canonical form to avoid problems with unusual column names. | |
1179 | ||
97643830 YQ |
1180 | 2011-11-21 Yao Qi <yao@codesourcery.com> |
1181 | ||
1182 | * MAINTAINERS (Write After Approval): Keep list in alphabetical order. | |
1183 | ||
f196051f SS |
1184 | 2011-11-20 Stan Shebs <stan@codesourcery.com> |
1185 | ||
1186 | * NEWS: Mention tracepoint additions. | |
1187 | * breakpoint.h (struct tracepoint): New field traceframe_usage. | |
1188 | * breakpoint.c (print_one_breakpoint_location): Identify | |
1189 | tracepoints as such when reporting hit counts, report | |
1190 | trace buffer usage. | |
1191 | (create_tracepoint_from_upload): Copy status info. | |
1192 | * tracepoint.h (struct trace_status): Rename error_desc to stop_desc, | |
1193 | add fields user_name, notes, start_time, stop_time. | |
1194 | (struct uploaded_tp): Add fields hit_count, traceframe_usage. | |
1195 | * tracepoint.c (trace_user): New global. | |
1196 | (trace_notes): New global. | |
1197 | (trace_stop_notes): New global. | |
1198 | (start_tracing): Add argument and trace note handling. | |
1199 | (stop_tracing): Ditto. | |
1200 | (trace_start_command): Add notes argument. | |
1201 | (trace_stop_command): Ditto. | |
1202 | (trace_status_command): Report additional status info. | |
1203 | (trace_status_mi): Similarly. | |
1204 | (trace_save): Update, record tracepoint status. | |
1205 | (set_disconnected_tracing): Call target method directly. | |
1206 | (send_disconnected_tracing_value): Remove. | |
1207 | (set_trace_user): New function. | |
1208 | (set_trace_notes): New function. | |
1209 | (set_trace_stop_notes): New function. | |
1210 | (parse_trace_status): Handle additional status. | |
1211 | (parse_tracepoint_status): New function. | |
1212 | (parse_tracepoint_definition): Call it. | |
1213 | (tfile_get_tracepoint_status): New function. | |
1214 | (init_tfile_ops): Use it. | |
1215 | (_initialize_tracepoint): Add new setshows. | |
1216 | * target.h (struct target_ops): New methods to_get_tracepoint_status | |
1217 | and to_set_trace_notes. | |
1218 | (target_get_tracepoint_status): New macro. | |
1219 | (target_set_trace_notes): New macro. | |
1220 | * target.c (update_current_target): Add new methods. | |
1221 | * remote.c (remote_get_tracepoint_status): New function. | |
1222 | (remote_set_trace_notes): New function. | |
1223 | (init_remote_ops): Add them. | |
1224 | * mi/mi-main.c (mi_cmd_trace_start): Add argument to call. | |
1225 | (mi_cmd_trace_stop): Ditto. | |
1226 | ||
3623dc3a SD |
1227 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1228 | ||
1229 | * jit.c: Include regcache.h. | |
1230 | (jit_gdbarch_data, jit_frame_unwind): New static variables. | |
1231 | (jit_unwind_reg_set_impl, free_reg_value_impl) | |
1232 | (jit_unwind_reg_get_impl, jit_frame_sniffer) | |
1233 | (jit_frame_unwind_stop_reason, jit_frame_this_id) | |
1234 | (jit_frame_prev_register, jit_dealloc_cache) | |
1235 | (jit_prepend_unwinder, jit_gdbarch_data_init): New functions. | |
1236 | (jit_inferior_init): Prepend (new) pseudo unwinder by calling | |
1237 | jit_prepend_unwinder. | |
1238 | (_initialize_jit): Register new gdbarch data jit_gdbarch_data. | |
1239 | ||
1825a88d SD |
1240 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1241 | ||
1242 | * jit.c: Include block.h, dictionary.h and frame-unwind.h. | |
1243 | (add_objfile_entry, jit_target_read_impl, jit_object_open_impl) | |
1244 | (jit_symtab_open_impl, compare_block, jit_block_open_impl) | |
1245 | (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl) | |
1246 | (finalize_symtab, jit_object_close_impl) | |
1247 | (jit_reader_try_read_symtab, jit_bfd_try_read_symtab) | |
1248 | (free_objfile_data): New functions. | |
1249 | (_initialize_jit): Register jit_objfile_data with a proper cleanup | |
1250 | function. | |
1251 | ||
784c47ee SD |
1252 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1253 | ||
1254 | * jit.c: Include gdb-dlfcn.h. | |
1255 | (loaded_jit_reader, reader_init_fn_sym): New static variables. | |
1256 | (jit_reader_load, jit_reader_load_command) | |
1257 | (jit_reader_unload_command): New functions. | |
1258 | (_initialize_jit): Add commands "jit-reader-load" and | |
1259 | "jit-reader-unload". | |
1260 | ||
a2d08b9e SD |
1261 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1262 | ||
1263 | * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system. | |
1264 | * config.in: Add new #define HAVE_LIBDL. | |
1265 | * configure.ac: Add check for -ldl. | |
1266 | * configure: Re-generated by autoconf. | |
1267 | * gdb-dlfcn.c: New file. | |
1268 | * gdb-dlfcn.h: New file. | |
1269 | ||
b8e0a31c SD |
1270 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1271 | ||
1272 | * config.in: Add new #defines: JIT_READER_DIR and | |
1273 | JIT_READER_DIR_RELOCATABLE. | |
1274 | * configure.ac: New GDB directory entry for jit-reader-dir. | |
1275 | * configure: Re-generated by autoconf. | |
1276 | * jit.c: New static variable: const char *jit_reader_dir. | |
1277 | (_initialize_jit): Relocate jit_reader_dir. | |
1278 | ||
f997c383 SD |
1279 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1280 | ||
1281 | * Makefile.in: Add jit-reader.h as a header. Have it installed in | |
1282 | $(includedir)/gdb. | |
1283 | * configure.ac: Generate a correct value for TARGET_PTR for | |
1284 | jit-reader.h. Tell configure to generate jit-reader.h from | |
1285 | jit-reader.in. | |
1286 | * configure: Re-generated by autoconf. | |
1287 | * jit-reader.in: New file. | |
1288 | * jit.c: Include jit-reader.h. | |
1289 | ||
dc8c0494 SD |
1290 | 2011-11-20 Sanjoy Das <sdas@igalia.com> |
1291 | ||
1292 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1293 | ||
01efb936 UW |
1294 | 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com> |
1295 | ||
1296 | * findvar.c (read_frame_register_value): Respect value_offset | |
1297 | of the register value. Remove big-endian special case. | |
1298 | ||
732f3f12 TT |
1299 | 2011-11-18 Tom Tromey <tromey@redhat.com> |
1300 | ||
1301 | PR build/7196: | |
1302 | * remote.c (putpkt_for_catch_errors): New function. | |
1303 | (remote_kill): Use it. | |
1304 | ||
bfccc43c YQ |
1305 | 2011-11-18 Yao Qi <yao@codesourcery.com> |
1306 | ||
1307 | * breakpoint.c (create_breakpoint): Produce query message according to | |
1308 | breakpoint's type. | |
1309 | Allocate tracepoint per correct type. | |
1310 | Don't check SALs for pending fast tracepoints. | |
1311 | * tracepoint.c (process_tracepoint_on_disconnect): New. | |
1312 | (disconnect_tracing): Call process_tracepoint_on_disconnect. | |
1313 | ||
3ea46bff YQ |
1314 | 2011-11-18 Yao Qi <yao@codesourcery.com> |
1315 | ||
1316 | * breakpoint.c (install_breakpoint): Add one more parameter so that | |
1317 | update_global_location_list is called conditionally. | |
1318 | (create_fork_vfork_event_catchpoint): Update. | |
1319 | (create_syscall_event_catchpoint): Update. | |
1320 | (create_breakpoint_sal): Update. | |
1321 | (create_breakpoint_sal): Update. Call do_cleanups before | |
1322 | install_breakpoint. | |
1323 | * ada-lang.c (create_ada_exception_catchpoint): Update. | |
1324 | * breakpoint.h (install_breakpoint): Update declaration. | |
1325 | ||
598cfb71 UW |
1326 | 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
1327 | ||
1328 | * spu-tdep.c (spu_return_value): Fix handling of | |
1329 | TYPE_CALLING_CONVENTION annotation. | |
1330 | ||
caf4328c UW |
1331 | 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
1332 | ||
1333 | * skip.c (skip_function_command): Work around uninitialized | |
1334 | variable warning. | |
1335 | ||
2b54dda2 DM |
1336 | 2011-11-16 David S. Miller <davem@davemloft.net> |
1337 | ||
1338 | * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and | |
1339 | 'tv_usec' to long for printf since these fields have a type which | |
1340 | varies. | |
1341 | ||
93bf33fd DE |
1342 | 2011-11-15 Doug Evans <dje@google.com> |
1343 | ||
1344 | * buildsym.c (add_symbol_to_list): Delete outdated comment. | |
1345 | ||
9cc10fd1 PK |
1346 | 2011-11-15 Paul Koning <paul_koning@dell.com> |
1347 | ||
1348 | * python/py-type.c (typy_get_composite): New function. | |
1349 | (typy_nonzero): New function. | |
1350 | (typy_values): Rename from typy_fields. | |
1351 | (typy_fields): New function. | |
1352 | (typy_length): Raise exception if not struct, union, or enum type. | |
1353 | (typy_getitem): Ditto. | |
1354 | (typy_has_key): Ditto. | |
1355 | (typy_make_iter): Ditto. | |
1356 | ||
c011a4f4 DE |
1357 | 2011-11-15 Doug Evans <dje@google.com> |
1358 | ||
1963ff96 | 1359 | PR gdb/8367 |
c011a4f4 DE |
1360 | * NEWS: Mention new parameter basenames-may-differ. |
1361 | * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if | |
1362 | ! basenames_may_differ. | |
1363 | * psymtab.c (lookup_partial_symtab): Ditto. | |
1364 | * symtab.c (lookup_symtab): Ditto. | |
1365 | (basenames_may_differ): New global. | |
1366 | (_initialize_symtab): New parameter basenames-may-differ. | |
1367 | * symtab.h (basenames_may_differ): Declare. | |
1368 | ||
865ecab4 LM |
1369 | 2011-11-15 Pedro Alves <pedro@codesourcery.com> |
1370 | Luis Machado <lgustavo@codesourcery.com> | |
1371 | ||
1372 | * auxv.c: Include observer.h. | |
1373 | (auxv_inferior_data_cleanup): New. | |
1374 | (invalidate_auxv_cache_inf): New. | |
1375 | (invalidate_auxv_cache): New. | |
1376 | (get_auxv_inferior_data): New. | |
1377 | (auxv_inferior_data): New static global. | |
1378 | (auxv_info): New structure. | |
1379 | (target_auxv_search): Use get_auxv_inferior_data instead of | |
1380 | target_read_alloc and don't free cached buffers. | |
1381 | (fprint_target_auxv): Likewise | |
1382 | (_initialize_auxv): Register per-inferior auxv cache and register | |
1383 | observers to invalidate auxv cache when needed. | |
1384 | ||
ed59ded5 DE |
1385 | 2011-11-14 Doug Evans <dje@google.com> |
1386 | ||
37acd67c | 1387 | PR gdb/7200 Make "!" an alias for "shell". |
ed59ded5 DE |
1388 | * NEWS: Add mention. |
1389 | * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on | |
1390 | adding "!" command, always add it. | |
1391 | * cli/cli-decode.c (find_command_name_length): Recognize "!" as a | |
1392 | command of length one. | |
1393 | ||
405f8e94 SS |
1394 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
1395 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
1396 | ||
1397 | * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet. | |
1398 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for | |
1399 | the minimum instruction size for fast tracepoints. | |
1400 | * target.h (struct target_ops): Add new method | |
1401 | to_get_min_fast_tracepoint_insn_len. | |
1402 | (target_get_min_fast_tracepoint_insn_len): New. | |
1403 | * target.c (update_current_target): Set up new target operation. | |
1404 | * remote.c (remote_write_bytes_aux): Fix typo. | |
1405 | (remote_get_min_fast_tracepoint_insn_len): New. | |
1406 | (init_remote_ops): Initialize new field. | |
1407 | ||
3e05895e TT |
1408 | 2011-11-14 Tom Tromey <tromey@redhat.com> |
1409 | ||
1410 | * tracepoint.c (encode_actions_1): Use the location's gdbarch. | |
1411 | (encode_actions): Likewise. | |
1412 | ||
1e4d1764 YQ |
1413 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
1414 | ||
1415 | * remote.c (struct remote_state): <install_in_trace> new field. | |
1416 | (PACKET_InstallInTrace): New enum value. | |
1417 | (remote_install_in_trace_feature): Support InstallInTrace. | |
1418 | (remote_supports_install_in_trace): Likewise. | |
1419 | (remote_protocol_features): Likewise. | |
1420 | (_initialize_remote): Likewise. | |
1421 | (remote_can_download_tracepoint): New. | |
1422 | * target.h (struct target): New field | |
1423 | `to_can_download_tracepoint'. | |
1424 | (target_can_download_tracepoint): New macro. | |
1425 | * target.c (update_current_target): Update. | |
1426 | * breakpoint.h (struct bp_location): Add comment on field | |
1427 | `duplicate'. | |
3ccd4ac6 YQ |
1428 | * breakpoint.c (should_be_inserted): Don't differentiate breakpoint |
1429 | and tracepoint. | |
1e4d1764 YQ |
1430 | (remove_breakpoints): Don't remove tracepoints. |
1431 | (tracepoint_locations_match ): New. | |
1432 | (breakpoint_locations_match): Call it. | |
1433 | (disable_breakpoints_in_unloaded_shlib): Handle tracepoint. | |
1434 | (download_tracepoint_locations): New. | |
1435 | (update_global_location_list): Call it. | |
1436 | * tracepoint.c (find_matching_tracepoint): Delete. | |
1437 | (find_matching_tracepoint_location): Renamed from | |
1438 | find_matching_tracepoint. Return bp_location rather than | |
1439 | tracepoint. | |
1440 | (merge_uploaded_tracepoints): Set `inserted' field to 1 if | |
1441 | tracepoint is found. | |
1442 | ||
e8ba3115 YQ |
1443 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
1444 | ||
1445 | * target.h (struct target): <to_download_tracepoint> Change type | |
1446 | of parameter from tracepoint to bp_location. | |
1447 | * target.c (update_current_target): Update. | |
1448 | * tracepoint.c (start_tracing): Update. | |
1449 | * remote.c (remote_download_tracepoint): Remove loop for each location | |
1450 | of a tracepoint. | |
1451 | ||
edcc485a MR |
1452 | 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com> |
1453 | ||
1454 | * i386-nat.c (i386_insert_hw_breakpoint): Call | |
1455 | i386_update_inferior_debug_regs. | |
1456 | (i386_remove_hw_breakpoint): Likewise. | |
1457 | ||
3742cc8b YQ |
1458 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
1459 | ||
1460 | * breakpoint.c (init_raw_breakpoint): Call | |
1461 | add_location_to_breakpoint to replace duplicated code. | |
1462 | (add_location_to_breakpoint): Adjust the breakpoint's | |
1463 | address prior to allocating a location. | |
1464 | ||
71eba9c2 | 1465 | 2011-11-12 Matt Rice <ratmice@gmail.com> |
1466 | ||
1467 | * macrocmd.c (macro_no_macro_info): New function. | |
1468 | (macro_expand_command): Use macro_no_macro_info. | |
1469 | (macro_expand_once_command): Ditto. | |
1470 | (info_macro_command): Add argument processing, | |
1471 | move info_definitions_command here. | |
1472 | (_initialize_macrocmd): Remove info definitions command. | |
1473 | Add arguments to info macro help text. | |
1474 | * NEWS: Replace info definitions command with new info macro options. | |
1475 | ||
731971ed KS |
1476 | 2011-11-11 Keith Seitz <keiths@redhat.com> |
1477 | ||
1478 | PR gdb/12843 | |
1479 | * linespec.c (locate_first_half): Keep ':' if it looks | |
1480 | like it could be part of a Windows path starting with | |
1481 | a drive letter. | |
1482 | ||
6953d224 PA |
1483 | 2011-11-10 Pedro Alves <pedro@codesourcery.com> |
1484 | ||
1485 | * linux-nat.c (linux_nat_wait): Don't force waking up the event | |
1486 | loop when returning a TARGET_WAITKIND_NO_RESUMED. | |
1487 | ||
0c94aa73 PA |
1488 | 2011-11-10 Pedro Alves <pedro@codesourcery.com> |
1489 | ||
1490 | * target.c (target_waitstatus_to_string): Handle | |
1491 | TARGET_WAITKIND_NO_RESUMED. | |
1492 | ||
f6b47be4 DE |
1493 | 2011-11-10 Doug Evans <dje@google.com> |
1494 | ||
74e2f255 DE |
1495 | * dwarf2read.c (dw2_map_symbol_filenames): New parameter |
1496 | `need_fullname'. | |
1497 | * psymtab.c (map_symbol_filenames_psymtab): Ditto. | |
1498 | (map_partial_symbol_filenames): Ditto. All callers updated. | |
1499 | * psymtab.h (map_partial_symbol_filenames): Update prototype. | |
1500 | * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New | |
1501 | parameter need_fullname. | |
1502 | ||
256f06f3 DE |
1503 | * psymtab.c (psymtab_to_fullname): Use cached copy if it exists. |
1504 | * source.c (symtab_to_fullname): Ditto. | |
1505 | ||
50f182aa DE |
1506 | * defs.h (is_cplus_marker, set_demangling_style): Moved to ... |
1507 | * gdb-demangle.h: ... here. New file. | |
1508 | * demangle.c: #include "gdb-demangle.h". | |
1509 | (_initialize_demangler): Use initialize_file_ftype for prototype. | |
1510 | Move "set demangle" and "set asm-demangle" parameters here from utils.c | |
1511 | (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here | |
1512 | from utils.c | |
1513 | * utils.c: Update. #include "gdb-demangle.h". | |
1514 | * symtab.h (asm_demangle): Delete. | |
1515 | (demangle): Move declaration next to use. | |
1516 | * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h". | |
1517 | * dwarf2read.c: #include "gdb-demangle.h". | |
1518 | * gnu-v2-abi.c: Ditto. | |
1519 | * jv-typeprint.c: Ditto. | |
1520 | * mdebugread.c: Ditto. | |
1521 | * p-typeprint.c: Ditto. | |
1522 | * stabsread.c: Ditto. | |
1523 | * printcmd.c: Ditto. | |
1524 | (asm_demangle): Delete declaration. | |
1525 | * tui/tui-stack.c: #include "gdb-demangle.h". | |
1526 | ||
f6b47be4 DE |
1527 | * python/py-type.c (typy_fields_items): Call check_typedef. |
1528 | ||
22355c90 JB |
1529 | 2011-11-10 Joel Brobecker <brobecker@adacore.com> |
1530 | ||
1531 | * findvar.c (read_frame_register_value): Read the correct bytes | |
1532 | from registers on big-endian architectures. | |
1533 | ||
bd119cf1 | 1534 | 2011-11-10 Tom Tromey <tromey@redhat.com> |
e28cade7 JB |
1535 | |
1536 | * procfs.c (load_syscalls): Make a cleanup. | |
1537 | (open_procinfo_files): fd==0 is ok. | |
1538 | ||
0a86f364 JB |
1539 | 2011-11-10 Joel Brobecker <brobecker@adacore.com> |
1540 | ||
1541 | * procfs.c (iterate_over_mappings): Call do_cleanups before | |
1542 | returning. | |
1543 | ||
9bc118a5 DE |
1544 | 2011-11-09 Doug Evans <dje@google.com> |
1545 | ||
1546 | * gdbtypes.c (check_typedef): Document that this function can | |
1547 | throw an exception. | |
1548 | ||
a7860e76 TT |
1549 | 2011-11-09 Tom Tromey <tromey@redhat.com> |
1550 | ||
1551 | PR c++/13342: | |
1552 | * valops.c (value_full_object): Return early if real type is | |
1553 | smaller than the enclosing type. | |
1554 | ||
60965737 YQ |
1555 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
1556 | ||
1557 | * amd64-tdep.c (amd64_relocate_instruction): Make it static. | |
1558 | ||
72a2e3dc MI |
1559 | 2011-11-08 Meador Inge <meadori@codesourcery.com> |
1560 | ||
1561 | * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP | |
1562 | register when the frame can't be determined. | |
1563 | * arm-tdep.c (arm_analyze_prologue): Ditto. | |
1564 | ||
ce3b0ff7 SS |
1565 | 2011-11-07 Stan Shebs <stan@codesourcery.com> |
1566 | ||
1567 | * MAINTAINERS: Move Michael Snyder to Past Maintainers. | |
1568 | ||
2b914b52 JB |
1569 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
1570 | ||
1571 | * infrun.c (handle_inferior_event): Minor reformatting. | |
1572 | ||
6f809020 DE |
1573 | 2011-11-05 Doug Evans <dje@google.com> |
1574 | ||
1575 | * source.c (forget_cached_source_info_for_objfile): Move call to | |
1576 | objfile->sf->qf->forget_cached_source_info outside of | |
1577 | ALL_OBJFILE_SYMTABS loop. | |
1578 | (forget_cached_source_info): Delete unused variable `s'. | |
1579 | ||
75d12218 JK |
1580 | 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1581 | ||
1582 | * i386-nat.c (dr_ref_count): Remove unused variable. | |
1583 | ||
e565b837 DE |
1584 | 2011-11-05 Doug Evans <dje@google.com> |
1585 | ||
1586 | * main.c (captured_main): Set lim_at_start before calling | |
1587 | make_command_stats_cleanup. | |
1588 | ||
0a1c4d10 DE |
1589 | 2011-11-04 Doug Evans <dje@google.com> |
1590 | ||
1591 | * utils.c: #include "timeval-utils.h". | |
1592 | (cmd_stats): Rename start_time to start_cpu_time. | |
1593 | New member start_wall_time. | |
1594 | (report_command_stats): Report wall time. | |
1595 | (make_command_stats_cleanup): Record start wall time. | |
1596 | ||
a1d705ee TT |
1597 | 2011-11-04 Tom Tromey <tromey@redhat.com> |
1598 | ||
1599 | * cp-namespace.c (cp_lookup_symbol_imports): Reindent. | |
1600 | ||
81de56be RO |
1601 | 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1602 | ||
1603 | * coff-pe-read.c: Include defs.h before bfd.h. | |
1604 | ||
3ab1ec27 PM |
1605 | 2011-11-04 Phil Muldoon <pmuldoon@redhat.com> |
1606 | ||
1607 | PR Python/13345 | |
1608 | ||
1609 | * python/python.c (python_run_simple_file): Expand tilde in path. | |
1610 | ||
cd829959 PM |
1611 | 2011-11-04 Phil Muldoon <pmuldoon@redhat.com> |
1612 | ||
1613 | PR Python/13363 | |
1614 | ||
1615 | * python/py-type.c (typy_lookup_type): Do not return a type in | |
1616 | an exception handler. | |
1617 | ||
080ad648 JK |
1618 | 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1619 | Eli Zaretskii <eliz@gnu.org> | |
1620 | ||
1621 | * linux-nat.c (_initialize_linux_nat): Improve help | |
1622 | for `info proc stat', `info proc status', `info proc cwd', | |
1623 | `info proc cmdline' and `info proc exe'. | |
1624 | ||
3065dfb6 SS |
1625 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
1626 | ||
1627 | String collection for tracepoints. | |
1628 | * NEWS: Mention string collection. | |
1629 | * common/ax.def (tracenz): New bytecode. | |
1630 | * ax-gdb.h (trace_string_kludge): Declare. | |
1631 | * ax-gdb.c: Include valprint.h and c-lang.h. | |
1632 | (trace_string_kludge): New global. | |
1633 | (gen_traced_pop): Add string case. | |
1634 | (agent_command): Add string case. | |
1635 | * tracepoint.h (decode_agent_options): Declare. | |
1636 | * tracepoint.c: Include cli-utils.h. | |
1637 | (decode_agent_options): New function. | |
1638 | (validate_actionline): Call it. | |
1639 | (encode_actions_1): Ditto. | |
1640 | * target.h (struct target_ops): New method to_supports_string_tracing. | |
1641 | (target_supports_string_tracing): New macro. | |
1642 | * target.c (update_current_target): Add to_supports_string_tracing. | |
1643 | * remote.c (struct remote_state): New field string_tracing. | |
1644 | (remote_string_tracing_feature): New function. | |
1645 | (remote_protocol_features): New feature tracenz. | |
1646 | (remote_supports_string_tracing): New function. | |
1647 | (init_remote_ops): Set to_supports_string_tracing. | |
1648 | ||
f179e162 JK |
1649 | 2011-11-02 Pedro Alves <pedro@codesourcery.com> |
1650 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1651 | ||
1652 | * linux-nat.c: Include cli/cli-utils.h. | |
1653 | (enum info_proc_what): New. | |
1654 | (linux_nat_info_proc_cmd): Rename to ... | |
1655 | (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all. | |
1656 | New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f, | |
1657 | status_f and stat_f from WHAT. Throw error on extra parameters. | |
1658 | (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings) | |
1659 | (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status) | |
1660 | (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline) | |
1661 | (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New. | |
1662 | (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info | |
1663 | proc mappings', `info proc stat`, `info proc status', `info proc cwd', | |
1664 | `info proc cmdline', `info proc exe' and `info proc all' as real | |
1665 | subcommands of `info proc'. | |
1666 | ||
7b35ec7f | 1667 | 2011-11-01 Justin Lebar <justin.lebar@gmail.com> |
1bfeeb0f JL |
1668 | |
1669 | * Makefile.in: (SFILES): Add skip.c. | |
1670 | (HFILES_NO_SRCDIR): Add skip.h. | |
1671 | (COMMON_OBS): Add skip.o. | |
1672 | * skip.h, skip.c: New. | |
1673 | * breakpoint.h (set_default_breakpoint): Remove. | |
1674 | (get_sal_arch): Declare. | |
1675 | * breakpoint.c: Remove default_breakpoint_valid, | |
1676 | default_breakpoint_address, default_breakpoint_symtab, | |
1677 | default_breakpoint_line, default_breakpoint_pspace variables. | |
1678 | (get_sal_arch): Make public. | |
1679 | (set_default_breakpoint): Remove. | |
1680 | (parse_breakpoint_sals, create_breakpoint, clear_command, | |
1681 | decode_line_spec_1): Remove uses of default_breakpoint variables; | |
1682 | replaced with function calls into stack.c. | |
1683 | * cli/cli-cmds.h: Add cmd_list_element *skiplist. | |
1684 | * cli/cli-cmds.c: Add skiplist. | |
1685 | (init_cmd_lists): Initialize skiplist. | |
1686 | (init_cli_cmds): Fix comment (classes of commands appear in | |
1687 | alphabetical order). | |
1688 | * infrun.c (handle_inferior_event): Add check that we don't step into | |
1689 | a function whose pc is marked for skip. | |
1690 | * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace, | |
1691 | last_displayed_addr, last_displayed_symtab, last_displayed_line | |
1692 | variables. | |
1693 | (set_last_displayed_sal): New static function. | |
1694 | (print_frame_info): Switch call to set_default_breakpoint to call to | |
1695 | set_last_displayed_sal. | |
1696 | (clear_last_displayed_sal, last_displayed_sal_is_valid, | |
1697 | get_last_displayed_pspace, get_last_displayed_addr, | |
1698 | get_last_displayed_symtab, get_last_displayed_line, | |
1699 | get_last_displayed_sal): New public functions. | |
1700 | * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid, | |
1701 | get_last_displayed_pspace, get_last_displayed_addr, | |
1702 | get_last_displayed_symtab, get_last_displayed_line, | |
1703 | get_last_displayed_sal): Declare. | |
1704 | ||
b60e1588 JL |
1705 | 2011-11-01 Justin Lebar <justin.lebar@gmail.com> |
1706 | ||
1707 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1708 | ||
d31647d2 YQ |
1709 | 2011-10-29 Yao Qi <yao@codesourcery.com> |
1710 | ||
1711 | * infcmd.c (disconnect_command): Call disconnect_tracing. | |
1712 | ||
b1d96efd JK |
1713 | 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
1714 | ||
1715 | Code cleanup. | |
1716 | * symtab.c (skip_prologue_sal): Code reformatting. | |
1717 | ||
4dfb2365 JK |
1718 | 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1719 | ||
1720 | PR symtab/13208 | |
1721 | * jit.c (jit_register_code): Remove unused variable my_cleanups. Check | |
1722 | for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and | |
1723 | SAI. | |
1724 | ||
0e5bf2a8 PA |
1725 | 2011-10-28 Pedro Alves <pedro@codesourcery.com> |
1726 | ||
1727 | * linux-nat.c (linux_nat_filter_event): Remove `options' | |
1728 | parameter, and dead code that used it. If we're handling a | |
1729 | PTRACE_EVENT_EXEC event, and the thread group leader is no longer | |
1730 | in our lwp list, re-add it. | |
1731 | (check_zombie_leaders): New. | |
1732 | (linux_nat_wait_1): Remove `options' and `pid' locals. Always | |
1733 | wait for children with WNOHANG, and always wait for all children. | |
1734 | Don't check for no resumed children upfront. Simplify wait loop. | |
1735 | Check for zombie thread group leaders after handling all wait | |
1736 | statuses. Return TARGET_WAITKIND_NO_RESUMED if there no | |
1737 | unwaited-for children left. | |
1738 | * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. | |
1739 | (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. | |
1740 | (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED. | |
1741 | * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New. | |
1742 | ||
821296b7 SA |
1743 | 2011-10-28 Sterling Augustine <saugustine@google.com> |
1744 | ||
1745 | * psymtab.c (map_symbol_filenames_psymtab): Call QUIT. | |
1746 | * symtab.c (free_completion_list): New function. | |
1747 | (do_free_completion_list): Likewise. | |
1748 | (default_make_symbol_completion_list_break_on): New variable | |
1749 | back_to. Call make_cleanup and discard_cleanups. | |
1750 | (make_source_files_completion_list): Likewise. | |
1751 | ||
03c3051a PK |
1752 | 2011-10-28 Paul Koning <paul_koning@dell.com> |
1753 | ||
1754 | * python/lib/gdb/types.py (deep_items): Rename from deepitems. | |
1755 | * NEWS: Mention deep_items. | |
1756 | ||
8e7ebaf5 PA |
1757 | 2011-10-28 Alen Skondro <askondro@gmail.com> |
1758 | ||
8de33dc2 | 1759 | * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already |
8e7ebaf5 PA |
1760 | defined. |
1761 | ||
e0c6ef61 MI |
1762 | 2011-10-27 Meador Inge <meadori@codesourcery.com> |
1763 | ||
1764 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
1765 | ||
b56d6f31 JB |
1766 | 2011-10-27 Joel Brobecker <brobecker@adacore.com> |
1767 | ||
1768 | * value.h (read_frame_register_value): Add declaration. | |
1769 | * findvar.c (read_frame_register_value): New function. | |
1770 | (value_from_register): Use read_frame_register_value | |
1771 | instead of get_frame_register_value + value_contents_copy | |
1772 | to get value contents. | |
1773 | ||
d234ef5c DE |
1774 | 2011-10-27 Doug Evans <dje@google.com> |
1775 | ||
1776 | * cli/cli-cmds.c (source_script_with_search): Pass full path to | |
1777 | source_script_from_stream if it may have been found on the search path. | |
1778 | * python/py-auto-load.c (source_section_scripts): Pass full path to | |
1779 | source_python_script_for_objfile. | |
1780 | * python/python.c (source_python_script): Delete stream parameter. | |
1781 | All callers updated. | |
1782 | (source_python_script_for_objfile): Ditto. | |
1783 | * python/python-internal.h (source_python_script_for_objfile): Update. | |
1784 | * python/python.h (source_python_script): Update. | |
1785 | ||
d849d44f TT |
1786 | 2011-10-27 Tom Tromey <tromey@redhat.com> |
1787 | ||
1788 | * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1) | |
1789 | (ada_sals_for_line): Remove declarations. | |
1790 | ||
2231f1fb KP |
1791 | 2011-10-27 Kevin Pouget <kevin.pouget@st.com> |
1792 | ||
1793 | Move unwind reasons to an external .def file | |
1794 | * frame.c (frame_stop_reason_string): Rewrite using | |
1795 | unwind_stop_reasons.def. | |
1796 | * frame.h (enum unwind_stop_reason): Likewise. | |
1797 | * python/py-frame.c (gdbpy_initialize_frames): Likewise. | |
1798 | (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason | |
1799 | constants for bound-checking. | |
1800 | * unwind_stop_reasons.def: New file. | |
1801 | * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias | |
1802 | instead of a distinct value. | |
1803 | ||
f77b9a5d PM |
1804 | 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> |
1805 | ||
1806 | PR python/13331 | |
1807 | ||
1808 | * python/py-function.c (fnpy_call): Check 'args' is not NULL. | |
1809 | (convert_values_to_python): Return on Python tuple allocation | |
1810 | failure. Return NULL on value conversion error. | |
1811 | ||
76dce0be PM |
1812 | 2011-10-27 Phil Muldoon <pmuldoon@redhat.com> |
1813 | ||
1814 | * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH. | |
1815 | (bppy_set_task): Ditto. | |
1816 | (bppy_delete_breakpoint): Ditto. | |
1817 | * python/py-symbol.c (gdbpy_lookup_symbol): Ditto. | |
1818 | (gdbpy_lookup_global_symbol): Ditto. | |
1819 | * python/py-lazy-string.c (stpy_convert_to_value): Ditto. | |
1820 | * python/py-frame.c (frapy_is_valid): Ditto. | |
1821 | (frame_info_to_frame_object): Ditto. | |
1822 | * python/py-type.c (typy_lookup_type): Ditto. | |
1823 | (typy_getitem): Ditto. | |
1824 | (typy_has_key): Ditto. | |
1825 | (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error. | |
1826 | ||
f17b6955 JB |
1827 | 2011-10-26 Joel Brobecker <brobecker@adacore.com> |
1828 | ||
1829 | * gdbarch.h: Regenerate. | |
1830 | ||
86ba1042 JB |
1831 | 2011-10-26 Meador Inge <meadori@codesourcery.com> |
1832 | ||
1833 | * gdbarch.sh (function_list): Use 'pstring' when printing | |
1834 | 'gcore_bfd_target'. | |
1835 | * gdbarch.c: Regenerate. | |
1836 | ||
c34fd852 UW |
1837 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
1838 | ||
1839 | * regcache.c (registers_changed_ptid): Invalidate thread architecture | |
1840 | and frame caches if PTID refers to all threads of a process. | |
1841 | ||
931bb47f UW |
1842 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
1843 | ||
1844 | * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops | |
1845 | to create_breakpoint. | |
1846 | ||
88aed45e UW |
1847 | 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com> |
1848 | ||
1849 | * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function. | |
1850 | (ppc_sysv_abi_push_dummy_call): Use it. | |
1851 | (do_ppc_sysv_return_value): Likewise. | |
1852 | (ppc64_sysv_abi_push_dummy_call): Likewise. | |
1853 | (ppc64_sysv_abi_return_value): Likewise. | |
1854 | ||
3eaf3fa2 PK |
1855 | 2011-10-26 Paul Koning <paul_koning@dell.com> |
1856 | ||
1857 | * python/lib/gdb/types.py (deepitems): New function. | |
1858 | ||
913460fc PK |
1859 | 2011-10-25 Paul Koning <paul_koning@dell.com> |
1860 | ||
1861 | PR python/13327 | |
1862 | ||
1863 | * python/py-value.c (value_to_value_object): Remove fetching of | |
1864 | the value if it was lazy. | |
1865 | (valpy_get_is_lazy): New function. | |
1866 | (valpy_fetch_lazy): New function. | |
1867 | ||
2b5b9d09 JB |
1868 | 2011-10-24 Joel Brobecker <brobecker@adacore.com> |
1869 | ||
1870 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check | |
1871 | FUNC_TYPE's calling convention if FUNC_TYPE is not a function. | |
1872 | ||
e21ffe51 PA |
1873 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
1874 | ||
1875 | * linux-nat.c (linux_handle_extended_wait): When handling a clone | |
1876 | event, in non-stop, if not stopping, make sure the new lwp has | |
1877 | last_resume_kind set to resume_continue. Assert that when we're | |
1878 | resuming the new lwp, its last_resume_kind is resume_continue. | |
1879 | ||
7aee8dc2 PA |
1880 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
1881 | ||
1882 | * infrun.c (handle_inferior_event): Don't assume inferior_ptid is | |
1883 | already set when marking the event thread as not executing in | |
1884 | non-stop mode. | |
1885 | ||
4b4e080e PA |
1886 | 2011-10-24 Pedro Alves <pedro@codesourcery.com> |
1887 | ||
1888 | * infrun.c (handle_inferior_event): Add debug output for | |
1889 | TARGET_WAITKIND_NO_HISTORY. | |
1890 | ||
baacfb07 PM |
1891 | 2011-10-24 Phil Muldoon <pmuldoon@redhat.com> |
1892 | ||
1893 | * NEWS: Move set/show extended-prompt to "New Options". Expand | |
1894 | description. Fix typos. | |
1895 | ||
8432bc41 PM |
1896 | 2011-10-24 Phil Muldoon <pmuldoon@redhat.com> |
1897 | ||
1898 | PR python/13310 | |
1899 | ||
1900 | * python/py-param.c (call_doc_function): Correctly deference on | |
1901 | function exit. | |
1902 | ||
6cda5a20 JB |
1903 | 2011-10-21 Joel Brobecker <brobecker@adacore.com> |
1904 | ||
1905 | * ada-tasks.c (print_ada_task_info): Fix computation of | |
1906 | number of tasks displayed in command output. | |
1907 | ||
13294f7d JK |
1908 | 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
1909 | Ulrich Weigand <uweigand@de.ibm.com> | |
1910 | ||
1911 | * dwarf2-frame-tailcall.c: Include dwarf2-frame.h. | |
1912 | (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa. | |
1913 | (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace | |
1914 | gdbarch_pc_regnum and frame_unwind_register_unsigned by | |
1915 | gdbarch_unwind_pc. | |
1916 | ||
460c1c54 CC |
1917 | 2011-10-20 Cary Coutant <ccoutant@google.com> |
1918 | ||
1919 | * dwarf2read.c (dw2_get_file_names): Move adjustment for type | |
1920 | section to... | |
1921 | (partial_read_comp_unit_head): ...here. Add is_debug_type_section | |
1922 | flag. Adjust all callers. | |
1923 | (process_psymtab_comp_unit): Remove adjustment for type section. | |
1924 | ||
a10964d1 AR |
1925 | 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com> |
1926 | ||
1927 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function | |
1928 | arguments by adding OBJFILE. Instead of getting objfile from | |
1929 | symbol's symtab, use new argument OBJFILE. | |
1930 | * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function | |
1931 | arguments by adding OBJFILE. | |
1932 | * gdb/dwarf2read.c (new_symbol_full): Change call to | |
1933 | cp_scan_for_anonymous_namespaces to match new signature. | |
1934 | * gdb/stabsread.c (define_symbol): Change call to | |
1935 | cp_scan_for_anonymous_namespaces to match new signature. | |
1936 | ||
27ca1a5b PM |
1937 | 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> |
1938 | ||
1939 | PR python/13308 | |
1940 | PR python/13309 | |
1941 | ||
1942 | * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference | |
1943 | leak. | |
1944 | * python/py-inferior.c (gdbpy_inferiors): Fix List reference | |
1945 | leak. Delete unused variables. | |
1946 | ||
9df2fbc4 PM |
1947 | 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> |
1948 | ||
1949 | PR python/12656 | |
1950 | ||
1951 | * python/py-frame.c (frapy_read_var): Use const struct *block. | |
1952 | * python/py-type.c (typy_lookup_typename): Likewise. | |
1953 | (typy_lookup_type): Likewise. | |
1954 | (typy_legacy_template_argument): Likewise. | |
1955 | (typy_template_argument): Likewise. | |
1956 | (gdbpy_lookup_type): Likewise. | |
1957 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
1958 | * python/py-block.c (blpy_block_object): Likewise. | |
1959 | (blpy_iter): Likewise. | |
1960 | (blpy_get_start): Likewise. | |
1961 | (blpy_get_end): Likewise. | |
1962 | (blpy_get_function): Likewise. | |
1963 | (blpy_get_superblock): Likewise. | |
1964 | (set_block): Likewise. | |
1965 | (block_to_block_object): Likewise. | |
1966 | (block_object_to_block): Likewise. | |
1967 | (blpy_is_valid): Likewise. | |
1968 | (blpy_get_global_block): New function. | |
1969 | (blpy_get_static_block): New function. | |
1970 | (blpy_is_global): New function. | |
1971 | (blpy_is_static): New function. | |
1972 | * blockframe.c (block_innermost_frame): Likewise. | |
1973 | * valops.c (value_of_variable): Likewise. | |
1974 | * frame.h: Update prototypes. | |
1975 | * python/python-internal.h: Likewise. | |
1976 | * value.h: Likewise. | |
1977 | ||
4743b735 CC |
1978 | 2011-10-19 Cary Coutant <ccoutant@google.com> |
1979 | ||
1980 | * dwarf2read.c (create_debug_types_hash_table): Fix size of | |
1981 | type_offset field. | |
1982 | ||
6caca83c CC |
1983 | 2011-10-19 Cary Coutant <ccoutant@google.com> |
1984 | ||
1985 | * dwarf2read.c (peek_abbrev_code): New function. | |
1986 | (dw2_get_file_names): Check for dummy compilation units. | |
1987 | (create_debug_types_hash_table): Likewise. | |
1988 | (process_psymtab_comp_unit): Likewise. | |
1989 | (load_partial_comp_unit): Likewise. | |
1990 | (load_full_comp_unit): Likewise. | |
1991 | ||
43136979 AR |
1992 | 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com> |
1993 | ||
1994 | * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p, | |
1995 | initialize them from target PT_PHDR p_vaddr, relocate sect_addr by | |
1996 | pt_phdr if PT_PHDR was found. | |
1997 | ||
0a07729b TT |
1998 | 2011-10-17 Joost van der Sluis <joost@cnoc.nl> |
1999 | ||
2000 | * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a | |
2001 | type or "<unnamed type"> when there is no name assigned. | |
2002 | * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to | |
2003 | avoid a sigint when no name is assigned. | |
2004 | ||
21ae7a4d JK |
2005 | 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2006 | ||
2007 | Revert: | |
2008 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> | |
2009 | * dwarf2expr.c (ctx_no_read_reg): New function. | |
2010 | * dwarf2expr.h (ctx_no_read_reg): New declaration. | |
2011 | * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. | |
2012 | (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. | |
2013 | (decode_locdesc): Replace by a caller of dwarf_expr_eval. | |
2014 | ||
32d1c362 DE |
2015 | 2011-10-16 Doug Evans <dje@google.com> |
2016 | ||
2017 | * NEWS: Document python gdb.printing.register_pretty_printer's new | |
2018 | `replace' parameter. | |
2019 | ||
da096638 KS |
2020 | 2011-10-14 Keith Seitz <keiths@redhat.com> |
2021 | ||
2022 | PR c++/13225 | |
2023 | * eval.c (evaluate_subexp_standard): Do not construct | |
2024 | an array of types; pass the value array directly to | |
2025 | find_overload_match. | |
2026 | * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare. | |
2027 | (rank_function): Take an array of values instead of types. | |
2028 | (rank_one_type): Add struct value * parameter. | |
2029 | * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define. | |
2030 | (rank_function): For each argument, pass the argument's | |
2031 | value to rank_one_type. | |
2032 | (rank_one_type): Add VALUE parameter. | |
2033 | If the parameter type is a pointer and the argument type | |
2034 | is an integer, return NULL_POINTER_CONVERSION_BADNESS if | |
2035 | VALUE is zero. | |
2036 | Update all calls to rank_one_type, passing NULL for new | |
2037 | VALUE parameter. | |
2038 | * valarith.c (value_user_defined_cpp_op): Do not construct | |
2039 | an array of types; pass the value array directly to | |
2040 | find_overload_match. | |
2041 | * valops.c (find_overload_method_list): Take an array of | |
2042 | values instead of types. | |
2043 | Save the type of OBJP for later use. | |
2044 | Update calls to find_oload_champ, and find_oload_champ_namespace. | |
2045 | (find_oload_champ_namespace): Take an array of values instead | |
2046 | of types. | |
2047 | (find_oload_champ_namespace_loop): Likewise. | |
2048 | (find_oload_champ): Likewise. | |
2049 | (classify_oload_match): Inspect all arguments | |
2050 | until INCOMPATIBLE is found. Return the worst badness found | |
2051 | otherwise. | |
2052 | (compare_parameters): Update call to rank_one_type. | |
2053 | * value.h (find_overload_match): Take an array of values instead | |
2054 | of types. | |
2055 | ||
3957565a JK |
2056 | 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
2057 | ||
2058 | Drop lazy lm_info reading. | |
2059 | * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p, | |
2060 | l_addr_inferior, l_ld, l_next, l_prev and l_name. | |
2061 | (lm_info_read): New function. | |
2062 | (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove. | |
2063 | (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and | |
2064 | lm_dynamic_from_link_map. | |
2065 | (lm_next, lm_prev, lm_name): Remove. | |
2066 | (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries | |
2067 | initialization incl. read_memory. No longer use lm_name. | |
2068 | (svr4_free_so): Drop lm_info->lm freeing. | |
2069 | (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop | |
2070 | explicit lm_addr and lm initialization. | |
2071 | (svr4_read_so_list): Use lm_info_read, drop the initailization of | |
2072 | fields by hand, incl. read_memory. No longer use lm_next, lm_prev and | |
2073 | lm_name. | |
2074 | ||
cb08cc53 JK |
2075 | 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
2076 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
2077 | ||
2078 | * defs.h (struct so_list): New forward declaration. | |
2079 | (make_cleanup_free_so): New declaration. | |
2080 | * solib-svr4.c (ignore_first_link_map_entry): Remove. | |
2081 | (svr4_free_so): Move the function here from downwards. Handle NULL | |
2082 | so->lm_info. | |
2083 | (svr4_free_library_list): New. | |
2084 | (svr4_read_so_list): New, moved here code from svr4_current_sos. | |
2085 | Use more cleanups. Use new parameter ignore_first instead of | |
2086 | ignore_first_link_map_entry. | |
2087 | (svr4_current_sos): New variable ignore_first, initialize it. New | |
2088 | variable back_to, use it for svr4_free_library_list protection. | |
2089 | (svr4_free_so): Remove - move upwards. | |
2090 | * utils.c: Include solist.h. | |
2091 | (do_free_so, make_cleanup_free_so): New functions. | |
2092 | ||
22c05d8a JK |
2093 | 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2094 | ||
2095 | Fix internal error regression. | |
2096 | * value.c (value_primitive_field): Handle value_optimized_out. Move | |
2097 | packed bitfields comment. | |
2098 | ||
d930d06e TT |
2099 | 2011-10-13 Tom Tromey <tromey@redhat.com> |
2100 | ||
2101 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is | |
2102 | always released. | |
2103 | ||
2ff6b080 TT |
2104 | 2011-10-13 Tom Tromey <tromey@redhat.com> |
2105 | ||
2106 | * python/py-type.c (typy_has_key): Make 'field' const. | |
2107 | ||
d6c5869f LM |
2108 | 2011-10-13 Luis Machado <lgustavo@codesourcery.com> |
2109 | ||
2110 | * remote.c (remote_save_trace_data): Invert comparison. | |
2111 | ||
a70633a2 LM |
2112 | 2011-10-13 Luis Machado <lgustavo@codesourcery.com> |
2113 | ||
2114 | * tracepoint.c (trace_save_command): Use filename instead of | |
2115 | args when printing. | |
2116 | ||
e103e986 JK |
2117 | 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2118 | ||
2119 | * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even | |
2120 | if .size is 0. | |
2121 | ||
db24da6d YQ |
2122 | 2011-10-13 Yao Qi <yao@codesourcery.com> |
2123 | ||
2124 | PR gdb/12703 | |
2125 | * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check | |
2126 | whether insn is a 32-bit Thumb-2 instruction. | |
2127 | (thumb_in_function_epilogue_p): Likewise. | |
2128 | (thumb_get_next_pc_raw): Likewise. | |
2129 | (arm_breakpoint_from_pc): Likewise. | |
2130 | ||
1d6edc3c JK |
2131 | 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2132 | ||
2133 | Fix empty DWARF expressions DATA vs. SIZE conditionals. | |
2134 | * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH. | |
2135 | (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH. | |
2136 | (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA. | |
2137 | (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for | |
2138 | zero DATA. | |
2139 | * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE | |
2140 | validity. | |
2141 | * dwarf2read.c (struct dwarf_block): Comment DATA validity. | |
2142 | (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not | |
2143 | clear DATA on zero SIZE. | |
2144 | ||
adabb602 DE |
2145 | 2011-10-12 Doug Evans <dje@google.com> |
2146 | ||
2147 | * dwarf2read.c (partial_read_comp_unit_head): Set header->offset, | |
2148 | header->first_die_offset here. All callers updated. | |
2149 | ||
5048e516 JK |
2150 | 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2151 | ||
2152 | Fix compatibility with texinfo versions older than 4.12. | |
2153 | * Makefile.in (MAKEINFO): Set to @MAKEINFO@. | |
2154 | (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. | |
2155 | (MAKEHTMLFLAGS): Use MAKEINFO_CMD. | |
2156 | (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS. | |
2157 | * configure: Regenerate. | |
2158 | * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac. | |
2159 | (MAKEINFOFLAGS): Pre-set it to --split-size=5000000. | |
2160 | (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK. | |
2161 | ||
0574c78f GB |
2162 | 2011-10-12 Gary Benson <gbenson@redhat.com> |
2163 | ||
2164 | * breakpoint.h (pc_at_non_inline_function): Declare. | |
2165 | * breakpoint.c (is_non_inline_function, | |
2166 | pc_at_non_inline_function): New functions. | |
2167 | * infrun.c (handle_inferior_event): Don't call skip_inline_frames | |
2168 | if the stop is at a location where functions cannot be inlined. | |
2169 | ||
12d9289a PA |
2170 | 2011-10-12 Pedro Alves <pedro@codesourcery.com> |
2171 | ||
2172 | * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if | |
2173 | the core wanted them stopped, or if they now have a pending event | |
2174 | to report. | |
ecf8e7f5 PA |
2175 | (linux_nat_filter_event): New parameter `new_pending_p'. Pass it |
2176 | down to stop_and_resume_callback. | |
2177 | (linux_nat_wait_1): Always clear `options' when retrying. Handle | |
2178 | having new pending events after calling linux_nat_filter_event. | |
12d9289a | 2179 | |
96408a79 SA |
2180 | 2011-10-11 Sterling Augustine <saugustine@google.com> |
2181 | ||
2182 | * dwarf2read.c: Undo inadvertent changes in previous commit. | |
2183 | ||
9c6c53f7 SA |
2184 | 2011-10-11 Sterling Augustine <saugustine@google.com> |
2185 | ||
2186 | * dwarf2read.c (partial_die_parent_scope): Rearrange conditional | |
2187 | logic. | |
2188 | ||
0e8aefe7 UW |
2189 | 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org> |
2190 | ||
2191 | * symfile.c (separate_debug_file_exists): Fix condition. | |
2192 | ||
349d1385 DM |
2193 | 2011-10-11 David S. Miller <davem@davemloft.net> |
2194 | ||
2195 | * regcache.c (regcache_restore): Do not write unavailable regs, mark | |
2196 | static. | |
2197 | * regcache.h (regcache_restore): Remove declaration. | |
2198 | ||
205c306f DM |
2199 | * gdbarch.sh: New field 'long_long_align_bit'. |
2200 | * gdbarch.c, gdbarch.h: Regenerate. | |
2201 | * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32. | |
2202 | * jit.c (jit_read_code_entry): Use it to determine correct size offset. | |
2203 | ||
941b2081 JK |
2204 | 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2205 | ||
2206 | Revert this part of: | |
2207 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> | |
2208 | Support @entry in input expressions. | |
2209 | * c-exp.y (ENTRY, unknown_cpp_name): New. | |
2210 | (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'. | |
2211 | (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY) | |
2212 | (variable: name_not_typename '@' ENTRY, name: ENTRY) | |
2213 | (name_not_typename: ENTRY): New. | |
2214 | (yylex): Recognize ENTRY. | |
2215 | ||
2216 | Reimplement @entry in input expressions. | |
2217 | * c-exp.y (ENTRY): New. | |
2218 | (variable: name_not_typename ENTRY): New. | |
2219 | (lex_one_token): Optionally return ENTRY instead of the '@' lex. | |
2220 | ||
3c4d7e12 PA |
2221 | 2011-10-11 Pedro Alves <pedro@codesourcery.com> |
2222 | ||
2223 | * linux-nat.c (linux_handle_extended_wait): Always dump both the | |
2224 | parent and child's pids as soon as we detect a clone event. | |
2225 | Adjust another debug message. | |
2226 | ||
ea23808b PA |
2227 | 2011-10-11 Pedro Alves <pedro@codesourcery.com> |
2228 | ||
2229 | * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is | |
2230 | not zombie instead of reading the whole file. | |
2231 | ||
904578ed JK |
2232 | 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2233 | ||
2234 | Fix separate debuginfo warning with "remote:" access. | |
2235 | * objfiles.h (struct objfile): New fields crc32 and crc32_p. | |
2236 | * symfile.c (get_file_crc): New function with the code moved from ... | |
2237 | (separate_debug_file_exists): ... this function, specifically variables | |
2238 | buffer and count. New variable verified_as_different, set it. Remove | |
2239 | file_crc initialization. Verify also if both files are not the same | |
2240 | manually, if needed. | |
2241 | ||
51370a33 YQ |
2242 | 2011-10-11 Yao Qi <yao@codesourcery.com> |
2243 | ||
2244 | * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer | |
2245 | to get address. | |
2246 | ||
0838fb57 DE |
2247 | 2011-10-10 Doug Evans <dje@google.com> |
2248 | ||
2249 | * linux-thread-db.c (thread_db_new_objfile): Only try to load | |
2250 | libthread_db when we load libpthread or the main symbol file. | |
2251 | (thread_db_inferior_created): New function. | |
2252 | (_initialize_thread_db): Attach inferior_created observer. | |
2253 | * linux-nat.c (linux_child_post_attach): Remove call to | |
2254 | check_for_thread_db. | |
2255 | (linux_child_post_startup_inferior): Ditto. | |
2256 | * objfiles.h (OBJF_MAINLINE): Define. | |
2257 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to | |
2258 | allocate_objfile when appropriate. | |
2259 | ||
623bd5b7 UW |
2260 | 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org> |
2261 | ||
2262 | PR gdb/13218 | |
2263 | * arm-linux-nat.c (os_version, os_major, os_minor, os_release): | |
2264 | Remove unused variables. | |
2265 | (get_linux_version): Remove function. | |
2266 | (_initialize_arm_linux_nat): Do not call it. | |
2267 | ||
79395f92 PA |
2268 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
2269 | ||
2270 | * linux-nat.c (linux_handle_extended_wait): Don't resume the new | |
2271 | new clone lwp if the core asked it to stop. Don't pass on | |
2272 | unexpected signals to the new clone; leave them pending instead. | |
2273 | ||
eff3df78 PA |
2274 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
2275 | ||
2276 | * linux-nat.c (resume_lwp): Remove redundant debug output. | |
2277 | ||
4b60df3d PA |
2278 | 2011-10-10 Pedro Alves <pedro@codesourcery.com> |
2279 | ||
2280 | * linux-nat.c (linux_nat_wait_1): Copy the event lwp's | |
2281 | last_resume_kind before clearing it, and use the copy instead to | |
2282 | determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use | |
2283 | resume_clear_callback in the non-stop path too. | |
2284 | ||
6501578c YQ |
2285 | 2011-10-09 Yao Qi <yao@codesourcery.com> |
2286 | ||
2287 | * valprint.c (value_check_printable): Add one parameter OPTIONS. | |
2288 | Honor OPTIONS and VAL's type. | |
2289 | (common_val_print, value_print): Update to pass one more parameter. | |
2290 | ||
5a56e9c5 DE |
2291 | 2011-10-09 Doug Evans <dje@google.com> |
2292 | ||
2293 | Add new "alias" command. | |
2294 | * NEWS: Mention new command. | |
2295 | * command.h (valid_user_defined_cmd_name_p): Declare. | |
2296 | * defs.h (make_cleanup_dyn_string_delete): Declare. | |
2297 | * utils.c: #include "dyn-string.h". | |
2298 | (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions. | |
2299 | * cli/cli-cmds.c: #include "dyn-string.h". | |
2300 | (argv_to_dyn_string, valid_command_p, alias_command): New functions. | |
2301 | (init_cli_cmds): Add new command. | |
2302 | * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function. | |
2303 | ||
509f0fd9 JK |
2304 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2305 | ||
2306 | Fix compatibility with older GCCs. | |
2307 | * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter. | |
2308 | * stack.c (read_frame_arg): Initialize val_deref. | |
2309 | ||
2bda9cc5 JK |
2310 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2311 | ||
2312 | Entry values NEWS entries, DWARF disassembly support. | |
2313 | * NEWS: New entry values entry. | |
2314 | (set print entry-values, show print entry-values) | |
2315 | (set debug entry-values, show debug entry-values): New entries. | |
2316 | * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and | |
2317 | indent. Remove variable start. Move header printing out. Respect | |
2318 | INDENT. Support DW_OP_GNU_entry_value. | |
2319 | (locexpr_describe_location_1): Move the header printing here, extend | |
2320 | the disassemble_dwarf_expression passed parameters. | |
2321 | ||
a471c594 JK |
2322 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2323 | ||
2324 | Display @entry parameter values even for references. | |
2325 | * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also | |
2326 | coerce_ref_if_computed. | |
2327 | * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise. | |
2328 | * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function. | |
2329 | (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the | |
2330 | existing push_dwarf_reg_entry_value call. Add new detection calling | |
2331 | dwarf_block_to_dwarf_reg_deref. Update the error message. | |
2332 | (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size. | |
2333 | * dwarf2expr.h | |
2334 | (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new | |
2335 | parameter deref_size, describe it in the comment. | |
2336 | (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size. | |
2337 | (dwarf_block_to_dwarf_reg_deref): New declaration. | |
2338 | * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter | |
2339 | deref_size, describe it in the function comment. New variables | |
2340 | data_src and size, fetch the alternative block accoring to DEREF_SIZE. | |
2341 | (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size, | |
2342 | describe it in the function comment. Fetch the alternative block | |
2343 | accoring to DEREF_SIZE. | |
2344 | (entry_data_value_coerce_ref, entry_data_value_copy_closure) | |
2345 | (entry_data_value_free_closure, entry_data_value_funcs): New. | |
2346 | (value_of_dwarf_reg_entry): New variables checked_type, target_type, | |
2347 | outer_val, target_val, val and addr. Try to fetch and create also | |
2348 | referenced value content. | |
2349 | (pieced_value_funcs): NULL value for coerce_ref. | |
2350 | (needs_dwarf_reg_entry_value): Add new parameter deref_size. | |
2351 | * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also | |
2352 | coerce_ref_if_computed. | |
2353 | * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref. | |
2354 | * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise. | |
2355 | * stack.c (read_frame_arg): Compare also dereferenced values. | |
2356 | * value.c (value_computed_funcs): Make the parameter v const, use | |
2357 | value_lval_const for it. | |
2358 | (value_lval_const, coerce_ref_if_computed): New function. | |
2359 | (coerce_ref): New variable retval. Call also coerce_ref_if_computed. | |
2360 | * value.h (struct lval_funcs): New field coerce_ref. | |
2361 | (value_computed_funcs): Make the parameter v const. | |
2362 | (value_lval_const, coerce_ref_if_computed): New declarations. | |
2363 | ||
36b11add JK |
2364 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2365 | ||
2366 | Support @entry in input expressions. | |
2367 | * c-exp.y (ENTRY, unknown_cpp_name): New. | |
2368 | (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'. | |
2369 | (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY) | |
2370 | (variable: name_not_typename '@' ENTRY, name: ENTRY) | |
2371 | (name_not_typename: ENTRY): New. | |
2372 | (yylex): Recognize ENTRY. | |
2373 | * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE. | |
2374 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
2375 | Likewise. | |
2376 | * parse.c (operator_length_standard): Likewise. | |
2377 | * std-operator.def: New operator OP_VAR_ENTRY_VALUE. | |
2378 | ||
3343315b JK |
2379 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2380 | ||
2381 | Display referenced values in backtraces. | |
2382 | * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1. | |
2383 | * stack.c (print_frame_arg): Likewise. | |
2384 | ||
ac71a68c JK |
2385 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2386 | ||
2387 | Make some lval_funcs methods to default on NULL. | |
2388 | * valops.c (value_fetch_lazy): Check if lval_computed read method is | |
2389 | NULL. | |
2390 | (value_assign): Check if lval_computed write method is NULL. | |
2391 | * value.h (struct lval_funcs): Comment NULL values for read and write | |
2392 | methods. | |
2393 | ||
e18b2753 JK |
2394 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2395 | ||
2396 | Display @entry parameter values (without references). | |
2397 | * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): | |
2398 | New functions. | |
2399 | * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): | |
2400 | New declarations. | |
2401 | * dwarf2loc.c (dwarf2_find_location_expression): Support location list | |
2402 | entry record. | |
2403 | (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry) | |
2404 | (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New | |
2405 | functions. | |
2406 | (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry. | |
2407 | (loclist_read_variable_at_entry): New function. | |
2408 | (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry. | |
2409 | * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in | |
2410 | DW_AT_location, call dwarf_block_to_sp_offset for it. | |
2411 | * frame.h (print_entry_values_no, print_entry_values_only) | |
2412 | (print_entry_values_preferred, print_entry_values_if_needed) | |
2413 | (print_entry_values_both, print_entry_values_compact) | |
2414 | (print_entry_values_default, print_entry_values): New declarations. | |
2415 | (struct frame_arg): New field entry_kind. | |
2416 | (read_frame_arg): New parameter entryargp. | |
2417 | * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for | |
2418 | arg->entry_kind. Optionally print the `@entry' suffix. | |
2419 | (list_args_or_locals): New variable entryarg, initialize it. | |
2420 | Initialize also entry_kind of arg and entryarg. Conditionalize | |
2421 | list_arg_or_local for arg, add list_arg_or_local for entryarg. Call | |
2422 | xfree for entryarg.error. | |
2423 | * stack.c (print_entry_values_no, print_entry_values_only) | |
2424 | (print_entry_values_preferred, print_entry_values_if_needed) | |
2425 | (print_entry_values_both, print_entry_values_compact) | |
2426 | (print_entry_values_default, print_entry_values_choices) | |
2427 | (print_entry_values): New variables. | |
2428 | (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally | |
2429 | print the `@entry' suffix, possibly in combination for | |
2430 | print_entry_values_compact. | |
2431 | (read_frame_arg): New parameter entryargp, new variables entryval, | |
2432 | entryval_error and val_equal. Read in also entryargp, respect | |
2433 | print_entry_values, compare the values using val_equal, fill in also | |
2434 | argp->entry_kind (together with entryargp->entry_kind). | |
2435 | (print_frame_args): New variable entryarg, initialize it. | |
2436 | Conditionalize print_frame_arg for arg, add print_frame_arg for | |
2437 | entryarg. Call xfree for entryarg.error. | |
2438 | (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'. | |
2439 | * symtab.h (struct symbol_computed_ops): New field | |
2440 | read_variable_at_entry. | |
2441 | ||
93d86cef JK |
2442 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2443 | ||
2444 | Code reshuffle. | |
2445 | * frame.h (struct frame_arg): New definition. | |
2446 | (read_frame_arg): New declaration. | |
2447 | * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ... | |
2448 | (list_args_or_locals): ... the code here. New variable arg, call | |
2449 | read_frame_arg and list_arg_or_local with it. Unify the | |
2450 | PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for | |
2451 | arg.error. | |
2452 | * stack.c (print_frame_arg): New functiom from the code of | |
2453 | print_frame_args. | |
2454 | (read_frame_arg): New function. | |
2455 | (print_frame_args): Remove variable val. New variable arg, call | |
2456 | read_frame_arg and print_frame_arg with it. Call xfree for arg.error. | |
2457 | ||
2d6c5dc2 JK |
2458 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2459 | ||
2460 | Protect entry values against self tail calls. | |
2461 | * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New. | |
2462 | (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall. | |
2463 | ||
111c6489 JK |
2464 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2465 | ||
2466 | Recognize virtual tail call frames. | |
2467 | * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c. | |
2468 | (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h. | |
2469 | (COMMON_OBS): Add dwarf2-frame-tailcall.o. | |
2470 | * dwarf2-frame-tailcall.c: New file. | |
2471 | * dwarf2-frame-tailcall.h: New file. | |
2472 | * dwarf2-frame.c: Include dwarf2-frame-tailcall.h. | |
2473 | (execute_cfa_program): New function comment. Return INSN_PTR. Reset | |
2474 | REGS.PREV only after CIE execution. | |
2475 | (struct dwarf2_frame_cache): New field tailcall_cache. | |
2476 | (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset, | |
2477 | entry_cfa_sp_offset_p and instr. Execute FDE instructions in two | |
2478 | parts, try to find entry_cfa_sp_offset. Call | |
2479 | dwarf2_tailcall_sniffer_first. | |
2480 | (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first | |
2481 | when appropriate. | |
2482 | (dwarf2_frame_dealloc_cache): New function. | |
2483 | (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache. | |
2484 | (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache. | |
2485 | (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache. | |
2486 | (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind. | |
2487 | (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind. | |
2488 | * dwarf2loc.c (func_addr_to_tail_call_list) | |
2489 | (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate) | |
2490 | (call_site_find_chain_1, call_site_find_chain): New. | |
2491 | * dwarf2loc.h (struct call_site_chain): New. | |
2492 | (call_site_find_chain): New declaration. | |
2493 | * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME. | |
2494 | * frame.h (enum frame_type): New entry TAILCALL_FRAME. | |
2495 | * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME. | |
2496 | * stack.c (frame_info): Support also TAILCALL_FRAME. | |
2497 | ||
bb984ff1 JK |
2498 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2499 | ||
2500 | Tail call sites reader implementation. | |
2501 | * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call, | |
2502 | fill in TYPE_TAIL_CALL_LIST. | |
2503 | * gdbtypes.h (struct func_type): New field tail_call_list. | |
2504 | (struct call_site): New field tail_call_next. | |
2505 | (TYPE_TAIL_CALL_LIST): New definition. | |
2506 | ||
8e3b41a9 JK |
2507 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2508 | ||
2509 | Implement basic support for DW_TAG_GNU_call_site. | |
2510 | * block.c: Include gdbtypes.h and exceptions.h. | |
2511 | (call_site_for_pc): New function. | |
2512 | * block.h (call_site_for_pc): New declaration. | |
2513 | * defs.h: Include hashtab.h. | |
2514 | (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New | |
2515 | declarations. | |
2516 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install | |
2517 | ctx_no_push_dwarf_reg_entry_value. | |
2518 | * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL. | |
2519 | (dwarf_block_to_dwarf_reg): New function. | |
2520 | (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it. | |
2521 | (ctx_no_push_dwarf_reg_entry_value): New function. | |
2522 | * dwarf2expr.h (struct dwarf_expr_context_funcs): New field | |
2523 | push_dwarf_reg_entry_value. | |
2524 | (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New | |
2525 | declarations. | |
2526 | * dwarf2loc.c: Include gdbcmd.h. | |
2527 | (dwarf_expr_ctx_funcs): New forward declaration. | |
2528 | (entry_values_debug, show_entry_values_debug, call_site_to_target_addr) | |
2529 | (dwarf_expr_reg_to_entry_parameter) | |
2530 | (dwarf_expr_push_dwarf_reg_entry_value): New. | |
2531 | (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value. | |
2532 | (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR. | |
2533 | (needs_dwarf_reg_entry_value): New function. | |
2534 | (needs_frame_ctx_funcs): Install it. | |
2535 | (_initialize_dwarf2loc): New function. | |
2536 | * dwarf2loc.h (entry_values_debug): New declaration. | |
2537 | * dwarf2read.c (struct dwarf2_cu): New field call_site_htab. | |
2538 | (read_call_site_scope): New forward declaration. | |
2539 | (process_full_comp_unit): Copy call_site_htab. | |
2540 | (process_die): Support DW_TAG_GNU_call_site. | |
2541 | (read_call_site_scope): New function. | |
2542 | (dwarf2_get_pc_bounds): Support NULL HIGHPC. | |
2543 | (dwarf_tag_name): Support DW_TAG_GNU_call_site. | |
2544 | (cleanup_htab): Delete. | |
2545 | (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it. | |
2546 | * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR. | |
2547 | * gdb-gdb.py (StructMainTypePrettyPrinter): Support | |
2548 | FIELD_LOC_KIND_DWARF_BLOCK. | |
2549 | * gdbtypes.h (enum field_loc_kind): New entry | |
2550 | FIELD_LOC_KIND_DWARF_BLOCK. | |
2551 | (struct main_type): New loc entry dwarf_block. | |
2552 | (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK) | |
2553 | (TYPE_FIELD_DWARF_BLOCK): New. | |
2554 | * python/py-type.c: Include dwarf2loc.h. | |
2555 | (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New | |
2556 | internal_error call on unknown FIELD_LOC_KIND. | |
2557 | * symtab.h (struct symtab): New field call_site_htab. | |
2558 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete) | |
2559 | (core_addr_hash, core_addr_eq): New functions. | |
2560 | ||
b6cdc2c1 JK |
2561 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2562 | ||
2563 | Code reshuffle. | |
2564 | * gdb-gdb.py (StructMainTypePrettyPrinter): Change | |
2565 | TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move | |
2566 | calling_convention under func_stuff there. | |
2567 | * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC. | |
2568 | (init_type) <TYPE_CODE_FUNC>: Likewise. | |
2569 | (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to | |
2570 | TYPE_SPECIFIC_FUNC. New comment for tail_call_list. | |
2571 | * gdbtypes.h (enum type_specific_kind): Change | |
2572 | TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. | |
2573 | (struct main_type) <type_specific>: Change calling_convention to | |
2574 | func_stuff. Move calling_convention to ... | |
2575 | (struct func_type): ... this new struct. | |
2576 | (INIT_FUNC_SPECIFIC): New #define. | |
2577 | (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff. | |
2578 | ||
181cebd4 JK |
2579 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2580 | ||
2581 | Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches. | |
2582 | * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size. | |
2583 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use | |
2584 | ctx->ref_addr_size. Handle its invalid value. | |
2585 | * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size. | |
2586 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) | |
2587 | (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size. | |
2588 | * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration. | |
2589 | * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size. | |
2590 | (dwarf2_per_cu_ref_addr_size): New function. | |
2591 | ||
c471e790 JK |
2592 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2593 | ||
2594 | Code cleanup. | |
2595 | * dwarf2read.c (per_cu_header_read_in): New function. | |
2596 | (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new | |
2597 | variables cu_header_local and cu_headerp. | |
2598 | ||
741f5e3c JK |
2599 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2600 | ||
2601 | Fix initial language detection with -readnow. | |
2602 | * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case. | |
2603 | * symfile.h (struct quick_symbol_functions): State find_symbol_file | |
2604 | searches only for global symbols. | |
2605 | ||
a73d2258 JK |
2606 | 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2607 | ||
2608 | Fix printed anonymous struct name. | |
2609 | * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also | |
2610 | DW_TAG_interface_type. Strip for anonymous structs any prefixes. | |
2611 | (anonymous_struct_prefix): New function. | |
2612 | (determine_prefix): New variables retval. Call anonymous_struct_prefix. | |
2613 | (dwarf2_name): Strip for anonymous structs any prefixes. | |
2614 | ||
749fd4ea DE |
2615 | 2011-10-07 Doug Evans <dje@google.com> |
2616 | ||
1fa57852 DE |
2617 | * python/lib/gdb/printing.py (register_pretty_printer): New argument |
2618 | `replace'. | |
2619 | ||
690a4937 DE |
2620 | * python/lib/gdb/printing.py: Whitespace cleanup. |
2621 | ||
749fd4ea DE |
2622 | * python/py-value.c (valpy_call): Initialize ftype to avoid compiler |
2623 | warning. | |
2624 | ||
4c38200f PA |
2625 | 2011-10-07 Pedro Alves <pedro@codesourcery.com> |
2626 | ||
2627 | * linux-nat.h (ALL_LWPS): Remove the ptid parameter. | |
2628 | * amd64-linux-nat.c (amd64_linux_dr_set_control) | |
2629 | (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust. | |
2630 | * arm-linux-nat.c (arm_linux_insert_hw_breakpoint) | |
2631 | (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint) | |
2632 | (arm_linux_remove_watchpoint): Adjust. | |
2633 | * i386-linux-nat.c (i386_linux_dr_set_control) | |
2634 | (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust. | |
2635 | * ia64-linux-nat.c (ia64_linux_insert_watchpoint) | |
2636 | (ia64_linux_remove_watchpoint): Adjust. | |
2637 | * mips-linux-nat.c (write_watchpoint_regs): Adjust. | |
2638 | * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint) | |
2639 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
2640 | (ppc_linux_insert_mask_watchpoint) | |
2641 | (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint) | |
2642 | (ppc_linux_remove_watchpoint): Adjust. | |
2643 | * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): | |
2644 | Adjust. | |
2645 | ||
b7ff339d CV |
2646 | 2011-10-07 Corinna Vinschen <vinschen@redhat.com> |
2647 | ||
2648 | * windows-nat.c: Include wchar.h to avoid compiler warnings. | |
2649 | (clear_win32_environment): New function for Cygwin to clear out | |
2650 | Win32 environment. | |
2651 | (windows_create_inferior): Prepare new environment from in_env | |
2652 | for Cygwin, too. | |
2653 | ||
f287c1f3 PM |
2654 | 2011-10-07 Phil Muldoon <pmuldoon@redhat.com> |
2655 | ||
5631e596 | 2656 | PR python/13264 |
f287c1f3 PM |
2657 | * python/py-value.c (valpy_call): Check that arguments are |
2658 | a tuple. | |
2659 | (is_intlike): Remove call to CHECK_TYPEDEF. | |
2660 | (valpy_nonzero): Catch GDB exceptions. | |
2661 | (valpy_absolute): Ditto. | |
2662 | (valpy_lazy_string): Ditto. | |
2663 | (valpy_call): Ditto. | |
2664 | (valpy_get_is_optimized_out): Ditto. | |
2665 | (valpy_long): Ditto. | |
2666 | (valpy_float): Ditto. | |
2667 | (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions. | |
2668 | (valpy_richcompare): Ditto. | |
2669 | ||
03583c20 UW |
2670 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
2671 | ||
2672 | * inferior.h (disable_randomization): Declare. | |
2673 | * infrun.c (disable_randomization): New global variable. | |
2674 | (show_disable_randomization): New function. | |
2675 | (set_disable_randomization): Likewise. | |
2676 | (_initialize_infrun): Install set/show disable-randomization | |
2677 | commands. | |
2678 | * linux-nat.c (disable_randomization): Remove. | |
2679 | (show_disable_randomization): Likewise. | |
2680 | (set_disable_randomization): Likewise. | |
2681 | (_initialize_linux_nat): No longer install set/show | |
2682 | disable-randomization commands here. | |
2683 | (linux_nat_supports_disable_randomization): New function. | |
2684 | (linux_nat_add_target): Install it. | |
2685 | * remote.c (PACKET_QDisableRandomization): New enum value. | |
2686 | (remote_protocol_packets): Support QDisableRandomization. | |
2687 | (_initialize_remote): Likewise. | |
2688 | (remote_supports_disable_randomization): New function. | |
2689 | (init_remote_ops): Install it. | |
2690 | (extended_remote_supports_disable_randomization): New function. | |
2691 | (init_extended_remote_ops): Install it. | |
2692 | (extended_remote_disable_randomization): New function. | |
2693 | (extended_remote_create_inferior_1): Call it. | |
2694 | * target.h (struct target_ops): Add to_supports_disable_randomization. | |
2695 | (target_supports_disable_randomization): Add prototype. | |
2696 | * target.c (target_supports_disable_randomization): New function. | |
2697 | (find_default_supports_disable_randomization): Likewise. | |
2698 | (init_dummy_target): Install it. | |
2699 | ||
20c168b5 KP |
2700 | 2011-10-07 Kevin Pouget <kevin.pouget@st.com> |
2701 | ||
2702 | Allow Python notification of new object-file loadings. | |
2703 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c. | |
2704 | (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o. | |
2705 | Add build rule for this file. | |
2706 | * python/py-event.h (emit_new_objfile_event): New prototype. | |
2707 | (newobjfile): New Python event emitter. | |
2708 | * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to | |
2709 | Python event registry. | |
2710 | * python/py-inferior.c: Include objfiles.h | |
2711 | (python_new_objfile): New function. | |
2712 | (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile | |
2713 | observers. | |
2714 | * python/py-newobjfileevent.c: New file. | |
2715 | * python-internal.h (gdbpy_initialize_new_objfile_event): New | |
2716 | prototype. | |
2717 | * python/python.c (_initialize_python): Add | |
2718 | gdbpy_initialize_new_objfile_event call. | |
2719 | * NEWS: Add item for new Python event "gdb.newobjfile" | |
2720 | ||
b1c8db38 TG |
2721 | 2011-10-05 Tristan Gingold <gingold@adacore.com> |
2722 | ||
2723 | * ada-tasks.c (read_atcb): Make ravenscar_task_name static. | |
2724 | Extract the ravenscar task name from the symbol for the atcb. | |
2725 | ||
0dab82e9 PK |
2726 | 2011-10-04 Paul Koning <paul_koning@dell.com> |
2727 | ||
2728 | * python/py-type.c (typy_make_iter): Add forward declaration. | |
2729 | (typy_fields_items): Use the gdb.Type iterator. | |
2730 | ||
84ad80e6 PK |
2731 | 2011-10-04 Paul Koning <paul_koning@dell.com> |
2732 | ||
2733 | * NEWS: Add entry for Python gdb.Type mapping methods. | |
2734 | ||
cb6be26b KP |
2735 | 2011-10-04 Kevin Pouget <kevin.pouget@st.com> |
2736 | ||
2737 | PR python/12691: Add the inferior to Python exited event | |
2738 | * python/py-exitedevent.c (create_exited_event_object): Add inferior | |
2739 | to exited_event. | |
2740 | * python/py-event.h (emit_exited_event): Likewise | |
2741 | * python/-inferior.c (python_inferior_exit): Likewise | |
2742 | ||
6005b210 JB |
2743 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
2744 | ||
2745 | * ada-tasks.c (print_ada_task_info): Add "thread-id" field | |
2746 | in output of -ada-task-info GDB/MI command. | |
2747 | ||
75082e8c JB |
2748 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
2749 | ||
2750 | * ada-lang.h (struct inferior): Declare. | |
2751 | (print_ada_task_info): Add declaration. | |
2752 | * ada-tasks.c (print_ada_task_info): Make non-static. | |
2753 | * mi/mi-cmds.c (mi_cmds): Add "ada-task-info". | |
2754 | * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration. | |
2755 | * mi/mi-main.c: #include "ada-lang.h". | |
2756 | (mi_cmd_list_features): Add "ada-task-info" to the list | |
2757 | of supported features. | |
2758 | (mi_cmd_ada_task_info): New function. | |
2759 | ||
7ed7d719 JB |
2760 | 2011-10-03 Joel Brobecker <brobecker@adacore.com> |
2761 | ||
2762 | * python/python.c (python_run_simple_file): New function. | |
2763 | (source_python_script, source_python_script_for_objfile): | |
2764 | Replace call to PyRun_SimpleFile by call to | |
2765 | python_run_simple_file. | |
2766 | ||
3fcaed38 PK |
2767 | 2011-10-03 Paul Koning <paul_koning@dell.com> |
2768 | ||
2769 | * python/py-value.c (valpy_get_address): Use Py_XINCREF. | |
2770 | (value_to_value_object): Fetch value if it was lazy. | |
2771 | ||
8e5c319d JK |
2772 | 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2773 | ||
2774 | Code cleanup. | |
2775 | * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. | |
2776 | Rearrange the code for it. | |
2777 | ||
dd11a36c JB |
2778 | 2011-10-02 Joel Brobecker <brobecker@adacore.com> |
2779 | ||
2780 | * breakpoint.c (bkpt_print_recreate): Add call to | |
2781 | print_recreate_thread. | |
2782 | ||
723b724b MF |
2783 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
2784 | ||
2785 | * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC, | |
2786 | PTRACE_GETFDPIC_INTERP): Define. | |
2787 | ||
412946b6 YQ |
2788 | 2011-09-28 Yao Qi <yao@codesourcery.com> |
2789 | ||
2790 | * symfile.c (add_symbol_file_command): Update message on usage. | |
2791 | ||
a73bb892 PK |
2792 | 2011-09-28 Paul Koning <paul_koning@dell.com> |
2793 | ||
2794 | * python/py-type.c (make_fielditem, typy_field_names, typy_items) | |
2795 | (typy_length, typy_get, typy_has_key, typy_make_iter) | |
2796 | (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter) | |
2797 | (typy_iterator_iter, typy_iterator_iternext) | |
2798 | (typy_iterator_dealloc): New functions to implement standard | |
2799 | Python mapping methods on gdb.Type object. | |
2800 | (gdb.TypeIterator): New Python type. | |
2801 | * python/python-internal.h (gdbpy_iter_kind): New enum. | |
a73bb892 | 2802 | |
fe10a582 DM |
2803 | 2011-09-28 David S. Miller <davem@davemloft.net> |
2804 | ||
2805 | * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM, | |
2806 | SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums. | |
2807 | * sparc-tdep.c (sparc_complex_floating_p): New function. | |
2808 | (sparc32_store_arguments): Handle complex floats. | |
2809 | (sparc32_extract_return_value): Likewise. | |
2810 | (sparc32_store_return_value): Likewise. | |
2811 | (sparc32_stabs_argument_has_addr): Likewise. | |
2812 | * sparc64-tdep.c (sparc64_complex_floating_p): New function. | |
2813 | (sparc64_store_floating_fields): Handle complex floats. | |
2814 | (sparc64_store_arguments): Likewise. | |
2815 | (sparc64_store_return_value): Likewise. | |
2816 | ||
c93dbcba EZ |
2817 | 2011-09-28 Eli Zaretskii <eliz@gnu.org> |
2818 | ||
2819 | * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from | |
2820 | before the change on 2006-12-09. | |
2821 | (windows_create_inferior) [!__CYGWIN__]: Restore code that | |
2822 | generates the environment block for CreateProcessA, modulo the | |
2823 | Cygwin-specific parts that are not needed here. | |
2824 | ||
f00c55f8 TG |
2825 | 2011-09-27 Tristan Gingold <gingold@adacore.com> |
2826 | ||
2827 | * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO. | |
2828 | * solib-darwin.c (DYLD_VERSION_MAX): Update number. | |
2829 | (darwin_solib_get_all_image_info_addr_at_init): New function. | |
2830 | (darwin_solib_read_all_image_info_addr): Likewise. | |
2831 | (darwin_solib_create_inferior_hook): Use the above two functions. | |
2832 | * darwin-nat.c (darwin_execvp): Renames retval to res. | |
2833 | (darwin_read_write_inferior): Update comment. | |
2834 | (darwin_read_dyld_info): New function. | |
2835 | (darwin_xfer_partial): Handle DYLD_INFO. | |
2836 | ||
6710bf39 SS |
2837 | 2011-09-27 Stan Shebs <stan@codesourcery.com> |
2838 | ||
2839 | Add return address collection for tracepoints. | |
2840 | * tracepoint.c (encode_actions_1): Add case for $_ret. | |
2841 | (validate_actionline): Check for $_ret. | |
2842 | (trace_dump_actions): Ditto. | |
2843 | * ax-gdb.h (gen_trace_for_return_address): Declare. | |
2844 | * ax-gdb.c: Include arch-utils.h. | |
2845 | (gen_trace_for_return_address): New function. | |
2846 | (agent_command): Add return address special case. | |
2847 | * amd64-tdep.c: Include ax.h and ax-gdb.h. | |
2848 | (amd64_gen_return_address): New function. | |
2849 | (amd64_init_abi): Call it. | |
2850 | * i386-tdep.c: Include ax.h and ax-gdb.h. | |
2851 | (i386_gen_return_address): New function. | |
2852 | (i386_init_abi): Call it. | |
2853 | * arch-utils.h (default_gen_return_address): Declare. | |
2854 | * arch-utils.c (default_gen_return_address): New function. | |
2855 | * gdbarch.sh (gen_return_address): New method. | |
2856 | * gdbarch.h, gdbarch.c: Regenerate. | |
2857 | ||
e04e5beb JM |
2858 | 2011-09-23 Joseph Myers <joseph@codesourcery.com> |
2859 | ||
2860 | PR gdb/13079 | |
2861 | * i386-tdep.c (i386_frame_align): New. | |
2862 | (i386_gdbarch_init): Use i386_frame_align. | |
2863 | ||
f3d6df6d YQ |
2864 | 2011-09-23 Yao Qi <yao@codesourcery.com> |
2865 | ||
2866 | * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer | |
2867 | to get address. | |
2868 | ||
e69860f1 TG |
2869 | 2011-09-22 Tristan Gingold <gingold@adacore.com> |
2870 | ||
2871 | * fork-child.c (fork_inferior): Add exec_fun parameter. | |
2872 | Call exec_fun or execvp. | |
2873 | * inferior.h: Adjust prototype. | |
2874 | * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call. | |
2875 | * inf-ttrace.c (inf_ttrace_create_inferior): Ditto. | |
2876 | * inf-ptrace.c (inf_ptrace_create_inferior): Ditto. | |
2877 | * procfs.c (procfs_create_inferior): Ditto. | |
2878 | * darwin-nat.c (darwin_execvp): New function. | |
2879 | (darwin_create_inferior): Use it. | |
2880 | ||
4b51d87b YQ |
2881 | 2011-09-22 Yao Qi <yao@codesourcery.com> |
2882 | ||
2883 | * infrun.c (context_switch): Print debug message when switching to | |
2884 | a different thread. | |
2885 | ||
56b9d9ac UW |
2886 | 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com> |
2887 | ||
2888 | * s390-tdep.c (s390_function_arg_pass_by_reference): Handle | |
2889 | complex and vector types. | |
2890 | (s390_return_value_convention): Likewise. | |
2891 | ||
2892 | (s390_value_from_register): Call check_typedef. | |
2893 | (extend_simple_arg): Likewise. | |
2894 | (alignment_of): Likewise. | |
2895 | (s390_push_dummy_call): Likewise. | |
2896 | (s390_return_value): Likewise. | |
2897 | ||
b2cd6b29 JM |
2898 | 2011-09-21 Joseph Myers <joseph@codesourcery.com> |
2899 | ||
2900 | * event-top.c (async_disconnect): If an exception is thrown from | |
2901 | quit_cover, call pop_all_targets. Use TRY_CATCH instead of | |
2902 | catch_errors. | |
2903 | * top.c (quit_cover): Return void and take no arguments. | |
2904 | * top.h (quit_cover): Update prototype. | |
2905 | ||
67ba4e42 JM |
2906 | 2011-09-20 Joseph Myers <joseph@codesourcery.com> |
2907 | ||
2908 | * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to | |
2909 | current_uiout, not uiout. | |
2910 | ||
562f943b DE |
2911 | 2011-09-19 Doug Evans <dje@google.com> |
2912 | ||
2913 | * python/py-auto-load.c (source_section_scripts): Fix file | |
2914 | descriptor leak. | |
2915 | * python/python.c (source_python_script_for_objfile): Tweak comments. | |
2916 | ||
34518530 YQ |
2917 | 2011-09-18 Yao Qi <yao@codesourcery.com> |
2918 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
2919 | ||
2920 | Support displaced stepping for Thumb 16-bit insns. | |
2921 | * arm-tdep.c (THUMB_NOP) Define. | |
2922 | (thumb_copy_unmodified_16bit): New. | |
2923 | (thumb_copy_b, thumb_copy_bx_blx_reg): New. | |
2924 | (thumb_copy_alu_reg): New. | |
2925 | (arm_copy_svc): Move some common code to ... | |
2926 | (install_svc): ... here. New. | |
2927 | (thumb_copy_svc): New. | |
2928 | (install_pc_relative): New. | |
2929 | (thumb_copy_pc_relative_16bit): New. | |
2930 | (thumb_decode_pc_relative_16bit): New. | |
2931 | (thumb_copy_16bit_ldr_literal): New. | |
2932 | (thumb_copy_cbnz_cbz): New. | |
2933 | (cleanup_pop_pc_16bit_all): New. | |
2934 | (thumb_copy_pop_pc_16bit): New. | |
2935 | (thumb_process_displaced_16bit_insn): New. | |
2936 | (thumb_process_displaced_32bit_insn): New. | |
2937 | (thumb_process_displaced_insn): process thumb instruction. | |
2938 | ||
2939 | Support displaced stepping for Thumb 32-bit insns. | |
2940 | * arm-tdep.c (thumb_copy_unmodified_32bit): New. | |
2941 | (thumb2_copy_preload): New. | |
2942 | (thumb2_copy_copro_load_store): New. | |
2943 | (thumb2_copy_b_bl_blx): New. | |
2944 | (thumb2_copy_alu_imm): New. | |
2945 | (thumb2_copy_load_reg_imm): New. | |
2946 | (thumb2_copy_load_literal): New | |
2947 | (thumb2_copy_block_xfer): New. | |
2948 | (thumb_32bit_copy_undef): New. | |
2949 | (thumb_32bit_copy_unpred): New. | |
2950 | (thumb2_decode_ext_reg_ld_st): New. | |
2951 | (thumb2_decode_svc_copro): New. | |
2952 | (decode_thumb_32bit_store_single_data_item): New. | |
2953 | (thumb_copy_pc_relative_32bit): New. | |
2954 | (thumb_decode_pc_relative_32bit): New. | |
2955 | (decode_thumb_32bit_ld_mem_hints): New. | |
2956 | (thumb2_copy_table_branch): New | |
2957 | (thumb_process_displaced_32bit_insn): Process Thumb 32-bit | |
2958 | instructions. | |
2959 | ||
2b16b2e3 YQ |
2960 | 2011-09-18 Yao Qi <yao@codesourcery.com> |
2961 | ||
2962 | * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned. | |
2963 | (install_b_bl_blx): Likewise. | |
2964 | ||
0f6f04ba YQ |
2965 | 2011-09-17 Yao Qi <yao@codesourcery.com> |
2966 | ||
2967 | * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ... | |
2968 | (install_load_store): ... this. New. | |
2969 | Change parameter BYTE to SIZE. | |
2970 | (arm_copy_ldr_str_ldrb_strb): Update caller. | |
2971 | (arm_decode_ld_st_word_ubyte): Update caller. | |
2972 | ||
e2d96639 YQ |
2973 | 2011-09-17 Yao Qi <yao@codesourcery.com> |
2974 | ||
2975 | * infrun.c (displaced_step_fixup): Move some code ... | |
2976 | (displaced_step_restore): ... here. New function. | |
2977 | (handle_inferior_event): Cleanup displaced stepping state for both | |
2978 | child and parent when get forked or vforked event. | |
2979 | * regcache.c (get_thread_arch_aspace_regcache): New function. | |
2980 | get_thread_arch_regcache (): Call it. | |
2981 | ||
a8123151 JB |
2982 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2983 | ||
2984 | * ada-tasks.c (print_ada_task_info): New function, merging | |
2985 | short_task_info and info_tasks together. Reimplement using | |
2986 | ui-out instead of printing to stdout directly. Move the code | |
2987 | building and checking the task list here, instead of leaving it | |
2988 | in info_tasks_command. | |
2989 | (info_task): Move the code building and checking the task | |
2990 | list here, instead of leaving it in info_tasks_command. | |
2991 | (info_tasks_command): Delete code building and checking | |
2992 | the task list - moved elsewhere. Update calls to info_tasks | |
2993 | and info_task. | |
2994 | ||
fbf06824 JB |
2995 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
2996 | ||
2997 | * ada-tasks.c (info_task): Delete parameter `from_tty'. | |
2998 | ||
34a0bc90 JB |
2999 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
3000 | ||
3001 | * ada-tasks.c (info_tasks): Delete parameter `from_tty'. | |
3002 | ||
79779fa9 JB |
3003 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
3004 | ||
3005 | * ada-lang.h (ada_build_task_list): Remove parameter | |
3006 | `warn_if_null'. | |
3007 | * ada-tasks.c (ada_build_task_list): Remove parameter | |
3008 | `warn_if_null'. Adjust implementation and documentation. | |
3009 | (valid_task_id, ada_get_environment_task) | |
3010 | iterate_over_live_ada_tasks): Adjust call to ada_build_task_list. | |
3011 | (info_tasks_command): Adjust implementation. | |
3012 | (task_command): Likewise. | |
3013 | * ravenscar-thread.c (ravenscar_find_new_threads): Fix call | |
3014 | to ada_build_task_list. | |
3015 | ||
e225eb91 JB |
3016 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
3017 | ||
3018 | * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete. | |
3019 | (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New. | |
3020 | (ada_tasks_inferior_data_handle): New static global. | |
3021 | (get_ada_tasks_inferior_data): New function. | |
3022 | (ada_get_task_number, get_task_number_from_id, valid_task_id) | |
3023 | (ada_get_environment_task, iterate_over_live_ada_tasks) | |
3024 | (add_ada_task, read_known_tasks_array, read_known_tasks_list): | |
3025 | Adjust. | |
3026 | (ada_set_current_inferior_known_tasks_addr): New function. | |
3027 | (read_known_tasks, ada_build_task_list, short_task_info) | |
3028 | (info_tasks, info_task, info_tasks_command, task_command_1) | |
3029 | (task_command, ada_task_list_changed): Adjust. | |
3030 | (ada_tasks_invalidate_inferior_data): New function. | |
3031 | (ada_normal_stop_observer, ada_new_objfile_observer): Adjust. | |
3032 | (_initialize_tasks): Set ada_tasks_inferior_data_handle. | |
3033 | * ada-lang.h (struct inferior): Add declaration. | |
3034 | (ada_task_list_changed): Update profile. | |
3035 | * remote-wtx-pd.c: #include "inferior.h". | |
3036 | (switch_to_pd_internal): Update call to ada_task_list_changed. | |
3037 | ||
6da9ca05 JB |
3038 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
3039 | ||
3040 | * ada-tasks.c: #include "progspace.h" and "objfiles.h". | |
3041 | (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type) | |
3042 | (atcb_fieldno): Delete these static globals. | |
3043 | (struct ada_tasks_pspace_data): New struct. | |
3044 | (ada_tasks_pspace_data_handle): New static global. | |
3045 | (get_ada_tasks_pspace_data): New function. | |
3046 | (ada_tasks_invalidate_pspace_data): New function. | |
3047 | (get_tcb_types_info, ptid_from_atcb_common, read_atcb) | |
3048 | (read_known_tasks_list, ada_new_objfile_observer): Adjust. | |
3049 | (_initialize_tasks): Create this module's per-progspace | |
3050 | data handle. | |
3051 | ||
dccd3cbd JB |
3052 | 2011-09-16 Joel Brobecker <brobecker@adacore.com> |
3053 | ||
3054 | * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. | |
3055 | ||
f877b031 TG |
3056 | 2011-09-16 Tristan Gingold <gingold@adacore.com> |
3057 | ||
3058 | * fork-child.c (fork_inferior): Update comment. Use alloca | |
3059 | instead of xmalloc for argv. Move len and shell_command | |
3060 | declarations in the block where they are used. | |
3061 | Only call execvp. Factorize failure code. | |
3062 | ||
ae0c443d JK |
3063 | 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com> |
3064 | ||
3065 | Code cleanup. | |
3066 | * parse.c (write_exp_elt): Change argument to pass a pointer of union | |
3067 | `exp_element' instead of an element of the same and make the function | |
3068 | static. | |
3069 | (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block) | |
3070 | (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst) | |
3071 | (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern): | |
3072 | Change argument of `write_exp_elt' function call. | |
3073 | Remove extra spaces from comments. | |
3074 | * parser-defs.h (write_exp_elt): Remove prototype. | |
3075 | ||
5af65ec0 PK |
3076 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
3077 | ||
3078 | * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference | |
3079 | count of item appended to list. | |
3080 | * python/py-type.c (typy_fields): Likewise. | |
3081 | ||
72be8ccc PK |
3082 | 2011-09-15 Paul Koning <paul_koning@dell.com> |
3083 | ||
883640a8 | 3084 | * MAINTAINERS (Write After Approval): Add myself to the list. |
72be8ccc | 3085 | |
92f6badc KP |
3086 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
3087 | ||
3088 | PR threads/12628 | |
3089 | * linux-fork.c (checkpoint_command): Disallow checkpointing of | |
3090 | processes with multiple threads. | |
3091 | (inf_has_multiple_thread_cb): New function. | |
3092 | (inf_has_multiple_threads): New function. | |
3093 | ||
0672bf41 | 3094 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
2aa48337 KP |
3095 | |
3096 | PR Python/12692 Add gdb.selected_inferior() to Python interface. | |
3097 | * python/py-inferior.c (GdbMethods): New Python method definition. | |
3098 | ||
6839b47f KP |
3099 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
3100 | ||
3101 | Handle multiple breakpoint hits in Python interface: | |
3102 | * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python | |
3103 | variable to breakpoints. | |
3104 | * python/py-stopevent.c (emit_stop_event): Return a Python tuple of | |
3105 | bps instead of single breakpoint. Fix some space typos. | |
3106 | * python/py-stopevent.c (create_breakpoint_event_object): Rename | |
3107 | variable to breakpoints. | |
3108 | ||
672f9b60 KP |
3109 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
3110 | ||
3111 | * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate' | |
3112 | note if the breakpoint is internal. | |
3113 | ||
43675ae4 KP |
3114 | 2011-09-15 Kevin Pouget <kevin.pouget@st.com> |
3115 | ||
0672bf41 | 3116 | * MAINTAINERS (Write After Approval): Add myself to the list |
43675ae4 | 3117 | |
15148d6a PA |
3118 | 2011-09-14 Pedro Alves <pedro@codesourcery.com> |
3119 | ||
3120 | * infrun.c (prepare_for_detach, wait_for_inferior) | |
3121 | (fetch_inferior_event): Don't flush the register cache. | |
3122 | * remote.c (struct stop_reply) <regcache>: Add comment. | |
3123 | ||
d83e736b JK |
3124 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3125 | ||
3126 | Remove excessive DWARF expressions memory duplication. | |
3127 | * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use | |
3128 | for block.data. | |
3129 | (indirect_pieced_value): Remove variable result. Remove variable | |
3130 | back_to and its use for baton.data. | |
3131 | (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for | |
3132 | block.data. | |
3133 | * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup. | |
3134 | Update the function comment. | |
3135 | ||
c65b3e0d PA |
3136 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
3137 | ||
3138 | * inferior.h (ALL_INFERIORS): New. | |
3139 | * linux-thread-db.c (thread_db_find_new_threads_2): Remove check | |
3140 | for a stopped thread. | |
3141 | (thread_db_find_new_threads): Look for threads in all inferiors. | |
3142 | ||
a1398e0c PA |
3143 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
3144 | ||
3145 | * breakpoint.c (update_watchpoint): Handle the case of the | |
3146 | watchpoint to update not being in the breakpoint list yet. | |
3147 | (hw_watchpoint_use_count): New, factored out from | |
3148 | hw_watchpoint_used_count. | |
3149 | (hw_watchpoint_used_count): Rename to ... | |
3150 | (hw_watchpoint_used_count_others): ... this. Add `except' | |
3151 | parameter. Don't count resources of `except'. Use | |
3152 | hw_watchpoint_use_count. | |
3153 | ||
30596231 PA |
3154 | 2011-09-13 Pedro Alves <pedro@codesourcery.com> |
3155 | ||
3156 | * gdbthread.h (enum thread_state): Moved here. | |
3157 | (struct thread_info): Rename `executing_' field to `executing' and | |
3158 | `state_' to `state'. | |
3159 | * thread.c (enum thread_state): Moved to gdbthread.h. | |
3160 | (new_thread, add_thread_silent, delete_thread_1) | |
3161 | (any_live_thread_of_process, thread_alive, set_running) | |
3162 | (set_running, is_thread_state, any_running, is_executing) | |
3163 | (set_executing, finish_thread_state, print_thread_info) | |
3164 | (do_captured_thread_select): Adjust. | |
3165 | ||
bede5f5f JK |
3166 | 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3167 | ||
3168 | Fix compatibility with gcc < 4.3 and non-gcc compilers. | |
3169 | * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants. | |
3170 | ||
4801a9a3 PA |
3171 | 2011-09-12 Pedro Alves <pedro@codesourcery.com> |
3172 | Matt Rice <ratmice@gmail.com> | |
3173 | ||
3174 | PR gdb/13175 | |
3175 | ||
3176 | * interps.c (struct interp) <interpreter_out>: Delete field. | |
3177 | (interp_new): Remove the data and uiout parameters and adjust. | |
3178 | (interp_set): Only set the current_uiout from the interpreter's | |
3179 | uiout after initializing the interpreter. Adjust call to | |
3180 | init_proc. | |
3181 | (interp_ui_out): Adjust to call procs->ui_out_proc. | |
3182 | (interp_data, interp_name): New. | |
3183 | * interps.h (interp_init_ftype): Add `self' parameter. | |
3184 | (interp_ui_out_ftype): New typedef. | |
3185 | (struct interp_procs) <ui_out_proc>: New method pointer. | |
3186 | (interp_new): Remove the data and uiout parameters. | |
3187 | (interp_data, interp_name): Declare. | |
3188 | * tui/tui-interp.c (tui_init): Adjust prototype. | |
3189 | (tui_ui_out): New. | |
3190 | (_initialize_tui_interp): Install tui_ui_out. Don't instanciate | |
3191 | tui_out here. Adjust call to interp_new. | |
3192 | * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here. | |
3193 | * cli/cli-interp.c (cli_interpreter_init): Adjust prototype. | |
3194 | (cli_ui_out): New. | |
3195 | (_initialize_cli_interp): Install it. Adjust call to interp_new. | |
3196 | * mi/mi-common.h (struct mi_interp) <uiout>: New field. | |
3197 | * mi/mi-interp.c (mi_interpreter_init): Adjust prototype. | |
3198 | Initialize mi->uiout depending on the mi_version as extracted from | |
3199 | the interpreter's name. | |
3200 | (mi_ui_out): New. | |
3201 | (_initialize_mi_interp): Install mi_ui_out. Adjust calls to | |
3202 | interp_new. Don't allocate the ui_out's of the interpreters here. | |
3203 | ||
d0afda03 | 3204 | 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com> |
59145f8c | 3205 | |
d0afda03 | 3206 | * solib.c (solib_used): New function. |
59145f8c AR |
3207 | (update_solib_list, reload_shared_libraries_1): Check if objfile is used |
3208 | by another so_list object before freeing it. | |
3209 | ||
bdaf8d4a JK |
3210 | 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3211 | ||
3212 | Code cleanup. | |
3213 | * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter | |
3214 | values. | |
3215 | ||
df15bd07 JK |
3216 | 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
3217 | ||
3218 | Code cleanup. | |
3219 | * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ... | |
3220 | (amd64_skip_xmm_prologue): ... this new function. Describe its | |
3221 | parameters. No longer use amd64_prologue_line_bug. | |
3222 | * defs.h (producer_is_gcc_ge_4): New declaration. | |
3223 | * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c. | |
3224 | (process_full_comp_unit): Update its caller. Remove | |
3225 | amd64_prologue_line_bug initialization. | |
3226 | * symtab.h (struct symtab): Remove field amd64_prologue_line_bug. | |
3227 | * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c. | |
3228 | ||
25289eb2 PA |
3229 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
3230 | ||
3231 | * linux-nat.h (enum resume_kind): New. | |
3232 | (struct lwp_info) <last_resume_kind>: New field. | |
ddf17726 PA |
3233 | * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to |
3234 | resume_stop on the new lwp. | |
25289eb2 PA |
3235 | (add_lwp): Set last_resume_kind as resume_continue by default. |
3236 | (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop. | |
3237 | (resume_lwp): New, factored out from resume_callback. Also check | |
3238 | for pending status in lp->waitstatus. | |
3239 | (resume_callback): Reimplement. | |
3240 | (resume_clear_callback): Set last_resume_kind as resume_stop. | |
3241 | (resume_set_callback): Set last_resume_kind as resume_continue. | |
3242 | (linux_nat_resume, linux_handle_extended_wait): Set | |
3243 | last_resume_kind. | |
3244 | (running_callback): Also check lp->waitstatus for pending events. | |
3245 | (select_singlestep_lwp_callback): Check that lp->last_resume_kind | |
3246 | is resume_step. | |
3247 | (stop_and_resume_callback): Don't re-resume if the core wanted the | |
3248 | lwp stopped. Use resume_lwp instead of resume_callback. Avoid | |
3249 | using an invalidated pointer. | |
3250 | (linux_nat_filter_event): Don't discard SIGSTOPs as delayed | |
3251 | SIGSTOPs if the core wanted the LWP to stop. | |
3252 | (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core | |
3253 | wanted the lwp to stop. If the core wanted the lwp to stop, and | |
3254 | the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead | |
3255 | of TARGET_SIGNAL_STOP. | |
3256 | (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop | |
3257 | here. Instead, signal the lwp, and set the last_resume_kind to | |
3258 | resume_stop. | |
3259 | ||
f687d035 PA |
3260 | 2011-09-09 Pedro Alves <pedro@codesourcery.com> |
3261 | ||
3262 | * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of | |
3263 | -1 (error), if the lwp exits right after attaching. | |
3264 | ||
bc587a6b DE |
3265 | 2011-09-08 Doug Evans <dje@google.com> |
3266 | ||
63d97a20 DE |
3267 | * py-cmd.c: Some minor formatting fixes. |
3268 | (gdbpy_parse_command_name): Rename text arg to name, make const. | |
3269 | All callers updated. | |
3270 | * python-internal.h (gdbpy_parse_command_name): Update. | |
3271 | ||
bc587a6b DE |
3272 | * cli/cli-decode.c (add_cmd): Add comment. |
3273 | ||
08711b9a JK |
3274 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3275 | ||
3276 | PR breakpoints/12435 | |
3277 | * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal, | |
3278 | next_sal, buf, offset and xmmreg. Advance PC if it sees the PR. | |
3279 | * dwarf2read.c (process_full_comp_unit): Initialize | |
3280 | amd64_prologue_line_bug. | |
3281 | * symtab.h (struct symtab): New field amd64_prologue_line_bug. | |
3282 | ||
b2e7f004 JK |
3283 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3284 | ||
3285 | Fix TUI screen corruption. | |
3286 | * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by | |
3287 | batch_flag. | |
3288 | ||
8afd712c JK |
3289 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3290 | ||
3291 | * findvar.c (read_var_value): Never return NULL, throw an error | |
3292 | instead. Update the function comment. State symbol name in the error | |
3293 | messages. | |
3294 | * python/py-frame.c (frapy_read_var): Remove handling of NULL from | |
3295 | read_var_value. | |
3296 | * stack.c (print_frame_args): Likewise. | |
3297 | * valops.c (value_of_variable): Likewise. | |
3298 | ||
b99b5f66 JK |
3299 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3300 | ||
3301 | * stack.c (print_frame_args): New variable except. Wrap | |
3302 | read_var_value and common_val_print into TRY_CATCH. | |
3303 | ||
85bc8cb7 JK |
3304 | 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3305 | ||
3306 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this | |
3307 | caller to value_of_this. | |
3308 | * p-exp.y: Update the value_of_this caller to value_of_this_silent. | |
3309 | Twice. | |
3310 | * valops.c (value_of_this): Remove parameter complain and variable ret. | |
3311 | Update function comment. Never return NULL by this code. | |
3312 | (value_of_this_silent): New function. | |
3313 | * value.h (value_of_this): Remove parameter complain. | |
3314 | (value_of_this_silent): New declaration. | |
3315 | ||
ede1849f YQ |
3316 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
3317 | ||
3318 | * gdbthread.h (struct thread_info): Remove fields | |
3319 | `stepping_through_solib_after_catch' and | |
3320 | `stepping_through_solib_catchpoints'. | |
3321 | * infrun.c (init_thread_stepping_state): Update. | |
3322 | (process_event_stop_test, currently_stepping): Update. | |
3323 | (currently_stepping_or_nexting_callback): Update. | |
3324 | ||
6aa27652 YQ |
3325 | 2011-09-07 Yao Qi <yao@codesourcery.com> |
3326 | ||
3327 | * gdbthread.h (struct thread_info): Comment on field | |
3328 | `step_after_step_resume_breakpoint'. | |
3329 | ||
00db5b94 PA |
3330 | 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com> |
3331 | ||
3332 | * remote.c (remote_console_output): Reindent. | |
3333 | ||
861152be LM |
3334 | 2011-09-06 Luis Machado <lgustavo@codesourcery.com> |
3335 | ||
3336 | * frame.c (has_stack_frames): Check for currently selected | |
3337 | traceframe. | |
3338 | ||
ab821bc6 PA |
3339 | 2011-09-06 Pedro Alves <pedro@codesourcery.com> |
3340 | ||
3341 | * event-top.h (MAXPROMPTS, struct prompts): Delete. | |
3342 | (set_async_annotation_level, set_async_prompt, pop_prompt) | |
3343 | (push_prompt, new_async_prompt): Delete declarations. | |
3344 | * top.h (get_prompt, set_prompt): Change prototype. | |
3345 | (get_prefix, set_prefix, get_suffix, set_suffix): Delete | |
3346 | declarations. | |
3347 | * top.c (command_loop): | |
3348 | (top_prompt): New global. | |
3349 | (get_prefix, set_prefix, get_suffix, ): Delete. | |
3350 | (get_prompt, set_prompt): Rewrite. | |
3351 | (show_new_async_prompt): Rename to ... | |
3352 | (show_prompt): ... this. | |
3353 | (init_main): Adjust. Don't handle --annotate=2 here. | |
3354 | * event-top.c (new_async_prompt): Delete. | |
3355 | (the_prompts): Delete. | |
3356 | (more_to_come): Make static. | |
3357 | (display_gdb_prompt): Use top_level_prompt() to compute the top | |
3358 | level prompt, and don't notify the before_prompt observers | |
3359 | directly here. Always trick readline into not trying to display | |
3360 | the prompt if sync_execution and displaying the primary prompt. | |
3361 | If displaying a local/secondary prompt, always show it, even if | |
3362 | sync_execution is set. | |
3363 | (change_annotation_level): Delete. | |
3364 | (top_level_prompt): New, based on change_annotation_level. | |
3365 | (push_prompt, pop_prompt): Delete. | |
3366 | (async_disable_stdin): No longer pushes prompt. | |
3367 | (command_line_handler): No longer pushes or pops prompt. If more | |
3368 | input is expected, call display_gdb_prompt with an explicit empty | |
3369 | prompt. | |
3370 | (async_stop_sig): Adjust. | |
3371 | (set_async_annotation_level, set_async_prompt): Delete. | |
3372 | * python/python.c (before_prompt_hook): Adjust. | |
3373 | ||
f1d90504 PA |
3374 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
3375 | ||
3376 | PR cli/13110 | |
3377 | ||
3378 | * infrun.c (fetch_inferior_event): Check if there's a selected | |
3379 | thread before checking if the selected thread is executing. | |
3380 | ||
0f641c01 PA |
3381 | 2011-09-05 Pedro Alves <pedro@codesourcery.com> |
3382 | ||
3383 | * inf-loop.c (execute_command): Don't check if the current thread | |
3384 | if running before synchronously waiting for command completion. | |
3385 | * infrun.c (fetch_inferior_event): Handle "set exec-done-display" | |
3386 | here. | |
3387 | (normal_stop): Call async_enable_stdin here. | |
3388 | * inf-loop.c (inferior_event_handler): Don't call | |
3389 | async_enable_stdin, nor handle "set exec-done-display" here. | |
3390 | ||
30368258 | 3391 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
3392 | ||
3393 | GDB 7.3.1 released. | |
3394 | ||
31916278 JB |
3395 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
3396 | ||
3397 | * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'. | |
3398 | ||
e8d56f18 JB |
3399 | 2011-09-04 Joel Brobecker <brobecker@adacore.com> |
3400 | ||
3401 | * NEWS: Add entry for OpenBSD/NetBSD build failure. | |
3402 | ||
5dd05d8c JK |
3403 | 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3404 | ||
3405 | * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency. | |
3406 | ||
7d8e6458 | 3407 | 2011-09-02 Matt Rice <ratmice@gmail.com> |
3408 | ||
3409 | PR gdb/10720 | |
3410 | * event-top.c (cli_command_loop): Replace readline setup with | |
3411 | direct call to display_gdb_prompt. | |
3412 | (display_gdb_prompt): Do not call observer mechanism during | |
3413 | synchronous execution. | |
3414 | ||
84636d28 PA |
3415 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
3416 | ||
3417 | * linux-nat.c (in_pid_list_p): New. | |
3418 | (linux_record_stopped_pid): Delete. | |
3419 | (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're | |
3420 | already attached to the LWP. Return an indication if so. | |
3421 | (linux_nat_filter_event): Adjust. | |
3422 | * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp | |
3423 | returning an indication to ignore this thread. | |
3424 | ||
b4a14fd0 PA |
3425 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
3426 | ||
3427 | * top.c: Include interps.h. | |
3428 | (execute_command): If the target can async, but the interpreter is | |
3429 | in sync mode, synchronously wait for the command to finish before | |
3430 | returning. | |
3431 | (execute_command_to_string): Force the interpreter to sync mode. | |
3432 | * infrun.c: Include interps.h. | |
3433 | (fetch_inferior_event): Don't restore the prompt yet if the | |
3434 | interpreter is in sync mode. | |
3435 | * interps.c (interpreter_async): New global. | |
3436 | * interps.h (interpreter_async): Declare. | |
3437 | * inf-loop.c: Include interps.h. | |
3438 | (inferior_event_handler): Don't print the language change or run | |
3439 | breakpoint commands yet if the interpreter in is sync mode. | |
3440 | * main.c (captured_command_loop): Flip the interpreter to async | |
3441 | mode. | |
3442 | * cli/cli-script.c: Include interps.h. | |
3443 | (execute_user_command, while_command, if_command): Force the | |
3444 | interpreter to sync mode. | |
3445 | * python/python.c: Include interps.h. | |
3446 | (python_command, execute_gdb_command): Force the interpreter to | |
3447 | sync mode. | |
3448 | ||
c709acd1 PA |
3449 | 2011-09-02 Pedro Alves <pedro@codesourcery.com> |
3450 | ||
3451 | * value.c (show_convenience): Catch errors thrown while printing | |
3452 | each internal variable. | |
3453 | * infrun.c (validate_siginfo_access): New function. | |
3454 | (siginfo_value_read, siginfo_value_write): Call it. | |
3455 | ||
9655e943 JK |
3456 | 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3457 | ||
3458 | Revert: | |
3459 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
3460 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
3461 | attribute. | |
3462 | ||
cb457ae2 YQ |
3463 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
3464 | ||
3465 | * solib-dsbt.c (bfd_lookup_symbol): Removed. | |
3466 | (cmp_name): New. | |
3467 | (enable_break2): Update caller. | |
3468 | * solib-frv.c (bfd_lookup_symbol): Removed. | |
3469 | (cmp_name): New. | |
3470 | (enable_break2): Update caller. | |
3471 | * solib-pa64.c (bfd_lookup_symbol): Removed. | |
3472 | (cmp_name): New. | |
3473 | * solib-svr4.c (bfd_lookup_symbol): Removed. | |
3474 | (cmp_name_and_sec_flags): New. | |
3475 | (enable_break): Update caller. | |
3476 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): New. | |
3477 | (gdb_bfd_lookup_symbol_from_dyn_symtab): New. | |
3478 | (gdb_bfd_lookup_symbol): New. | |
3479 | * solib.h: Functions declarations. | |
3480 | ||
83d1a36a YQ |
3481 | 2011-08-29 Yao Qi <yao@codesourcery.com> |
3482 | ||
3483 | * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o | |
3484 | and solib-dsbt.o. | |
3485 | ||
c04b3e8f JK |
3486 | 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
3487 | ||
3488 | Fix TUI stepi on code without symbols. | |
3489 | * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for | |
3490 | current PC instead. | |
3491 | ||
cb0fd152 JK |
3492 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3493 | ||
3494 | Code cleanup. | |
3495 | * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization | |
3496 | and the static keyword. | |
3497 | * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put): | |
3498 | Make prefix an array. | |
3499 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
3500 | * mi/mi-main.c (get_register): Remove stb initialization and the static | |
3501 | keyword. | |
3502 | ||
91174723 JK |
3503 | 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3504 | ||
3505 | Code cleanup - make mi_opt const. | |
3506 | * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make | |
3507 | opts const. | |
3508 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
3509 | * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise. | |
3510 | (mi_cmd_env_dir): Likewise. | |
3511 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise. | |
3512 | (mi_cmd_target_file_put): Likewise. | |
3513 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise. | |
3514 | * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise. | |
3515 | * mi/mi-getopt.c (mi_getopt): Make opts and opt const. | |
3516 | (mi_valid_noargs): Make opts const. | |
3517 | * mi/mi-getopt.h (mi_getopt): Make opts and opt const. | |
3518 | * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const. | |
3519 | (mi_cmd_data_read_memory): Likewise. | |
3520 | (mi_cmd_data_read_memory_bytes): Likewise. | |
3521 | (mi_cmd_data_write_memory): Likewise. | |
3522 | ||
5068b8e8 | 3523 | 2011-08-26 Matt Rice <ratmice@gmail.com> |
3524 | ||
3525 | * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to | |
3526 | bcache_xmalloc, replace bcache_xmalloc with call to | |
3527 | psymbol_bcache_init for psymbol_cache. | |
3528 | * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc. | |
3529 | ||
a4f2ce05 JK |
3530 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3531 | ||
3532 | * inf-loop.c (inferior_event_handler): Add exception_print in | |
3533 | INF_EXEC_COMPLETE. | |
3534 | ||
353d1d73 JK |
3535 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3536 | ||
3537 | * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call | |
3538 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
3539 | * defs.h (make_bpstat_clear_actions_cleanup): New declaration. | |
3540 | * exceptions.c (throw_exception): Remove the bpstat_clear_actions call. | |
3541 | * inf-loop.c (inferior_event_handler): New variable cleanup_if_error, | |
3542 | call make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
3543 | Call bpstat_clear_actions for failed fetch_inferior_event_wrapper. | |
3544 | * infrun.c (fetch_inferior_event): Call | |
3545 | make_bpstat_clear_actions_cleanup. | |
3546 | * top.c (execute_command): New variable cleanup_if_error, call | |
3547 | make_bpstat_clear_actions_cleanup and discard_cleanups for it. | |
3548 | * utils.c (do_bpstat_clear_actions_cleanup) | |
3549 | (make_bpstat_clear_actions_cleanup): New functions. | |
3550 | ||
3ced3da4 PA |
3551 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
3552 | ||
3553 | * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on | |
3554 | either the parent or the child forks. Rename a couple locals. | |
3555 | ||
a9f4bb21 PA |
3556 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
3557 | ||
3558 | * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a | |
3559 | library call. Avoid reading the `status' local if all waitpid | |
3560 | calls failed. | |
3561 | ||
e5798bef PA |
3562 | 2011-08-26 Pedro Alves <pedro@codesourcery.com> |
3563 | ||
3564 | * common/linux-osdata.c (get_cores_used_by_process): Don't assume | |
3565 | opening /proc/PID/task always succeeds. | |
3566 | ||
edb2aadf AR |
3567 | 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com> |
3568 | ||
3569 | * linespec.c (symtab_from_filename): Check for the end of string. | |
3570 | ||
0d932b2f MK |
3571 | 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com> |
3572 | ||
3573 | PR mi/11912 | |
3574 | * varobj.c (cplus_describe_child): Add the keyword | |
3575 | 'class' to the output of the method when dealing | |
3576 | with a cast to a base class. | |
3577 | ||
e93ca019 JK |
3578 | 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3579 | ||
3580 | No functionality change. | |
3581 | * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make | |
3582 | function comment a reference, new variables tp and bs, move here code | |
3583 | from throw_exception. | |
3584 | * breakpoint.h (bpstat_clear_actions): Remove the BS parameter, | |
3585 | describe it in the comment. | |
3586 | * exceptions.c (throw_exception): Remove variable tp, move the code for | |
3587 | bpstat_clear_actions to bpstat_clear_actions. | |
3588 | ||
13da1c97 LM |
3589 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
3590 | ||
3591 | * linux-nat.h (linux_proc_get_tgid): Remove declaration. | |
3592 | * linux-nat.c: Include linux-procfs.h. | |
3593 | (linux_proc_get_tgid): Move to ... | |
3594 | * common/linux-procfs.c: ... here. New file. | |
3595 | * common/linux-procfs.h: New file. | |
3596 | * linux-thread-db.c: Include linux-procfs.h. | |
3597 | * Makefile.in: Update dependencies. | |
3598 | * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency. | |
3599 | * config/arm/linux.mh: Likewise. | |
3600 | * config/i386/linux.mh: Likewise. | |
3601 | * config/i386/linux64.mh: Likewise. | |
3602 | * config/ia64/linux.mh: Likewise. | |
3603 | * config/m32r/linux.mh: Likewise. | |
3604 | * config/m68k/linux.mh: Likewise. | |
3605 | * config/mips/linux.mh: Likewise. | |
3606 | * config/pa/linux.mh: Likewise. | |
3607 | * config/pa/linux.mh: Likewise. | |
3608 | * config/powerpc/linux.mh: Likewise. | |
3609 | * config/powerpc/ppc64-linux.mh: Likewise. | |
3610 | * config/powerpc/spu-linux.mh: Likewise. | |
3611 | * config/sparc/linux.mh: Likewise. | |
3612 | * config/sparc/linux64.mh: Likewise. | |
3613 | * config/xtensa/linux.mh: Likewise. | |
3614 | ||
4e5c165d HZ |
3615 | 2011-08-24 Hui Zhu <teawater@gmail.com> |
3616 | ||
3617 | * tracepoint.c (cond_string_is_same): New function. | |
3618 | (find_matching_tracepoint): Add condition check | |
3619 | by cond_string_is_same. | |
3620 | ||
6e2f5b22 JK |
3621 | 2011-08-23 Josh Matthews <josh@joshmatthews.net> |
3622 | ||
3623 | Fix build error in Darwin port. | |
3624 | * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout. | |
3625 | ||
abf85f46 JK |
3626 | 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
3627 | ||
3628 | Code cleanup. | |
3629 | * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left. | |
3630 | (command_line_is_silent): New function. | |
3631 | (bpstat_do_actions_1): No longer use commands_left, use | |
3632 | command_line_is_silent for commands. | |
3633 | (bpstat_alloc): Remove clearing of commands_left. | |
3634 | (bpstat_stop_status): Remove initialization of commands_left, use | |
3635 | command_line_is_silent. | |
3636 | * breakpoint.h (struct bpstats): Remove commands_left. | |
3637 | ||
3a93a0c2 KS |
3638 | 2011-08-18 Keith Seitz <keiths@redhat.com> |
3639 | ||
3640 | PR c++/12266 | |
3641 | * cp-name-parser.y (struct demangle_info): Remove unused | |
3642 | member PREV. | |
3643 | (d_grab): Likewise. | |
3644 | (allocate_info): Change return type to struct demangle_info *. | |
3645 | Always allocate a new demangle_info. | |
3646 | Remove unused PREV pointer. | |
3647 | (cp_new_demangle_parse_info): New function. | |
3648 | (cp_demangled_name_parse_free): New function. | |
3649 | (do_demangled_name_parse_free_cleanup): New function. | |
3650 | (make_cleanup_cp_demangled_name_parse_free): New function. | |
3651 | (cp_demangled_name_to_comp): Change return type to | |
3652 | struct demangle_parse_info *. | |
3653 | Allocate a new storage for each call. | |
3654 | (main): Update usage for cp_demangled_name_to_comp | |
3655 | API change. | |
3656 | * cp-support.h (struct demangle_parse_info): New structure. | |
3657 | (cp_demangled_name_to_comp): Update API change for | |
3658 | return type. | |
3659 | (cp_new_demangle_parse_info): Declare. | |
3660 | (make_cleanup_cp_demangled_name_parse_free): New declaration. | |
3661 | (cp_demangled_name_parse_free): Declare. | |
3662 | * cp-support.c (cp_canonicalize_string): Update API | |
3663 | change for cp_demangled_name_to_comp. | |
3664 | (mangled_name_to_comp): Likewise. | |
3665 | Return struct demangle_parse_info, too. | |
3666 | (cp_class_name_from_physname): Update mangled_name_to_comp | |
3667 | API change. | |
3668 | (method_name_from_physname): Likewise. | |
3669 | (cp_func_name): Update API change for cp_demangled_name_to_comp. | |
3670 | (cp_remove_params): Likewise. | |
3671 | * python/py-type.c (typy_legacy_template_argument): Likewise. | |
3672 | ||
3673 | * cp-support.h (cp_canonicalize_string_no_typedefs): Declare. | |
3674 | (cp_merge_demangle_parse_infos): Declare. | |
3675 | * cp-support.c (ignore_typedefs): New file global. | |
3676 | (copy_string_to_obstack): New function. | |
3677 | (inspect_type): New function. | |
3678 | (replace_typedefs): New function. | |
3679 | (replace_typedefs_qualified_name): New function. | |
3680 | (cp_canonicalize_string_no_typedefs): New function. | |
3681 | * cp-name-parser.y (cp_merge_demangle_parse_infos): New function. | |
3682 | (cp_new_demangle__parse_info): Allocate and initialize the obstack. | |
3683 | * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs | |
3684 | instead of cp_canonicalize_string. | |
3685 | (find_method): Likewise. | |
3686 | (decode_compound): Before looking up the name, call | |
3687 | cp_canonicalize_string_no_typedefs. | |
3688 | (decode_variable): Likewise. | |
3689 | ||
fa3a4f15 PM |
3690 | 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> |
3691 | Tom Tromey <tromey@redhat.com> | |
3692 | Matt Rice <ratmice@gmail.com> | |
3693 | ||
3694 | * python/lib/gdb/prompt.py: New file. | |
3695 | * python/lib/gdb/command/prompt.py: New file. | |
3696 | * NEWS: Document set extended-prompt and gdb.prompt library | |
3697 | ||
85661b1e YQ |
3698 | 2011-08-16 Yao Qi <yao@codesourcery.com> |
3699 | ||
3700 | * tic6x-linux-tdep.c: Move const arrays definition from here... | |
3701 | * tic6x-tdep.c: to here ... | |
3702 | ||
11315641 YQ |
3703 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
3704 | ||
3705 | * NEWS: New port to Texas Instruments TMS320C6x. | |
3706 | ||
8cd64e00 YQ |
3707 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
3708 | Bernd Schmidt <bernds@codesourcery.com> | |
3709 | Yao Qi <yao@codesourcery.com> | |
3710 | ||
3711 | * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*. | |
3712 | * solib-dsbt.c: New file. Support DSBT shared object. | |
3713 | * tic6x-linux-tdep.c: New file. | |
3714 | * tic6x-tdep.c: New file. | |
3715 | * tic6x-tdep.h: New file. | |
3716 | ||
78d85199 YQ |
3717 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
3718 | Yao Qi <yao@codesourcery.com> | |
3719 | ||
3720 | * remote.c (PACKET_qXfer_fdpic): New enum value. | |
3721 | (remote_protocol_features): Add qXfer:fdpic:read packet. | |
3722 | (remote_xfer_partial): Support TARGET_OBJECT_FDPIC. | |
3723 | (_initialize_remote): Add set/show remote read-fdpic-loadmap command. | |
3724 | * target.h (enum target_object): Add TARGET_OBJECT_FDPIC. | |
3725 | ||
224bbe49 YQ |
3726 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
3727 | ||
3728 | Target description for tic6x. | |
3729 | * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x | |
3730 | tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux. | |
3731 | * features/tic6x-c6xp.xml, features/tic6x-core.xml: New. | |
3732 | * features/tic6x-gp.xml, features/tic6x-c62x.xml: New. | |
3733 | * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New. | |
3734 | * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New. | |
3735 | * features/tic6x-c64xp-linux.xml: New. | |
3736 | * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated. | |
3737 | * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated. | |
3738 | * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated. | |
3739 | * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated. | |
f040079f HZ |
3740 | * regformats/tic6x-c64xp.dat, |
3741 | regformats/tic6x-c62x-linux.dat: Generated. | |
3742 | * regformats/tic6x-c64x-linux.dat, | |
3743 | regformats/tic6x-c64xp-linux.dat: Generated. | |
224bbe49 YQ |
3744 | * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and |
3745 | features/tic6x-*.c files. | |
3746 | Add regformats/tic6x-*.dat files. | |
3747 | ||
457e09f0 DE |
3748 | 2011-08-12 Doug Evans <dje@google.com> |
3749 | ||
3750 | * NEWS: Mention new "type" attribute of python gdb.Symbol objects. | |
3751 | * python/py-symbol.c (sympy_get_type): New function. | |
3752 | (symbol_object_getset): Add "type". | |
3753 | ||
d20c1c3f PA |
3754 | 2011-08-12 Pedro Alves <pedro@codesourcery.com> |
3755 | ||
3756 | PR tui/13073 | |
3757 | ||
3758 | * tui/tui-regs.c (tui_show_register_group): Skip registers with an | |
3759 | empty name. | |
3760 | (tui_show_register_group): Don't store a byte buffer in the data | |
3761 | element's value. | |
3762 | (tui_register_format): Skip registers with an empty name. | |
3763 | (tui_get_register): Store a struct value in the data element's | |
3764 | value field instead of a byte buffer holding the raw register | |
3765 | contents. Account for optimized-out and unavailable registers | |
3766 | when comparing register contents. | |
3767 | ||
9d8fa392 PA |
3768 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
3769 | ||
3770 | * printcmd.c (current_display_number): Update comment. | |
3771 | (disable_current_display_cleanup): Delete. | |
3772 | (do_one_display): Use make_cleanup_restore_integer. Gracefully | |
3773 | catch errors thrown while evaluating and printing the display. | |
3774 | ||
401a70b8 TT |
3775 | 2011-08-09 Tom Tromey <tromey@redhat.com> |
3776 | ||
3777 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo. | |
3778 | ||
7f86f058 PA |
3779 | 2011-08-09 Pedro Alves <pedro@codesourcery.com> |
3780 | ||
94b71cca | 3781 | * elfread.c (elf_symtab_read): Rework comments. |
7f86f058 PA |
3782 | * maint.c (maintenance_command): Ditto. |
3783 | * somread.c (som_symtab_read): Ditto. | |
3784 | * solib.c (solib_find, solib_map_sections, update_solib_list) | |
3785 | (solib_add, info_sharedlibrary_command, solib_name_from_address) | |
3786 | (solib_create_inferior_hook, in_solib_dynsym_resolve_code) | |
94b71cca | 3787 | (sharedlibrary_command, no_shared_libraries): Ditto. |
7f86f058 PA |
3788 | * solib-irix.c (locate_base, disable_break, enable_break) |
3789 | (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook) | |
3790 | (irix_current_sos, irix_open_symbol_file_object) | |
3791 | (irix_special_symbol_handling): Ditto. | |
3792 | * solib-sunos.c (locate_base, first_link_map_member) | |
3793 | (sunos_current_sos, disable_break, enable_break) | |
3794 | (sunos_special_symbol_handling, sunos_solib_create_inferior_hook): | |
3795 | Ditto. | |
3796 | * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base) | |
3797 | (open_symbol_file_object, svr4_current_sos, enable_break) | |
3798 | (svr4_special_symbol_handling, svr4_solib_create_inferior_hook): | |
3799 | Ditto. | |
3800 | * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object) | |
3801 | (frv_current_sos, enable_break, frv_special_symbol_handling) | |
3802 | (frv_solib_create_inferior_hook): Ditto. | |
3803 | * solist.h (struct target_so_ops): Extend the comments of the | |
3804 | special_symbol_handling, current_sos and open_symbol_file_object | |
3805 | methods. | |
3806 | ||
5e239b84 PM |
3807 | 2011-08-09 Phil Muldoon <pmuldoon@redhat.com> |
3808 | ||
3809 | * python/lib/gdb/__init__.py: Auto-load files in command and | |
3810 | function directories. | |
3811 | * python/python.c (finish_python_initialization): Use | |
3812 | os.path.join. | |
3813 | * python/lib/gdb/command/pretty_printers.py: Self register | |
3814 | command. | |
3815 | * NEWS: Document auto-loading. | |
3816 | ||
b6cede78 JK |
3817 | 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3818 | ||
3819 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK> | |
3820 | (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable | |
3821 | objfile_gdbarch. Fix BFD_ENDIAN_BIG case. | |
3822 | ||
29d0bb3d TT |
3823 | 2011-08-08 Tom Tromey <tromey@redhat.com> |
3824 | ||
3825 | * breakpoint.c (clean_up_filters): Remove. | |
3826 | (catch_syscall_split_args): Use VEC_cleanup. | |
3827 | ||
2f7fb8e4 JK |
3828 | 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
3829 | ||
3830 | * cp-name-parser.y (xfree): Wrap the name free by CONCAT2. | |
3831 | (main): Uncomment "Demangling error\n". | |
3832 | ||
d6c10e95 PP |
3833 | 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com> |
3834 | ||
3835 | * solib-target.c (segment_attributes): Make them static. | |
3836 | (section_attributes, library_children, library_attributes): Likewise. | |
3837 | (library_list_children, library_list_attributes): Likesise. | |
3838 | (library_list_elements): Likewise. | |
3839 | ||
af6e93b2 PA |
3840 | 2011-08-05 Pedro Alves <pedro@codesourcery.com> |
3841 | ||
3842 | * exceptions.c (throw_exception): Don't disable the current | |
3843 | display. | |
3844 | * printcmd.c (disable_current_display_cleanup): New function. | |
3845 | (do_one_display): Install a cleanup to disable the current display | |
3846 | if doing the display throws. | |
3847 | ||
6a1b1664 EZ |
3848 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
3849 | ||
3850 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the | |
3851 | initialization of the tp_new member to the corresponding | |
3852 | gdbpy_initialize_* function. | |
3853 | * python/py-cmd.c (gdbpy_initialize_commands): Likewise. | |
3854 | * python/py-frame.c (gdbpy_initialize_frames): Likewise. | |
3855 | * python/py-function.c (gdbpy_initialize_functions): Likewise. | |
3856 | * python/py-inferior.c (gdbpy_initialize_inferior): Likewise. | |
3857 | * python/py-param.c (gdbpy_initialize_parameters): Likewise. | |
3858 | ||
31a0ae49 JK |
3859 | 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3860 | ||
3861 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
3862 | (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist) | |
3863 | (info_spu_dma_command, info_spu_proxydma_command): Rename uiout | |
3864 | references to current_uiout. | |
3865 | ||
e0dd0826 PA |
3866 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
3867 | ||
3868 | * event-loop.c (gdb_do_one_event): Remove `data' parameter. | |
3869 | (start_event_loop): Use TRY_CATCH instead of catch_errors. | |
3870 | * event-loop.h (gdb_do_one_event): Remove `data' parameter. | |
3871 | * top.c (gdb_readline_wrapper): Adjust. | |
3872 | * tui/tui-interp.c (tui_command_loop): | |
3873 | (_initialize_tui_interp): Don't install it. | |
3874 | ||
79a45e25 PA |
3875 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
3876 | ||
3877 | * ui-out.h (uiout): Rename to ... | |
3878 | (current_uiout): ... this. | |
3879 | * ui-out.c (uiout): Rename to ... | |
3880 | (current_uiout): ... this. | |
3881 | * ada-lang.c (print_it_exception, print_one_exception) | |
3882 | (print_mention_exception): Adjust. | |
3883 | * breakpoint.c (watchpoint_check): Adjust. | |
3884 | (print_breakpoint_location, print_one_breakpoint, breakpoint_1) | |
3885 | (default_collect_info, watchpoints_info, print_one_catch_fork) | |
3886 | (print_one_catch_vfork, print_one_catch_syscall) | |
3887 | (print_one_catch_exec, mention, print_it_ranged_breakpoint) | |
3888 | (print_one_ranged_breakpoint, print_mention_ranged_breakpoint) | |
3889 | (print_it_watchpoint, print_mention_watchpoint) | |
3890 | (print_it_masked_watchpoint, print_mention_masked_watchpoint) | |
3891 | (print_it_exception_catchpoint, print_one_exception_catchpoint) | |
3892 | (print_mention_exception_catchpoint, say_where, bkpt_print_it) | |
3893 | (bkpt_print_mention, momentary_bkpt_print_it) | |
3894 | (tracepoint_print_mention, update_static_tracepoint) | |
3895 | (tracepoints_info, save_breakpoints): Adjust. | |
3896 | * cli-out.c (field_separator): Adjust. | |
3897 | * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust. | |
3898 | * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust. | |
3899 | * frame.c (get_current_frame): Adjust. | |
3900 | * infcmd.c (run_command_1, print_return_value): Adjust. | |
3901 | * inferior.c (inferior_command, info_inferiors_command): Adjust. | |
3902 | * infrun.c (print_end_stepping_range_reason): Adjust. | |
3903 | (print_signal_exited_reason, print_exited_reason): Adjust. | |
3904 | (print_signal_received_reason, print_no_history_reason): Adjust. | |
3905 | * interps.c (interp_set): Adjust. | |
3906 | * osdata.c (info_osdata_command): Adjust. | |
3907 | * progspace.c (maintenance_info_program_spaces_command): Adjust. | |
3908 | * remote-fileio.c (remote_fileio_request): Adjust. | |
3909 | * remote.c (show_remote_cmd): Adjust. | |
3910 | * solib.c (info_sharedlibrary_command): Adjust. | |
3911 | * source.c (print_source_lines_base): Adjust. | |
3912 | * stack.c (print_stack_frame): Adjust. | |
3913 | (do_gdb_disassembly, print_frame_info, print_frame): Adjust. | |
3914 | * symfile-mem.c (add_vsyscall_page): Adjust. | |
3915 | * symfile.c (load_progress, generic_load) | |
3916 | (print_transfer_performance): Adjust. | |
3917 | * thread.c (info_threads_command, restore_selected_frame) | |
3918 | (thread_command): Adjust. | |
3919 | * top.c (make_cleanup_restore_ui_file): Adjust. | |
3920 | * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1) | |
3921 | (print_one_static_tracepoint_marker): Adjust. | |
3922 | * cli/cli-cmds.c (print_disassembly): Adjust. | |
3923 | * cli/cli-decode.c (print_doc_line): Adjust. | |
3924 | * cli/cli-interp.c (safe_execute_command): Adjust. | |
3925 | * cli/cli-logging.c (set_logging_redirect, pop_output_files) | |
3926 | (handle_redirections): Adjust. | |
3927 | * cli/cli-script.c (show_user_1): Adjust. | |
3928 | * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust. | |
3929 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
3930 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust. | |
3931 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path) | |
3932 | (mi_cmd_env_dir): Adjust. | |
3933 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
3934 | (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust. | |
3935 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
3936 | (mi_cmd_stack_info_depth, mi_cmd_stack_list_args) | |
3937 | (list_args_or_locals): Adjust. | |
3938 | * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create) | |
3939 | (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen) | |
3940 | (mi_cmd_var_show_format, mi_cmd_var_info_num_children) | |
3941 | (mi_cmd_var_list_children, mi_cmd_var_info_type) | |
3942 | (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression) | |
3943 | (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression) | |
3944 | (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust. | |
3945 | * mi/mi-interp.c (mi_on_normal_stop): Adjust. | |
3946 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select) | |
3947 | (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior) | |
3948 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
3949 | (mi_cmd_data_list_register_names) | |
3950 | (mi_cmd_data_list_changed_registers) | |
3951 | (mi_cmd_data_list_register_values, get_register) | |
3952 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
3953 | (mi_cmd_data_read_memory_bytes, mi_cmd_list_features) | |
3954 | (mi_cmd_list_target_features, mi_cmd_add_inferior) | |
3955 | (mi_execute_command, mi_load_progress): Adjust. | |
3956 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust. | |
3957 | * python/py-auto-load.c (print_script, info_auto_load_scripts): | |
3958 | Adjust. | |
3959 | * python/py-breakpoint.c (bppy_get_commands): Adjust. | |
3960 | * tui/tui-interp.c (tui_command_loop): Adjust. | |
3961 | * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust. | |
3962 | ||
f9679975 PA |
3963 | 2011-08-04 Pedro Alves <pedro@codesourcery.com> |
3964 | ||
3965 | * exceptions.c (struct catcher): Remove saved_uiout field. | |
3966 | (exceptions_state_mc_init): Remove the `func_uiout' parameter, and | |
3967 | no longer save/resvore the global ui_out builder. | |
3968 | (catch_exceptions_with_msg): Save/override/restore the global | |
3969 | ui_out builder manually instead of relying on TRY_CATCH to do it. | |
3970 | (catch_errors): Save/restore the global ui_out builder manually | |
3971 | instead of relying on TRY_CATCH to do it. | |
3972 | * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout' | |
3973 | parameter. | |
3974 | (TRY_CATCH): Adjust. | |
3975 | * cli/cli-interp.c (safe_execute_command): Save/override/restore | |
3976 | the global ui_out builder manually instead of relying on TRY_CATCH | |
3977 | to do it. | |
3978 | ||
934709f0 PW |
3979 | 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3980 | ||
3981 | * breakpoint.c (update_global_location_list): Ensure | |
3982 | invariant 'first loc marked not duplicated and inserted, | |
3983 | following locs marked duplicated/not inserted' is respected | |
3984 | for multiple locations at the same address. | |
3985 | (unduplicated_should_be_inserted) New function. | |
3986 | (swap_insertion) New function. | |
3987 | ||
2421fe6f JK |
3988 | 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3989 | ||
3990 | * stack.c (print_frame_arguments_choices): Comment typo fix. | |
3991 | ||
3fbb6ffa TJB |
3992 | 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3993 | ||
3994 | Revert: | |
3995 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3996 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
3997 | argument. Update callers. | |
3998 | ||
fbe12357 PP |
3999 | 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com> |
4000 | ||
4001 | PR gdb/13045 | |
4002 | * doublest.c (convert_doublest_to_floatformat): Pass correct | |
4003 | mantissa length to put_field. | |
4004 | ||
b1d288d3 JK |
4005 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4006 | ||
4007 | * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the | |
4008 | exception_print code path. | |
4009 | (backtrace_command): Remove variable e. Protect arg by make_cleanup in | |
4010 | advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree. | |
4011 | (backtrace_full_command): Remove variable e. Remove TRY_CATCH. | |
4012 | ||
311b5970 JK |
4013 | 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4014 | ||
4015 | Code cleanup. | |
4016 | * stack.c (struct print_stack_frame_args, print_stack_frame_stub): | |
4017 | Remove, merge them into ... | |
4018 | (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove | |
4019 | variable args and its initialization. | |
4020 | (struct print_args_args, print_args_stub): Remove, merge them into | |
4021 | print_frame. | |
4022 | (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge | |
4023 | them into ... | |
4024 | (do_gdb_disassembly): ... here. Remove variable args and its | |
4025 | initialization. | |
4026 | (print_frame): Remove variable args and its initialization, new | |
4027 | variable gdbarch and numargs (from print_args_stub), inline here | |
4028 | print_args_stub with a TRY_CATCH. | |
4029 | (struct backtrace_command_args, backtrace_command_stub): Remove, merge | |
4030 | them into ... | |
4031 | (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH. | |
fbe12357 | 4032 | New variable e, remove variable btargs and its initialization. |
311b5970 | 4033 | |
484a26a8 TG |
4034 | 2011-08-01 Tristan Gingold <gingold@adacore.com> |
4035 | ||
4036 | * darwin-nat.c (darwin_decode_exception_message): Adjust assertion. | |
4037 | ||
c30eee59 TJB |
4038 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4039 | ||
4040 | * breakpoint.c (insert_bp_location): Document return value. | |
4041 | (insert_breakpoint_locations): Fix documentation. | |
4042 | (remove_breakpoints): Add documentation. | |
4043 | ||
f116073b TJB |
4044 | 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4045 | ||
4046 | * breakpoint.c (insert_bp_location): Remove disabled_breaks | |
4047 | argument. Update callers. | |
4048 | ||
65aa373f JK |
4049 | 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
4050 | ||
4051 | * stack.c (print_frame_info): Comment typo fix. | |
4052 | ||
a50242fb SA |
4053 | 2011-07-29 Sterling Augustine <saugustine@google.com> |
4054 | ||
4055 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4056 | ||
267f6504 TT |
4057 | 2011-07-29 Tom Tromey <tromey@redhat.com> |
4058 | ||
4059 | * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O. | |
4060 | (library_list_start_segment): Update. | |
4061 | (library_list_start_section): Update. | |
4062 | ||
00bd41d6 PM |
4063 | 2011-07-28 Phil Muldoon <pmuldoon@redhat.com> |
4064 | ||
4065 | * varobj.c (value_get_print_value): Move hint check later into the | |
4066 | function. Comment function. Free thevalue before reusing it. | |
4067 | ||
18a46dbe JK |
4068 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4069 | Pedro Alves <pedro@codesourcery.com> | |
4070 | ||
4071 | * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of | |
4072 | value_one. | |
4073 | * valops.c (value_one): Remove parameter lv. Do not pass it to itself. | |
4074 | Assert the result kind. | |
4075 | * value.h (value_one): Remove parameter lv. | |
4076 | ||
bb7da2bf JK |
4077 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4078 | ||
4079 | Fix crash on lval_computed values. | |
4080 | * valops.c (value_zero): Use not_lval for lval_computed. | |
4081 | ||
2d5213f8 TT |
4082 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
4083 | ||
4084 | * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for | |
4085 | gdb_assert.h, gdb_locale.h, gdb_dirent.h. | |
4086 | ||
11081198 JK |
4087 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4088 | ||
4089 | * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and | |
4090 | "ptype" by their typedefs difference. | |
4091 | ||
3c6e0cb3 JK |
4092 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4093 | ||
4094 | * dwarf2expr.c (ctx_no_read_reg): New function. | |
4095 | * dwarf2expr.h (ctx_no_read_reg): New declaration. | |
4096 | * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. | |
4097 | (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. | |
4098 | (decode_locdesc): Replace by a caller of dwarf_expr_eval. | |
4099 | ||
523f3620 JK |
4100 | 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
4101 | ||
4102 | * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc) | |
4103 | (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other | |
4104 | file. | |
4105 | (dwarf2_frame_ctx_funcs): Reference the renamed functions. | |
4106 | * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
4107 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
4108 | (ctx_no_get_base_type): Move the functions here. | |
4109 | * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa) | |
4110 | (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call) | |
4111 | (ctx_no_get_base_type): New declarations. | |
4112 | ||
24d3216f TT |
4113 | 2011-07-27 Tom Tromey <tromey@redhat.com> |
4114 | ||
4115 | * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel' | |
4116 | entries. | |
4117 | * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field. | |
4118 | * dwarf2read.c (dwarf2_elf_names): Add sentinel entry. | |
4119 | ||
5005c8a9 PP |
4120 | 2011-07-26 Sterling Augustine <saugustine@google.com> |
4121 | ||
4122 | * cli/cli-dump.c (dump_binary_file): Change parameter type to | |
4123 | ULONGEST. | |
4124 | (dump_bfd_file): Likewise. | |
4125 | ||
480a3f21 PW |
4126 | 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4127 | ||
4128 | * remote.c (remote_region_ok_for_hw_watchpoint): New function. | |
4129 | (remote_hw_watchpoint_length_limit): New variable. | |
4130 | (_initialize_remote) add set,show cmds for this new variable. | |
4131 | * gdb.texinfo: document these new commands. | |
4132 | * NEWS: Mention these new commands. | |
4133 | ||
efa80663 PA |
4134 | 2011-07-26 Pedro Alves <pedro@codesourcery.com> |
4135 | ||
4136 | * breakpoint.c (works_in_software_mode_watchpoint): Also return | |
4137 | true for software watchpoints. | |
4138 | ||
dbdaa232 | 4139 | 2011-07-26 Joel Brobecker <brobecker@adacore.com> |
4140 | ||
4141 | GDB 7.3 released. | |
4142 | ||
cf2c3c16 TT |
4143 | 2011-07-26 Tom Tromey <tromey@redhat.com> |
4144 | ||
4145 | * symfile.h (struct dwarf2_debug_sections) <macro>: New field. | |
4146 | * dwarf2read.c (read_indirect_string_at_offset): New function. | |
4147 | (read_indirect_string): Use it. | |
4148 | (dwarf_decode_macro_bytes): New function, taken from | |
4149 | dwarf_decode_macros. Handle DW_MACRO_GNU_*. | |
4150 | (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*. | |
4151 | (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode): | |
4152 | New functions. | |
4153 | (struct dwarf2_per_objfile) <macro>: New field. | |
4154 | (dwarf2_elf_names): Add .debug_macro. | |
4155 | (dwarf2_macros_too_long_complaint): Add 'section' argument. | |
4156 | (dwarf2_locate_sections): Handle new section. | |
4157 | (read_file_scope): Handle DW_AT_GNU_macros. | |
4158 | (dwarf2_per_objfile_free): Unmap the .debug_macro section. | |
4159 | ||
1a532630 PP |
4160 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
4161 | ||
4162 | * NEWS: Mention dcache configuration. | |
4163 | * dcache.c (dcache_set_list, dcache_show_list): New variables. | |
4164 | (dcache_size, dcache_line_size): New variables. | |
4165 | (LINE_SIZE_MASK, XFORM, MASK): Adjust. | |
4166 | (struct dcache_block): Make it expandable. | |
4167 | (struct dcache_struct): New field. | |
4168 | (dcache_invalidate): Discard freelist upon dcache_line_size changes. | |
4169 | (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust. | |
4170 | (dcache_poke_byte, dcache_print_line): Adjust. | |
4171 | (set_dcache_size, set_dcache_line_size): New functions. | |
4172 | (set_dcache_command, show_dcache_command): New functions. | |
4173 | (_initialize_dcache): Add new commands. | |
4174 | ||
2eff07b3 PP |
4175 | 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> |
4176 | ||
4177 | * progspace.h (struct program_space): Add solib_add_generation. | |
4178 | * infcmd.c (post_create_inferior): Only call solib_add if not | |
4179 | already done. | |
4180 | * solib.c (solib_add): Increment solib_add_generation. | |
4181 | ||
543305c9 JK |
4182 | 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4183 | ||
4184 | Fix implicit pointer offsets. | |
4185 | * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also | |
4186 | ptr.OFFSET. | |
4187 | ||
c0a91b2b TT |
4188 | 2011-07-25 Tom Tromey <tromey@redhat.com> |
4189 | ||
4190 | * ada-lang.c (ada_exception_breakpoint_ops): Make return type | |
4191 | const. | |
4192 | (ada_exception_sal): Make 'ops' const. | |
4193 | (ada_decode_exception_location): Likewise. | |
4194 | (ada_decode_assert_location): Likewise. | |
4195 | (catch_assert_command): Update. | |
4196 | (catch_ada_exception_command): Update. | |
4197 | (create_ada_exception_catchpoint): Make 'ops' const. | |
4198 | * breakpoint.c (set_raw_breakpoint_without_location) | |
4199 | (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops' | |
4200 | const. | |
4201 | (create_internal_breakpoint): Update. | |
4202 | (init_raw_breakpoint_without_location): Make 'ops' const. | |
4203 | (init_raw_breakpoint, init_catchpoint) | |
4204 | (create_fork_vfork_event_catchpoint) | |
4205 | (create_syscall_event_catchpoint, init_breakpoint_sal) | |
4206 | (create_breakpoint_sal, create_breakpoints_sal) | |
4207 | (create_breakpoint, init_ada_exception_breakpoint): Likewise. | |
4208 | * breakpoint.h (struct breakpoint) <ops>: Now const. | |
4209 | (init_ada_exception_breakpoint, create_breakpoint): Make 'ops' | |
4210 | const. | |
4211 | ||
6cb9b55b PP |
4212 | 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com> |
4213 | ||
4214 | * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique. | |
4215 | ||
d9b3f62e PA |
4216 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4217 | ||
4218 | * breakpoint.h (print_recreate_thread): Declare. | |
4219 | (struct breakpoint): Move step_count, pass_count, | |
4220 | number_on_target, static_trace_marker_id, | |
4221 | static_trace_marker_id_idx ... | |
4222 | (struct tracepoint): ... to this new struct. | |
4223 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
4224 | (get_tracepoint_by_number): Change return type to struct | |
4225 | tracepoint pointer. | |
4226 | * breakpoint.c (is_tracepoint_type): New, factored out from | |
4227 | is_tracepoint. | |
4228 | (is_tracepoint): Adjust. | |
4229 | (print_one_breakpoint_location): Cast to struct tracepoint as | |
4230 | necessary, and adjust. | |
4231 | (print_recreate_catch_fork, print_recreate_catch_vfork) | |
4232 | (print_recreate_catch_syscall, print_recreate_catch_exec): Call | |
4233 | print_recreate_thread. | |
4234 | (init_breakpoint_sal): New, factored out from | |
4235 | create_breakpoint_sal. | |
4236 | (create_breakpoint_sal): Reimplement. | |
4237 | (create_breakpoint): Allocate a struct tracecepoint if the caller | |
4238 | wanted a tracepoint. Use init_breakpoint_sal and | |
4239 | install_breakpoint. | |
4240 | (print_recreate_ranged_breakpoint, print_recreate_watchpoint) | |
4241 | (print_recreate_masked_watchpoint) | |
4242 | (print_recreate_exception_catchpoint): Call print_recreate_thread. | |
4243 | (tracepoint_print_one_detail): Adjust. | |
4244 | (tracepoint_print_recreate): Adjust. Call print_recreate_thread. | |
4245 | Dump the pass count here. | |
4246 | (update_static_tracepoint): Adjust. | |
4247 | (addr_string_to_sals): Adjust. | |
4248 | (create_tracepoint_from_upload): Adjust. Change return type to | |
4249 | struct tracepoint pointer. | |
4250 | (trace_pass_set_count): Change parameter type to struct tracepoint | |
4251 | pointer, and adjust. | |
4252 | (trace_pass_command): Adjust. | |
4253 | (get_tracepoint, get_tracepoint_by_number_on_target) | |
4254 | (get_tracepoint_by_number): Change return type to struct | |
4255 | tracepoint pointer, and adjust. | |
4256 | (print_recreate_thread): New, factored out from save_breakpoints. | |
4257 | (save_breakpoints): Don't print thread and task and passcount | |
4258 | recreation here. | |
4259 | * remote.c (remote_download_tracepoint): Adjust. | |
4260 | * tracepoint.c (trace_actions_command, validate_actionline) | |
4261 | (start_tracing, tfind_1, trace_find_tracepoint_command) | |
4262 | (trace_dump_command): Adjust. | |
4263 | (find_matching_tracepoint): Change return type to struct | |
4264 | tracepoint pointer, and adjust. | |
4265 | (merge_uploaded_tracepoints, tfile_get_traceframe_address) | |
4266 | (tfile_trace_find, tfile_fetch_registers): Adjust. | |
4267 | * tracepoint.h (create_tracepoint_from_upload): Change return type | |
4268 | to struct tracepoint pointer. | |
4269 | * ada-lang.c (print_recreate_exception): Call | |
4270 | print_recreate_thread. | |
4271 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust. | |
4272 | ||
3a5c3e22 PA |
4273 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4274 | ||
4275 | * breakpoint.h (struct breakpoint): Move ops as first field. Move | |
4276 | exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp, | |
4277 | cond_exp_valid_block, val, val_valid, watchpoint_frame, | |
4278 | watchpoint_thread, watchpoint_triggered ... | |
4279 | (struct watchpoint): ... to this new struct. | |
4280 | (is_watchpoint): Declare. | |
4281 | (install_breakpoint): Add new `internal' parameter. | |
4282 | * breakpoint.c (is_watchpoint): Delete declaration. | |
4283 | (set_breakpoint_condition): Handle watchpoints. | |
4284 | (is_watchpoint): Make public. | |
4285 | (watchpoint_in_thread_scope): Change parameter type to struct | |
4286 | watchpoint. | |
4287 | (watchpoint_del_at_next_stop): Change parameter type to struct | |
4288 | watchpoint. Remove assertion. Adjust. | |
4289 | (update_watchpoint): Ditto. | |
4290 | (insert_breakpoints, breakpoint_init_inferior) | |
4291 | (watchpoints_triggered, watchpoint_check) | |
4292 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions) | |
4293 | (bpstat_stop_status, print_one_breakpoint_location) | |
4294 | (print_one_breakpoint_location, watchpoint_locations_match): Cast | |
4295 | to struct watchpoint as necessary, and adjust. | |
4296 | (install_breakpoint): Add `internal' argument. If true, don't | |
4297 | mention the new breakpoint. Use set_breakpoint_number. | |
4298 | (create_fork_vfork_event_catchpoint) | |
4299 | (create_syscall_event_catchpoint): Adjust. | |
4300 | (dtor_watchpoint): New. | |
4301 | (re_set_watchpoint, insert_watchpoint, remove_watchpoint) | |
4302 | (breakpoint_hit_watchpoint, resources_needed_watchpoint) | |
4303 | (print_it_watchpoint, print_mention_watchpoint) | |
4304 | (print_recreate_watchpoint, insert_masked_watchpoint) | |
4305 | (remove_masked_watchpoint, resources_needed_masked_watchpoint) | |
4306 | (print_one_detail_masked_watchpoint) | |
4307 | (print_mention_masked_watchpoint) | |
4308 | (print_recreate_masked_watchpoint): Cast to struct watchpoint as | |
4309 | necessary, and adjust. | |
4310 | (watch_command_1): Allocate and initialize a struct watchpoint | |
4311 | instead of a struct breakpoint. Use install_breakpoint. | |
4312 | (catch_exec_command_1): Adjust. | |
4313 | (base_breakpoint_dtor): Delete accesses to watchpoint specific | |
4314 | fields. | |
4315 | (delete_breakpoint, enable_breakpoint_disp) | |
4316 | (invalidate_bp_value_on_memory_change): Cast to struct watchpoint | |
4317 | as necessary, and adjust. | |
4318 | (initialize_breakpoint_ops): Install dtor_watchpoint as | |
4319 | watchpoints' dtor method. | |
4320 | * ada-lang.c (create_ada_exception_catchpoint): Adjust. | |
4321 | * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint. | |
4322 | to struct watchpoint as necessary, and adjust. | |
4323 | ||
2060206e PA |
4324 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4325 | ||
4326 | * ada-lang.c (dtor_exception, re_set_exception): Indirect through | |
4327 | the the base class ops table. | |
4328 | (catch_exception_breakpoint_ops) | |
4329 | (catch_exception_unhandled_breakpoint_ops) | |
4330 | (catch_assert_breakpoint_ops): Don't statically initialize. | |
4331 | (initialize_ada_catchpoint_ops): New. | |
4332 | (_initialize_ada_language): Call it. | |
4333 | * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops) | |
4334 | (bkpt_breakpoint_ops): Forward declare. | |
4335 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
4336 | (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops) | |
4337 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
4338 | (masked_watchpoint_breakpoint_ops) | |
4339 | (gnu_v3_exception_catchpoint_ops): Don't statically initialize. | |
4340 | (dtor_catch_syscall, dtor_catch_exec): Indirect through the the | |
4341 | base class ops table. | |
4342 | (null_re_set, null_check_status, null_works_in_software_mode) | |
4343 | (null_resources_needed, null_print_one_detail): Delete. | |
4344 | (bkpt_dtor): Rename to ... | |
4345 | (base_breakpoint_dtor): ... this. Make static. | |
4346 | (bkpt_allocate_location): Rename to ... | |
4347 | (base_breakpoint_allocate_location): ... this. Make static. | |
4348 | (base_breakpoint_re_set): New. | |
4349 | (internal_error_pure_virtual_called): New. | |
4350 | (base_breakpoint_insert_location, base_breakpoint_remove_location) | |
4351 | (base_breakpoint_breakpoint_hit, base_breakpoint_check_status) | |
4352 | (base_breakpoint_works_in_software_mode) | |
4353 | (base_breakpoint_resources_needed, base_breakpoint_print_it) | |
4354 | (base_breakpoint_print_one_detail, base_breakpoint_print_mention) | |
4355 | (base_breakpoint_print_recreate): New functions. | |
4356 | (base_breakpoint_ops): New global. | |
4357 | (bkpt_re_set, bkpt_insert_location, bkpt_remove_location) | |
4358 | (bkpt_breakpoint_hit): Make static. | |
4359 | (bkpt_check_status): Delete. | |
4360 | (bkpt_resources_needed): Make static. | |
4361 | (bkpt_works_in_software_mode): Delete. | |
4362 | (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make | |
4363 | static. | |
4364 | (bkpt_breakpoint_ops, internal_breakpoint_ops) | |
4365 | (momentary_breakpoint_ops): Don't statically initialize. | |
4366 | (internal_bkpt_print_recreate, momentary_bkpt_print_recreate): | |
4367 | Delete. | |
4368 | (tracepoint_insert_location, tracepoint_remove_location) | |
4369 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
4370 | (tracepoint_print_it): Delete. | |
4371 | (tracepoint_breakpoint_ops): Don't statically initialize. | |
4372 | (initialize_breakpoint_ops): New. | |
4373 | (_initialize_breakpoint): Call it. | |
4374 | * breakpoint.h (null_re_set, null_works_in_software_mode) | |
4375 | (null_resources_needed, null_check_status, null_print_one_detail): | |
4376 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
4377 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
4378 | (bkpt_check_status, bkpt_resources_needed) | |
4379 | (bkpt_works_in_software_mode, bkpt_print_it) | |
4380 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
4381 | Delete declarations. | |
4382 | (initialize_breakpoint_ops): Declare. | |
4383 | ||
001c8c33 PA |
4384 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4385 | ||
4386 | * breakpoint.c (bkpt_print_it, internal_bkpt_print_it) | |
4387 | (momentary_bkpt_print_it): Simplify. | |
4388 | ||
06edf0c0 PA |
4389 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4390 | ||
4391 | Split internal, momentary and user breakpoints breakpoint_ops | |
4392 | tables. | |
4393 | ||
4394 | * breakpoint.c (internal_breakpoint_ops) | |
4395 | (momentary_breakpoint_ops): Forward declare. | |
4396 | (create_internal_breakpoint): Add new breakpoint_ops parameter. | |
4397 | Pass it down, rather than hardcoding bkpt_breakpoint_ops. | |
4398 | (create_overlay_event_breakpoint) | |
4399 | (create_std_terminate_master_breakpoint) | |
4400 | (create_exception_master_breakpoint): Create breakpoints with | |
4401 | internal_breakpoint_ops vtable. | |
4402 | (set_longjmp_breakpoint): Create momentary breakpoints with | |
4403 | momentary_breakpoint_ops vtable, using | |
4404 | momentary_breakpoint_from_master. | |
4405 | (create_thread_event_breakpoint, create_jit_event_breakpoint) | |
4406 | (create_solib_event_breakpoint): Create breakpoints with | |
4407 | internal_breakpoint_ops vtable. | |
4408 | (set_momentary_breakpoint): Create breakpoints with | |
4409 | momentary_breakpoint_ops vtable. | |
4410 | (momentary_breakpoint_from_master): New, factored out from | |
4411 | clone_momentary_breakpoint. | |
4412 | (clone_momentary_breakpoint): Adjust. | |
4413 | (watch_command_1): Create scope breakpoints with | |
4414 | momentary_breakpoint_ops vtable. | |
4415 | (bkpt_re_set): Remove handling of internal and momentary | |
4416 | breakpoints. | |
4417 | (bkpt_print_mention, bkpt_print_recreate): New. | |
4418 | (bkpt_breakpoint_ops): Adjust. | |
4419 | (internal_bkpt_re_set, internal_bkpt_check_status) | |
4420 | (internal_bkpt_print_it, internal_bkpt_print_mention) | |
4421 | (internal_bkpt_print_recreate, internal_breakpoint_ops): New. | |
4422 | (momentary_bkpt_re_set, momentary_bkpt_check_status) | |
4423 | (momentary_bkpt_print_it, momentary_bkpt_print_mention) | |
4424 | (momentary_bkpt_print_recreate): New. | |
4425 | (momentary_breakpoint_ops): New. | |
4426 | ||
348d480f PA |
4427 | 2011-07-25 Pedro Alves <pedro@codesourcery.com> |
4428 | ||
4429 | Implement most breakpoint_ops methods for all breakpoint types, | |
4430 | and move the default handlings to the proper callbacks. | |
4431 | ||
4432 | * breakpoint.c (update_watchpoint): Always call the breakpoint's | |
4433 | works_in_software_mode method. | |
4434 | (insert_bp_location): Go through breakpoint_ops->insert_location | |
4435 | for software and hardware watchpoints. | |
4436 | (create_internal_breakpoint): Pass bkpt_breakpoint_ops as | |
4437 | breakpoint_ops. | |
4438 | (remove_breakpoint_1): Go through breakpoint_ops->remove_location | |
4439 | for software and hardware watchpoints. | |
4440 | (print_it_typical): Delete. | |
4441 | (print_bp_stop_message): Always call the breakpoint_ops->print_it | |
4442 | method. | |
4443 | (watchpoint_check): Adjust comment. | |
4444 | (bpstat_check_location): Simply always call the breakpoint's | |
4445 | breakpoint_hit method. | |
4446 | (bpstat_stop_status): Always call the breakpoint's check_status | |
4447 | method. Remove special cases for watchpoints and internal event | |
4448 | breakpoints from here (moved to the check_status implementations). | |
4449 | (print_one_breakpoint_location): Assume b->ops is never NULL. | |
4450 | Remove static tracepoint marker id printing from here (moved to | |
4451 | the print_one_detail callback implementation of tracepoints). | |
4452 | (init_bp_location): Assert OPS is never NULL. | |
4453 | (allocate_bp_location): Always call the breakpoint's | |
4454 | allocate_location method, and remove the default code from here. | |
4455 | (free_bp_location): Always call the location's dtor method, and | |
4456 | remove the default code from here. | |
4457 | (init_raw_breakpoint_without_location): Assert OPS is never NULL. | |
4458 | (set_raw_breakpoint_without_location): Add new breakpoint_ops | |
4459 | parameter. Pass it down. | |
4460 | (set_raw_breakpoint): Ditto. | |
4461 | (print_it_catch_fork): Adjust to take a bpstat as argument. | |
4462 | (catch_fork_breakpoint_ops): Install methods. | |
4463 | (print_it_catch_vfork): Adjust to take a bpstat as argument. | |
4464 | (catch_vfork_breakpoint_ops): Install methods. | |
4465 | (dtor_catch_syscall): Call the base dtor. | |
4466 | (print_it_catch_syscall): Adjust to take a bpstat as argument. | |
4467 | (catch_syscall_breakpoint_ops): Install methods. | |
4468 | (dtor_catch_exec): Call the base dtor. | |
4469 | (print_it_catch_exec): Adjust to take a bpstat as argument. | |
4470 | (catch_exec_breakpoint_ops): Install methods. | |
4471 | (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call | |
4472 | the breakpoint's resources_needed method, and remove the default | |
4473 | code from here. | |
4474 | (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as | |
4475 | breakpoint_ops. | |
4476 | (clone_momentary_breakpoint): Clone the original's ops. | |
4477 | (mention): Always call the breakpoint's print_mention method, and | |
4478 | remove the default code from here. | |
4479 | (create_breakpoint_sal): Adjust to pass the ops to | |
4480 | set_raw_breakpoint rather than setting it manually. | |
4481 | (create_breakpoint): Assert ops is never NULL. Adjust to pass the | |
4482 | ops to set_raw_breakpoint_without_location rather than setting it | |
4483 | manually. | |
4484 | (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops. | |
4485 | (print_it_ranged_breakpoint): Adjust to take a bpstat as argument. | |
4486 | (ranged_breakpoint_ops): Install methods. | |
4487 | (break_range_command): Adjust to pass the ops to | |
4488 | set_raw_breakpoint rather than setting it manually. | |
4489 | (re_set_watchpoint, breakpoint_hit_watchpoint) | |
4490 | (check_status_watchpoint, resources_needed_watchpoint) | |
4491 | (works_in_software_mode_watchpoint, print_it_watchpoint) | |
4492 | (print_mention_watchpoint, print_recreate_watchpoint): New | |
4493 | functions. | |
4494 | (watchpoint_breakpoint_ops): Install new methods. | |
4495 | (print_it_masked_watchpoint): New function. | |
4496 | (masked_watchpoint_breakpoint_ops): Install new methods. | |
4497 | (watch_command_1): Adjust to pass the right breakpoint_ops to | |
4498 | set_raw_breakpoint_without_location rather than setting it | |
4499 | manually later. Record the current pspace. | |
4500 | (print_it_exception_catchpoint): Adjust to take a bpstat as | |
4501 | argument. | |
4502 | (gnu_v3_exception_catchpoint_ops): Install new methods. | |
4503 | (say_where): New function. | |
4504 | (null_re_set, null_check_status, null_works_in_software_mode) | |
4505 | (null_resources_needed, null_print_one_detail, bp_location_dtor): | |
4506 | New functions. | |
4507 | (bp_location_ops): New global. | |
4508 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
4509 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
4510 | (bkpt_check_status, bkpt_resources_needed) | |
4511 | (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention) | |
4512 | (bkpt_print_recreate): New functions. | |
4513 | (bkpt_breakpoint_ops): New global. | |
4514 | (tracepoint_re_set, tracepoint_insert_location) | |
4515 | (tracepoint_remove_location, tracepoint_breakpoint_hit) | |
4516 | (tracepoint_check_status, tracepoint_works_in_software_mode) | |
4517 | (tracepoint_print_it, tracepoint_print_one_detail) | |
4518 | (tracepoint_print_mention, tracepoint_print_recreate): New | |
4519 | functions. | |
4520 | (tracepoint_breakpoint_ops): New global. | |
4521 | (delete_breakpoint): Always call the breakpoint's dtor method, and | |
4522 | remove the default handling from here. | |
4523 | (breakpoint_re_set_default): Make static. | |
4524 | (breakpoint_re_set_one): Always call the breakpoints re_set | |
4525 | method, and remove the default handling from here. | |
4526 | (trace_command, ftrace_command, strace_command) | |
4527 | (create_tracepoint_from_upload): Pass appropriate breakpoints_ops | |
4528 | to create_breakpoint. | |
4529 | (save_breakpoints): Always call the breakpoint's print_recreate | |
4530 | method, and remove the default handling from here. | |
4531 | ||
4532 | * ada-lang.c (dtor_exception): Call the base dtor. | |
4533 | (re_set_exception): Call the base method. | |
4534 | (print_it_exception, print_it_catch_exception): Adjust to take a | |
4535 | bpstat as argument. | |
4536 | (catch_exception_breakpoint_ops): Install methods. | |
4537 | (print_it_catch_exception_unhandled): Adjust to take a bpstat as | |
4538 | argument. | |
4539 | (catch_exception_unhandled_breakpoint_ops): Install methods. | |
4540 | (print_it_catch_assert): Adjust to take a bpstat as argument. | |
4541 | (catch_assert_breakpoint_ops): Install methods. | |
4542 | ||
4543 | * breakpoint.h (struct breakpoint_ops): Adjust the print_it method | |
4544 | to take a bpstat as argument. | |
4545 | (enum print_stop_action): Add describing comments to each enum | |
4546 | value. | |
4547 | (breakpoint_re_set_default): Delete declaration. | |
4548 | (null_re_set, null_works_in_software_mode, null_resources_needed) | |
4549 | (null_check_status, null_print_one_detail): Declare. | |
4550 | (bkpt_breakpoint_ops): Declare. | |
4551 | (bkpt_dtor, bkpt_allocate_location, bkpt_re_set) | |
4552 | (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit) | |
4553 | (bkpt_check_status, bkpt_resources_needed) | |
4554 | (bkpt_works_in_software_mode, bkpt_print_it) | |
4555 | (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate): | |
4556 | Declare. | |
4557 | ||
4558 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass | |
4559 | bkpt_breakpoint_ops. | |
4560 | * python/py-breakpoint.c (bppy_init): Ditto. | |
4561 | ||
be8f8133 PW |
4562 | 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4563 | ||
4564 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4565 | ||
3807f613 PP |
4566 | 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com> |
4567 | ||
4568 | * elfread.c (elf_rel_plt_read): Fix off-by-one bug. | |
4569 | ||
1ced966e PA |
4570 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
4571 | ||
4572 | * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE) | |
4573 | (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN) | |
4574 | (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and | |
4575 | adjust. | |
4576 | (dr_mirror, dr_status_mirror, dr_control_mirror): Delete. | |
4577 | (struct i386_debug_reg_state): New. | |
4578 | (i386_init_dregs): New. | |
4579 | (dr_mirror): New. | |
4580 | (i386_cleanup_dregs): Use i386_init_dregs. | |
4581 | (i386_show_dr): Add state parameter and adjust. | |
4582 | (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to | |
4583 | the inferior here. | |
4584 | (i386_remove_aligned_watchpoint): Likewise. | |
4585 | (i386_handle_nonaligned_watchpoint): Add state parameter and adjust. | |
4586 | (i386_update_inferior_debug_regs): New. | |
4587 | (i386_insert_watchpoint): Work on a local mirror of the debug | |
4588 | registers, and only update the inferior on success. | |
4589 | (i386_remove_watchpoint): Ditto. | |
4590 | (i386_region_ok_for_watchpoint): Adjust. | |
4591 | (i386_stopped_data_address): Adjust. | |
4592 | (i386_insert_hw_breakpoint): Adjust. | |
4593 | (i386_remove_hw_breakpoint): Adjust. | |
4594 | ||
3543a589 TT |
4595 | 2011-07-22 Tom Tromey <tromey@redhat.com> |
4596 | ||
4597 | * amd64-tdep.c (amd64_pseudo_register_read_value): Rename | |
4598 | from amd64_pseudo_register_read. Change arguments. Call | |
4599 | mark_value_bytes_unavailable when needed. | |
4600 | (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not | |
4601 | set_gdbarch_pseudo_register_read. | |
4602 | * sentinel-frame.c (sentinel_frame_prev_register): Use | |
4603 | regcache_cooked_read_value. | |
4604 | * regcache.h (regcache_cooked_read_value): Declare. | |
4605 | * regcache.c (regcache_cooked_read_value): New function. | |
4606 | (regcache_cooked_read): Call | |
4607 | gdbarch_pseudo_register_read_value if available. | |
4608 | * i386-tdep.h (i386_pseudo_register_read_value): Declare. | |
4609 | (i386_pseudo_register_read): Remove. | |
4610 | * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from | |
4611 | i386_pseudo_register_read. Change arguments. Call | |
4612 | mark_value_bytes_unavailable when needed. | |
4613 | (i386_pseudo_register_read_value): New function. | |
4614 | (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value, | |
4615 | not set_gdbarch_pseudo_register_read. | |
4616 | * gdbarch.sh (pseudo_register_read_value): New method. | |
4617 | * gdbarch.c, gdbarch.h: Rebuild. | |
4618 | * findvar.c (value_from_register): Call get_frame_register_value. | |
4619 | ||
95298e72 PM |
4620 | 2011-07-22 Phil Muldoon <pmuldoon@redhat.com> |
4621 | ||
4622 | * event-top.c (cli_command_loop): Use get_prompt, get_suffix, | |
4623 | get_prefix. | |
4624 | (display_gdb_prompt): Likewise. | |
4625 | (change_annotation_level): Likewise. | |
4626 | (push_prompt): Likewise. | |
4627 | (pop_prompt): Likewise. | |
4628 | (handle_stop_sig): Use get_prompt with a level. | |
4629 | * top.c (command_loop): Use get_prompt with a level. | |
4630 | (set_async_annotation_level): Use set_prompt with a level. | |
4631 | (get_prefix): New function. | |
4632 | (set_prefix): Ditto. | |
4633 | (set_suffix): Ditto. | |
4634 | (get_suffix): Ditto. | |
4635 | (get_prompt): Accept a level argument. | |
4636 | (set_prompt): Accept a level argument. Free old prompts. Set | |
4637 | new_async_prompt if level is 0. | |
4638 | (init_main): Use set_prompt with a level. Do not set | |
4639 | new_async_prompt. | |
4640 | * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c | |
4641 | * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix. | |
4642 | Modify set_prompt, get_prompt to account for levels. | |
4643 | * tui/tui-interp.c (tui_command_loop): Use get_prompt with a | |
4644 | level. | |
4645 | * python/python.c (before_prompt_hook): Use set_prompt. | |
4646 | ||
d26e3629 KY |
4647 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
4648 | ||
4649 | * defs.h: Add guard against inclusion in gdbserver. | |
4650 | (struct ptid, ptid_t): Move to common/ptid.h. | |
4651 | (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf, | |
4652 | xsnprintf, internal_error): Move to common/common-utils.h. | |
4653 | (nomem): Delete. | |
4654 | * gdb_assert.h: Move into common/ sub-directory. | |
4655 | * gdb_locale.h: Ditto. | |
4656 | * gdb_dirent.h: Ditto. | |
4657 | * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid, | |
4658 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): | |
4659 | Move into common/ptid.h. | |
4660 | * xml-support.c (xml_escape_text): Move into common/xml-utils.c. | |
4661 | (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file): | |
4662 | Change nomem to malloc_failure. | |
4663 | * xml-support.h (xml_escape_text): Move into common/xml-utils.h. | |
4664 | * utils.c (nomem): Rename to malloc_failure. | |
4665 | (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf, | |
4666 | xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c. | |
4667 | (gdb_buildargv): Change nomem to malloc_failure. | |
4668 | * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
4669 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
4670 | ptid_is_pid): Move into common/ptid.c. | |
4671 | (initialize_infrun): Delete initialization of null_ptid and | |
4672 | minus_one_ptid. | |
4673 | * linux-nat.c (linux_nat_xfer_osdata): Defer to | |
4674 | linux_common_xfer_osdata. | |
4675 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
4676 | common/ptid.c and common/buffer.c. | |
4677 | (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h, | |
4678 | common/ptid.h, common/buffer.h and common/linux-osdata.h. | |
4679 | (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o. | |
4680 | (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New | |
4681 | rules. | |
4682 | * common/gdb_assert.h: New. | |
4683 | * common/gdb_dirent.h: New. | |
4684 | * common/gdb_locale.h: New. | |
4685 | * common/buffer.c: New. | |
4686 | * common/buffer.h: New. | |
4687 | * common/ptid.c: New. | |
4688 | * common/ptid.h: New. | |
4689 | * common/xml-utils.c: New. | |
4690 | * common/xml-utils.h: New. | |
4691 | * common/common-utils.c: New. | |
4692 | * common/common-utils.h: New. | |
4693 | * common/linux-osdata.c: New. | |
4694 | * common/linux-osdata.h: New. | |
4695 | * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o. | |
4696 | * config/arm/linux.mh (NATDEPFILES): Ditto. | |
4697 | * config/i386/linux.mh (NATDEPFILES): Ditto. | |
4698 | * config/i386/linux64.mh (NATDEPFILES): Ditto. | |
4699 | * config/ia64/linux.mh (NATDEPFILES): Ditto. | |
4700 | * config/m32r/linux.mh (NATDEPFILES): Ditto. | |
4701 | * config/m68k/linux.mh (NATDEPFILES): Ditto. | |
4702 | * config/mips/linux.mh (NATDEPFILES): Ditto. | |
4703 | * config/pa/linux.mh (NATDEPFILES): Ditto. | |
4704 | * config/powerpc/linux.mh (NATDEPFILES): Ditto. | |
4705 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto. | |
4706 | * config/s390/s390.mh (NATDEPFILES): Ditto. | |
4707 | * config/sparc/linux.mh (NATDEPFILES): Ditto. | |
4708 | * config/sparc/linux64.mh (NATDEPFILES): Ditto. | |
4709 | * config/xtensa/linux.mh (NATDEPFILES): Ditto. | |
4710 | ||
edc84990 | 4711 | 2011-07-21 Matt Rice <ratmice@gmail.com> |
4712 | ||
4713 | * NEWS: Add info macros and info definitions commands. | |
4714 | ||
3a7bf607 PM |
4715 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
4716 | ||
4717 | * NEWS: Document Python prompt substitution hook. | |
4718 | ||
9b158ba0 | 4719 | 2011-07-18 Matt Rice <ratmice@gmail.com> |
4720 | ||
4721 | PR macros/12999 | |
4722 | * macrotab.h (macro_callback_fn): Add new arguments to callback. | |
4723 | * macrotab.c (foreach_macro): Ditto. | |
4724 | (foreach_macro_in_scope): Ditto. | |
4725 | * macrocmd.c (print_macro_callback): New function. | |
4726 | (info_macro_command): Move some code to print_macro_definition. | |
4727 | (print_macro_definition): New function. | |
4728 | (print_one_macro): Add new arguments to callback. | |
4729 | (info_definitions_command): New function. | |
4730 | (info_macros_command): Ditto. | |
4731 | (_initialize_macrocmd): Add info macros and info definitions commands. | |
4732 | * symtab.c (add_macro_name): Add new arguments to callback. | |
4733 | ||
d17b6f81 PM |
4734 | 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> |
4735 | Tom Tromey <tromey@redhat.com> | |
4736 | ||
4737 | * top.c (set_prompt): Rewrite to free previous prompt, free | |
4738 | asynch_new_prompt and set both on new prompts. | |
4739 | * event-top.c (display_gdb_prompt): Add prompt substitution | |
4740 | logic. | |
4741 | * python/python.c (before_prompt_hook): New function. | |
4742 | ||
1364323a | 4743 | 2011-07-20 Matt Rice <ratmice@gmail.com> |
4744 | ||
4745 | * bfin-tdep.c (bfin_extract_return_value): Fix swapped | |
4746 | arguments to store_unsigned_integer. | |
4747 | ||
8b70b953 TT |
4748 | 2011-07-20 Tom Tromey <tromey@redhat.com> |
4749 | ||
6c83ed52 TT |
4750 | * dwarf2read.c (process_enumeration_scope): Do not call new_symbol |
4751 | in some declaration-only cases. | |
4752 | ||
4753 | 2011-07-18 Tom Tromey <tromey@redhat.com> | |
4754 | ||
8b70b953 TT |
4755 | PR symtab/12984: |
4756 | * dwarf2read.c (dwarf2_section_info_def): New typedef. | |
4757 | (struct dwarf2_per_objfile) <types>: Change to a VEC. | |
4758 | (struct dwarf2_per_cu_data) <from_debug_types>: Remove. | |
4759 | <debug_type_section>: New field. | |
4760 | (dwarf2_locate_sections): Push .debug_types sections onto VEC. | |
4761 | (load_cu): Use appropriate section. | |
4762 | (create_signatured_type_table_from_index): Add 'section' | |
4763 | argument. | |
4764 | (dwarf2_read_index): Only allow a single .debug_types section. | |
4765 | (dw2_get_file_names): Use appropriate section. | |
4766 | (read_type_comp_unit_head): Add 'section' argument. | |
4767 | (create_debug_types_hash_table): Loop over all .debug_types | |
4768 | sections. | |
4769 | (init_cu_die_reader): Use appropriate section. | |
4770 | (process_psymtab_comp_unit, load_partial_comp_unit) | |
4771 | (load_full_comp_unit, read_die_and_children, find_partial_die) | |
4772 | (lookup_die_type, determine_prefix, follow_die_offset): Update. | |
4773 | (lookup_signatured_type_at_offset): Add 'section' argument. | |
4774 | (read_signatured_type_at_offset): Add 'sect' argument. | |
4775 | (read_signatured_type): Use appropriate section. | |
4776 | (set_die_type, get_die_type_at_offset): Update. | |
4777 | (dwarf2_per_objfile_free): Free all .debug_types sections, and | |
4778 | VEC. | |
4779 | (write_psymtabs_to_index): Don't allow index with more than one | |
4780 | .debug_types section. | |
4781 | ||
918dd910 JK |
4782 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4783 | ||
4784 | Fix crash if referenced CU is aged out. | |
4785 | * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for | |
4786 | xfree of block.data. | |
4787 | (indirect_pieced_value): New variable back_to, use to for xfree of | |
4788 | baton.data. | |
4789 | (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of | |
4790 | block.data. | |
4791 | * dwarf2read.c (dwarf2_find_base_address): New prototype. | |
4792 | (load_cu): New function from ... | |
4793 | (dw2_do_instantiate_symtab): ... the code here ... | |
4794 | (process_full_comp_unit): ... and here. | |
4795 | (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on | |
4796 | retval.data. | |
4797 | ||
0e37a63c JK |
4798 | 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4799 | ||
4800 | * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's | |
4801 | type. | |
4802 | ||
7e324e48 GB |
4803 | 2011-07-19 Gary Benson <gbenson@redhat.com> |
4804 | ||
4805 | * infrun.c (struct execution_control_state): New member | |
4806 | stop_func_filled_in. | |
4807 | (clear_stop_func, fill_in_stop_func): New functions. | |
4808 | (handle_inferior_event): Call clear_stop_func rather than | |
4809 | manipulating the execution control state directly. | |
4810 | Call fill_in_stop_func lazily as required rather than | |
4811 | directly calling find_pc_partial_function in all cases. | |
4812 | ||
d48323d8 TT |
4813 | 2011-07-18 Tom Tromey <tromey@redhat.com> |
4814 | ||
4815 | * dwarf2read.c (read_subrange_type): Use attr_form_is_block when | |
4816 | checking for variable-sized array. | |
4817 | ||
40591b7d JCD |
4818 | 2011-07-18 Jean-Charles Delay <delay@adacore.com> |
4819 | ||
4820 | * varobj.h (varobj_languages): Add vlang_ada definition to the list | |
4821 | of supported languages. | |
4822 | * varobj.c: Add top definitions and basic implementation of the | |
4823 | following callbacks: ada_number_of_children, ada_name_of_variable, | |
4824 | ada_name_of_child, ada_path_expr_of_child, ada_value_of_root, | |
4825 | ada_value_of_child, ada_type_of_child, ada_value_of_variable. | |
4826 | (languages): Register Ada-specific callbacks. | |
4827 | (variable_language): Add the Ada case in the language setter switch. | |
4828 | ||
2e424e08 JK |
4829 | 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
4830 | ||
4831 | * remote-mips.c (pmon_download): Fix ignored return value GCC warning. | |
4832 | ||
9e8b7a03 JK |
4833 | 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
4834 | ||
4835 | Code cleanup. | |
4836 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New. | |
4837 | (execute_stack_op): Use dwarf2_frame_ctx_funcs | |
4838 | * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs. | |
4839 | (execute_stack_op): Access read_reg, get_frame_base, read_mem, | |
4840 | get_frame_cfa, get_tls_address and dwarf_call via funcs. | |
4841 | * dwarf2expr.h (struct dwarf_expr_context): New forward declaration. | |
4842 | (struct dwarf_expr_context_funcs): New, move here methods from ... | |
4843 | (struct dwarf_expr_context): ... here. New fields funcs. | |
4844 | * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs. | |
4845 | (dwarf_expr_ctx_funcs): New. | |
4846 | (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs. | |
4847 | (needs_frame_dwarf_call): Access get_frame_pc via funcs. | |
4848 | (needs_frame_ctx_funcs): New. | |
4849 | (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs. | |
4850 | ||
2b1260ab FM |
4851 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
4852 | ||
4853 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4854 | ||
8bd90839 FM |
4855 | 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com> |
4856 | ||
4857 | * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure | |
4858 | that CIE pointer of an FDE really points to a CIE . | |
4859 | ||
953b98d1 HZ |
4860 | 2011-07-15 Hui Zhu <teawater@gmail.com> |
4861 | ||
4862 | * remote.c (remote_get_trace_status): Add comments. | |
4863 | ||
c8f2448a JK |
4864 | 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
4865 | ||
4866 | Code cleanup - constify struct lval_funcs. | |
4867 | * dwarf2loc.c (pieced_value_funcs): Make it const. | |
4868 | * infrun.c (siginfo_value_funcs): Likewise. | |
4869 | * opencl-lang.c (opencl_value_funcs): Likewise. | |
4870 | * valops.c (value_assign, value_ind): Make the funcs variable const. | |
4871 | * value.c (struct value): Make location.computed.funcs target const. | |
4872 | Rearrange the comments. | |
4873 | (allocate_computed_value): Make the funcs parameter target const. | |
4874 | (value_computed_funcs): Return the funcs target const. | |
4875 | (value_free, value_copy, set_value_component_location): Make the funcs | |
4876 | variable const. | |
4877 | * value.h (allocate_computed_value): Make the funcs parameter target | |
4878 | const. | |
4879 | (value_computed_funcs): Return the funcs target const. | |
4880 | * windows-tdep.c (tlb_value_funcs): Make it const. | |
4881 | ||
f652de6f HZ |
4882 | 2011-07-14 Hui Zhu <teawater@gmail.com> |
4883 | ||
4884 | * remote.c (remote_get_trace_status): Initialize p. | |
4885 | ||
67f41397 JK |
4886 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4887 | ||
4888 | Work around kgdb. | |
4889 | * remote.c (remote_get_trace_status): New variable ex. Put | |
4890 | remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it. | |
4891 | ||
d1b66e6d TT |
4892 | 2011-07-13 Tom Tromey <tromey@redhat.com> |
4893 | ||
4894 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use | |
4895 | value_from_contents for final conversion. | |
4896 | ||
1632a688 JK |
4897 | 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4898 | ||
4899 | Code cleanup. | |
4900 | * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full): | |
4901 | Indent prototypes so they do not get into tags. | |
4902 | ||
a7035dbb JK |
4903 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
4904 | ||
4905 | Code cleanup making also optimized out values lazy. | |
4906 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
4907 | allocate_optimized_out_value. Twice. | |
4908 | (loclist_read_variable) Use allocate_optimized_out_value. Once. | |
4909 | * findvar.c (read_var_value): Likewise. | |
4910 | * value.c (allocate_optimized_out_value): New function. | |
4911 | * value.h (allocate_optimized_out_value): New declaration. | |
4912 | ||
d07ed419 JK |
4913 | 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
4914 | ||
4915 | Fix occasional crash of CTRL-C during DWARF read in. | |
4916 | * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU. | |
4917 | ||
86d31898 TT |
4918 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
4919 | ||
4920 | * regcache.c (struct regcache_descr): Fix typo. | |
4921 | * i387-tdep.c (i387_supply_xsave): Fix typo. | |
4922 | ||
2ab95328 TT |
4923 | 2011-07-11 Tom Tromey <tromey@redhat.com> |
4924 | ||
4925 | * dwarf2read.c (handle_DW_AT_stmt_list): New function. | |
4926 | (read_file_scope, read_type_unit_scope): Use it. | |
4927 | ||
04ad99e6 JK |
4928 | 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
4929 | ||
4930 | * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host | |
4931 | `int'. | |
4932 | ||
713389e0 PM |
4933 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
4934 | ||
4935 | PR python/12438 | |
4936 | * python/python.c: Set gdbpy_should_print_stack default to off. | |
4937 | (set_python): Deprecate maint set python print-stack to | |
4938 | class_deprecate. | |
4939 | (_initialize_python): Deprecate maint set/show python print-stack. | |
4940 | Add new prefix command, python. Add new setting, print-backtrace. | |
4941 | * NEWS: Document set python print-stack. Document default change. | |
4942 | ||
754eadd1 PM |
4943 | 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> |
4944 | ||
4945 | * python/py-inferior.c (infpy_dealloc): New function. | |
4946 | (inferior_to_inferior_object): Return a new object, or a | |
4947 | new reference to the existing object. | |
4948 | (find_thread_object): Cleanup references to inferior. | |
4949 | (delete_thread_object): Ditto. | |
4950 | * python/py-infthread.c (create_thread_object): Do not increment | |
4951 | inferior reference count. | |
4952 | ||
5e44ecb3 TT |
4953 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
4954 | ||
4955 | * dwarf2loc.c (locexpr_regname): New function. | |
4956 | (locexpr_describe_location_piece): Use it. | |
4957 | (disassemble_dwarf_expression): Add per_cu argument. Use | |
4958 | locexpr_regname. | |
4959 | <DW_OP_GNU_deref_type, DW_OP_GNU_const_type, | |
4960 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
4961 | New cases. | |
4962 | (locexpr_describe_location_1): Add per_cu argument. | |
4963 | (locexpr_describe_location): Update. | |
4964 | (loclist_describe_location): Update. | |
4965 | ||
e0e9434c TT |
4966 | 2011-07-08 Tom Tromey <tromey@redhat.com> |
4967 | ||
4968 | * dwarf2expr.c (execute_stack_op): Add QUIT. | |
4969 | ||
26afc0d7 HZ |
4970 | 2011-07-07 Hui Zhu <teawater@gmail.com> |
4971 | ||
4972 | Revert: | |
4973 | 2011-07-06 Hui Zhu <teawater@gmail.com> | |
4974 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
4975 | remote_get_trace_status. | |
4976 | * tracepoint.c (disconnect_tracing): Ditto. | |
4977 | ||
a40a111f AB |
4978 | 2011-07-07 Andrew Burgess <aburgess@broadcom.com> |
4979 | ||
4980 | * cli/cli-setshow.c (do_setshow_command): Display var_zinteger | |
4981 | variables as signed, not unsigned. | |
4982 | ||
e2bd3b15 JB |
4983 | 2011-07-06 Joel Brobecker <brobecker@adacore.com> |
4984 | ||
4985 | * jit.c (jit_inferior_init): Reformat forward declaration. | |
4986 | ||
e3d961fe | 4987 | 2011-07-06 Matt Rice <ratmice@gmail.com> |
4988 | ||
4989 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
4990 | ||
0f3428f0 HZ |
4991 | 2011-07-06 Hui Zhu <teawater@gmail.com> |
4992 | ||
4993 | * remote.c (remote_start_remote): Add TRY_CATCH for | |
4994 | remote_get_trace_status. | |
4995 | * tracepoint.c (disconnect_tracing): Ditto. | |
4996 | ||
fc9f3a69 TT |
4997 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
4998 | ||
4999 | * symtab.c (operator_chars): Now static. | |
5000 | * linespec.c (operator_chars): Don't declare. | |
5001 | ||
26e519b9 TJB |
5002 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5003 | ||
5004 | * ui-out.h (ui_out_field_core_addr): Fix typo in comment. | |
5005 | ||
eb2a6f42 TT |
5006 | 2011-07-05 Tom Tromey <tromey@redhat.com> |
5007 | ||
5008 | * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA. | |
5009 | * gdbtypes.h (struct cplus_struct_type) <is_java>: New field. | |
5010 | (TYPE_CPLUS_REALLY_JAVA): New macro. | |
5011 | * dwarf2read.c (process_structure_scope): Set | |
5012 | TYPE_CPLUS_REALLY_JAVA. | |
5013 | ||
21083d0f | 5014 | 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
177b42fe TJB |
5015 | |
5016 | * ada-lang.c: Fix typos. | |
5017 | * amd64-tdep.c: Likewise. | |
5018 | * breakpoint.c: Likewise. | |
5019 | * cli/cli-decode.c: Likewise. | |
5020 | * findcmd.c: Likewise. | |
5021 | * inline-frame.c: Likewise. | |
5022 | * mi/mi-main.c: Likewise. | |
5023 | * minsyms.c: Likewise. | |
5024 | * monitor.c: Likewise. | |
5025 | * monitor.h: Likewise. | |
5026 | * prologue-value.c: Likewise. | |
5027 | * reverse.c: Likewise. | |
5028 | * s390-tdep.c: Likewise. | |
5029 | ||
3b2a0cf2 JB |
5030 | 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
5031 | ||
5032 | * jit.c (jit_inferior_init): Forward declare. | |
5033 | (jit_breakpoint_re_set_internal): Call jit_inferior_init. | |
5034 | ||
efae1d92 JB |
5035 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
5036 | ||
5037 | * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting. | |
5038 | ||
6040a59d JB |
5039 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
5040 | ||
5041 | * ada-tasks.c (KNOWN_TASKS_LIST): New macro. | |
5042 | (tcb_fieldno): Add activation_link field. | |
5043 | (get_known_tasks_addr): Moved and rewritten. | |
5044 | (get_tcb_types_info): Set activation_link field. | |
5045 | (read_known_tasks_array): Add parameter. Rewritten. | |
5046 | (read_known_tasks_list): New function. | |
5047 | (read_known_tasks): New function. | |
5048 | (ada_build_task_list): Call read_known_tasks instead of | |
5049 | read_known_tasks_array. | |
5050 | * ravenscar-thread.c: Add first_task_name constant. | |
5051 | (has_ravenscar_runtime): Check for task list too. | |
5052 | ||
cb741e45 JB |
5053 | 2011-07-04 Tristan Gingold <gingold@adacore.com> |
5054 | ||
5055 | * ada-tasks.c: Renames fieldno to actb_fieldno. | |
5056 | (ada_get_task_number): Indentation. | |
5057 | (get_tcb_types_info): Remove all parameters. Write directly | |
5058 | the globals. | |
5059 | (ptid_from_atcb_common): Adjust. | |
5060 | (read_atcb): Adjust. | |
5061 | ||
7475b06c TJB |
5062 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5063 | ||
5064 | * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit. | |
5065 | ||
15230f37 TJB |
5066 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5067 | ||
5068 | * ui-out.c (ui_out_field_core_addr): Mention that the function | |
5069 | description is in the header file. | |
5070 | * ui-out.h (ui_out_field_core_addr): Document function. | |
5071 | ||
65743aba TJB |
5072 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5073 | ||
5074 | * ui-out.c (ui_out_get_field_separator): Remove unused function. | |
5075 | * ui-out.h (ui_out_get_field_separator): Remove prototype. | |
5076 | ||
c37a5aab TJB |
5077 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5078 | ||
5079 | * symtab.c (expand_line_sal): Remove empty line. | |
5080 | ||
59adf69e TS |
5081 | 2011-07-04 Thomas Schwinge <thomas@schwinge.name> |
5082 | ||
5083 | * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the | |
5084 | same way as ELFOSABI_NONE. | |
5085 | <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases. | |
5086 | ||
e5dd4106 TJB |
5087 | 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5088 | ||
5089 | * breakpoint.c: Fix typos in comments. | |
5090 | * linespec.c: Likewise. | |
5091 | * symtab.c: Likewise. | |
5092 | ||
d40102a1 JB |
5093 | 2011-07-04 Joel Brobecker <brobecker@adacore.com> |
5094 | ||
5095 | * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame | |
5096 | section in separate object files. | |
5097 | ||
2f741504 JK |
5098 | 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
5099 | ||
5100 | Fix false GCC warning. | |
5101 | * linespec.c (decode_line_1): Initialize values. | |
5102 | ||
418c7cf7 JK |
5103 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5104 | ||
5105 | * linespec.c (find_method): Accept the function type automatically only | |
5106 | if it was specified with parameter types. | |
5107 | ||
3d50dd94 JK |
5108 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5109 | ||
5110 | Stop on first linespec terminator instead of eating what we can. | |
5111 | * linespec.c (is_linespec_boundary): New function. | |
5112 | (name_end): Remove function. | |
5113 | (keep_name_info): New parameter on_boundary, replace the body. | |
5114 | (decode_line_1): Provide the parameter to keep_name_info. | |
5115 | (decode_compound): Likewise. Drop the trailing java return type | |
5116 | handling. Twice. | |
5117 | ||
dcf9f4ab JK |
5118 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5119 | ||
5120 | Fall back linespec to minimal symbols. | |
5121 | * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect | |
5122 | decode_compound by TRY_CATCH, fall back on minsyms if it failed. | |
5123 | (find_method, symbol_found): Change error to cplusplus_error. | |
5124 | ||
3f542ed1 JK |
5125 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5126 | ||
bc68c4e5 | 5127 | * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE. |
3f542ed1 | 5128 | |
900e11f9 JK |
5129 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5130 | Tom Tromey <tromey@redhat.com> | |
5131 | ||
5132 | * dwarf2read.c (check_physname): New variable. | |
5133 | (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name. | |
5134 | (show_check_physname): New function. | |
5135 | (_initialize_dwarf2_read): Add `check-physname' for check_physname. | |
5136 | ||
2301925d JB |
5137 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5138 | ||
5139 | * machoread.c (macho_symfile_read): Delete OBE comment. | |
5140 | ||
38947cca JB |
5141 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5142 | ||
5143 | * machoread.c (struct macho_oso_data): Delete. | |
5144 | (current_oso): Delete. | |
5145 | (macho_relocate_common_syms): New function, mostly extracted | |
5146 | out of | |
5147 | (macho_add_oso_symfile): Call macho_relocate_common_syms. | |
5148 | Remove code that sets and unset current_oso. | |
5149 | (macho_symfile_relocate): Delete handling of common symbols, | |
5150 | now moved to macho_relocate_common_syms. | |
5151 | ||
a7aa0d73 JB |
5152 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5153 | ||
5154 | * darwin-nat.c (darwin_ptrace): Add documentation. | |
5155 | Set errno to zero before calling ptrace. If ptrace returns | |
5156 | -1 and errno is zero, then change then return zero. | |
5157 | (darwin_kill_inferior): Issue a warning instead of triggering | |
5158 | a failed assertion when the PT_KILL ptrace operations returned | |
5159 | nonzero. | |
5160 | ||
5e9bc145 JB |
5161 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5162 | ||
5163 | * darwin-nat.c (darwin_detach): Call darwin_resume_inferior | |
5164 | only when inf->private->no_ptrace. | |
5165 | ||
00eb2c4a JB |
5166 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5167 | ||
5168 | * ada-lang.c (print_it_exception): Print temporary catchpoints | |
5169 | as "Temporary catchpoint". | |
5170 | (print_mention_exception): Likewise. | |
5171 | ||
127c81bc TT |
5172 | 2011-07-01 Tom Tromey <tromey@redhat.com> |
5173 | ||
5174 | * jv-lang.c (java_language_defn): Use java_printchar, | |
5175 | java_printstr. | |
5176 | (java_get_encoding): New function. | |
5177 | (java_emit_char): Use generic_emit_char. | |
5178 | (java_printchar): New function. | |
5179 | (java_printstr): Likewise. | |
5180 | ||
25552254 JB |
5181 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5182 | ||
5183 | * ada-typeprint.c (print_record_type): If unable to decode | |
5184 | the name of the parent type, use the encoded name. | |
5185 | ||
d2d43431 JB |
5186 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
5187 | ||
5188 | * ada-typeprint.c (ada_print_type): Fix both PAD type and | |
5189 | pointer to constrained packed array type output. | |
5190 | * ada-valprint.c (ada_val_print_1): Fix pointer to constrained | |
5191 | packed array output. | |
5192 | ||
54ae186f JB |
5193 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
5194 | ||
5195 | * ada-typeprint.c (print_array_type): removed if condition on show | |
5196 | being negative for bounds printing. | |
5197 | ||
8f17729f JB |
5198 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5199 | ||
5200 | * ada-lang.c (ada_identical_enum_types_p): New function. | |
5201 | (symbols_are_identical_enums): New function. | |
5202 | (remove_extra_symbols): Do nothing if NSYMS < 2. | |
5203 | Use symbols_are_identical_enums. | |
5204 | ||
f5aa6869 JB |
5205 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5206 | ||
5207 | * ada-valprint.c (ada_value_print): Handle typedefs. | |
5208 | ||
8f465ea7 JB |
5209 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5210 | ||
5211 | * ada-lang.c (ada_evaluate_subexp): Add missing word in comment. | |
5212 | ||
828292f2 JB |
5213 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
5214 | ||
5215 | * ada-lang.c (thin_descriptor_type): Deal with typedefs. | |
5216 | (decode_constrained_packed_array): Likewise. | |
5217 | (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise. | |
5218 | ||
18920c42 JB |
5219 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5220 | ||
5221 | * ada-exp.y (convert_char_literal): Handle typedef types. | |
5222 | ||
c90092fe JB |
5223 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
5224 | ||
5225 | * ada-lang.c (ada_remove_trailing_digits): Expand documentation. | |
5226 | ||
f748fb40 TT |
5227 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
5228 | ||
5229 | * varobj.c (varobj_create): Call do_cleanups on early exit path. | |
5230 | * valops.c (find_overload_match): Call do_cleanups on early exit | |
5231 | path. | |
5232 | * solib.c (solib_find): Call do_cleanups on early exit path. | |
5233 | ||
3bb47e8b TT |
5234 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
5235 | ||
5236 | * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups. | |
5237 | * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all | |
5238 | return paths. Defer final do_cleanups until last return. | |
5239 | * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after | |
5240 | early return. | |
5241 | ||
4727bad3 TT |
5242 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
5243 | ||
5244 | * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1. | |
5245 | ||
bb361dbf AB |
5246 | 2011-06-30 Andrew Burgess <aburgess@broadcom.com> |
5247 | ||
5248 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
5249 | ||
e0d00bc7 JK |
5250 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5251 | ||
5252 | Disable epilogue unwinders on recent GCCs. | |
5253 | * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab, | |
5254 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
5255 | * dwarf2read.c (process_full_comp_unit): Initialize | |
5256 | EPILOGUE_UNWIND_VALID. | |
5257 | * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab, | |
5258 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
5259 | * symtab.h (struct symtab): New field epilogue_unwind_valid. | |
5260 | ||
4632c0d0 JK |
5261 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5262 | ||
5263 | Code cleanup - reformatting. | |
5264 | * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ... | |
5265 | (producer_is_gcc_ge_4): ... here, change the return value. | |
5266 | (process_full_comp_unit): New variable gcc_4_minor, adjust the value | |
5267 | interpretation. | |
5268 | ||
32019081 JK |
5269 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5270 | ||
5271 | Fix non-only rename list for Fortran modules import. | |
5272 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the | |
5273 | cp_add_using_directive caller. | |
5274 | (cp_add_using_directive): New parameter excludes, describe it. New | |
5275 | variables ix and param. Compare if also excludes match. Allocate NEW | |
5276 | with variable size, initialize EXCLUDES there. | |
5277 | (cp_lookup_symbol_imports): New variable excludep, test | |
5278 | current->EXCLUDES with it. | |
5279 | * cp-support.h: Include vec.h. | |
5280 | (struct using_direct): New field excludes, describe it. | |
5281 | (DEF_VEC_P (const_char_ptr)): New. | |
5282 | (cp_add_using_directive): New parameter excludes. | |
5283 | * defs.h (const_char_ptr): New typedef. | |
5284 | * dwarf2read.c (read_import_statement): New variables child_die, | |
5285 | excludes and cleanups, read in excludes. | |
5286 | (read_namespace): Adjust the cp_add_using_directive caller. | |
5287 | ||
70c622a3 JK |
5288 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5289 | ||
5290 | Code cleanup. | |
5291 | * cp-namespace.c (cp_add_using_directive): Turn positive comparison to | |
5292 | negative comparisons. | |
5293 | ||
39c4d40a TT |
5294 | 2011-06-29 André Pönitz <andre.poenitz@nokia.com> |
5295 | ||
5296 | * mi/mi-main.c (mi_cmd_list_features): Emit | |
5297 | breakpoint-notifications. | |
5298 | ||
3b2b8fea TT |
5299 | 2011-06-29 Tom Tromey <tromey@redhat.com> |
5300 | ||
5301 | PR fortran/10036: | |
5302 | * valprint.h (generic_emit_char, generic_printstr): Declare. | |
5303 | * valprint.c (wchar_printable, append_string_as_wide) | |
5304 | (print_wchar): Move from c-lang.c. | |
5305 | (generic_emit_char): New function; mostly taken from c_emit_char. | |
5306 | (generic_printstr): New function; mostly taken from c_printstr. | |
5307 | * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings | |
5308 | represented as arrays. | |
5309 | <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character | |
5310 | type. | |
5311 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat | |
5312 | identically to TYPE_CODE_INT. | |
5313 | * f-lang.c (f_get_encoding): New function. | |
5314 | (f_emit_char): Use generic_emit_char. | |
5315 | (f_printchar): Replace comment. | |
5316 | (f_printstr): Use generic_printstr. | |
5317 | * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran | |
5318 | "character" types specially. | |
5319 | <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR | |
5320 | for Fortran. | |
5321 | * c-lang.c (wchar_printable, append_string_as_wide, print_wchar): | |
5322 | Move to valprint.c | |
5323 | (c_emit_char): Call generic_emit_char. | |
5324 | (c_printstr): Call generic_printstr. | |
5325 | ||
168e6d44 GB |
5326 | 2011-06-29 Gary Benson <gbenson@redhat.com> |
5327 | ||
5328 | * breakpoint.c (bpstat_what): Removed duplicated case. | |
5329 | ||
1c033f8c TT |
5330 | 2011-06-28 Tom Tromey <tromey@redhat.com> |
5331 | ||
5332 | * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. | |
5333 | ||
5fe41fbf TT |
5334 | 2011-06-27 Tom Tromey <tromey@redhat.com> |
5335 | ||
5336 | * valops.c (find_overload_match): Call do_cleanups before early | |
5337 | return. | |
5338 | * top.c (execute_command): Call do_cleanups before early return. | |
5339 | (command_loop): Likewise. | |
5340 | * stack.c (backtrace_command): Make a null cleanup early. Don't | |
5341 | conditionally call do_cleanups. | |
5342 | * python/py-value.c (TRY_CATCH): Move cleanup handling into | |
5343 | TRY_CATCH. | |
5344 | * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange | |
5345 | so cleanups are always run. | |
5346 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups. | |
5347 | * findcmd.c (parse_find_args): Call do_cleanups on early return | |
5348 | path. | |
5349 | * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early. | |
5350 | Don't conditionally call do_cleanups. | |
5351 | * cli/cli-script.c (execute_user_command): Initialize 'old_chain' | |
5352 | later. | |
5353 | ||
e26bd57d EB |
5354 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
5355 | ||
5356 | * MAINTAINERS (Write After Approval): Use default email address. | |
5357 | ||
6c3097fc JB |
5358 | 2011-06-27 Joel Brobecker <brobecker@adacore.com> |
5359 | ||
5360 | * MAINTAINERS (Write After Approval): Add Eric Botcazou. | |
5361 | ||
369c397b JB |
5362 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
5363 | ||
5364 | * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset, | |
5365 | saved_regs_mask and copied_regs_mask fields. | |
5366 | (sparc_record_save_insn): New prototype. | |
5367 | * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields. | |
5368 | (sparc_record_save_insn): New function. | |
5369 | (sparc_analyze_prologue): Add head comment. Recognize store insns | |
5370 | of call-saved registers. Use OFFSET consistently. Recognize flat | |
5371 | frames and cache their settings. | |
5372 | (sparc32_skip_prologue): Handle flat frames. | |
5373 | (sparc_frame_cache): Add frame_offset to the base address. | |
5374 | (sparc32_frame_cache): Adjust to new frame description. | |
5375 | (sparc32_frame_prev_register): Likewise. | |
5376 | * sparc64-tdep.c (sparc64_frame_prev_register): Likewise. | |
5377 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
5378 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
5379 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the | |
5380 | frame by calling sparc_record_save_insn. | |
5381 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise. | |
5382 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise. | |
5383 | * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise. | |
5384 | ||
b315ab21 TG |
5385 | 2011-06-27 Tristan Gingold <gingold@adacore.com> |
5386 | ||
5387 | * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped | |
5388 | field by map_addr and map_len. | |
5389 | (dwarf2_read_section): Adjust for the new bfd_mmap api. | |
5390 | (munmap_section_buffer): Likewise. | |
5391 | ||
ddd49eee TT |
5392 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
5393 | ||
5394 | * varobj.c (update_dynamic_varobj_children): Make 'name' const. | |
5395 | * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. | |
5396 | * python/python.c (gdbpy_parameter): Make 'arg' const. | |
5397 | (execute_gdb_command): Likewise. | |
5398 | (gdbpy_decode_line): Likewise. Copy it. | |
5399 | (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it. | |
5400 | (gdbpy_write): Make 'arg' const. | |
5401 | * python/py-type.c (typy_lookup_typename): Make 'type_name' | |
5402 | const. | |
5403 | (gdbpy_lookup_type): Likewise. | |
5404 | * python/py-prettyprint.c (print_children): Make 'name' const. | |
5405 | * python/py-param.c (parmpy_init): Make 'name' const. Copy it. | |
5406 | * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a | |
5407 | Py_ssize_t. | |
5408 | * python/py-function.c (fnpy_init): Make 'name' const. | |
5409 | * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it. | |
5410 | (gdbpy_string_to_argv): Make 'input' const. | |
5411 | * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy | |
5412 | it. | |
5413 | * gdbtypes.h (lookup_typename): Update. | |
5414 | * gdbtypes.c (lookup_typename): Make 'name' const. | |
5415 | (lookup_struct): Likewise. | |
5416 | (lookup_union): Likewise. | |
5417 | (lookup_enum): Likewise. | |
5418 | ||
5998129b TT |
5419 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
5420 | ||
5421 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to | |
5422 | gdb_thread_db.h. Move all common/ entries to be together. | |
5423 | (TAGS): Don't depend on DEPFILES. | |
5424 | ||
6e586cc5 YQ |
5425 | 2011-06-23 Yao Qi <yao@codesourcery.com> |
5426 | ||
5427 | * infrun.c (start_remote): Move call init_wait_for_inferior to ... | |
5428 | * remote.c (remote_start_remote): ... here. | |
5429 | * monitor.c (monitor_open): ... here. | |
5430 | ||
86c3c1fc AB |
5431 | 2011-06-23 Andrew Burgess <aburgess@broadcom.com> |
5432 | ||
5433 | * gdbtypes.c (append_composite_type_field_aligned): Fix | |
5434 | calculation of bit position based on alignment. | |
5435 | ||
28010a5d PA |
5436 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5437 | ||
5438 | * breakpoint.c (bpstat_stop_status): Call the check_status | |
5439 | breakpoint_ops method. | |
5440 | (print_one_breakpoint_location): Also print the condition for Ada | |
5441 | exception catchpoints. | |
5442 | (allocate_bp_location): New, factored out from | |
5443 | allocate_bp_location. | |
5444 | (allocate_bp_location): Adjust. Call the owner breakpoint's | |
5445 | allocate_location method, if there is one. | |
5446 | (free_bp_location): Call the locations's dtor method, if there is | |
5447 | one. | |
5448 | (init_raw_breakpoint_without_location): New breakpoint_ops | |
5449 | parameter. Use it. | |
5450 | (set_raw_breakpoint_without_location): Adjust. | |
5451 | (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down. | |
5452 | (set_raw_breakpoint): Adjust. | |
5453 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
5454 | (catch_syscall_breakpoint_ops): Install NULL allocate_location, | |
5455 | re_set and check_status methods. | |
5456 | (init_catchpoint): Don't memset, initialize thread, addr_string | |
5457 | and enable_state. Pass the ops down to init_raw_breakpoint. | |
5458 | (install_catchpoint): Rename to ... | |
5459 | (install_breakpoint): ... this, and make extern. | |
5460 | (create_fork_vfork_event_catchpoint): Adjust. | |
5461 | (catch_exec_breakpoint_ops): Install NULL allocate_location, | |
5462 | re_set and check_status methods. | |
5463 | (create_syscall_event_catchpoint): Adjust. | |
5464 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
5465 | (masked_watchpoint_breakpoint_ops): Install NULL | |
5466 | allocate_location, re_set and check_status methods. | |
5467 | (catch_exec_command_1): Adjust. | |
5468 | (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location, | |
5469 | re_set and check_status methods. | |
5470 | (create_ada_exception_breakpoint): Rename to ... | |
5471 | (init_ada_exception_breakpoint): ... this. Add a struct | |
5472 | breakpoint parameter, and delete the exp_string, cond_string and | |
5473 | cond parameters. Use init_raw_breakpoint, and don't install or | |
5474 | mention the breakpoint yet. Don't clear breakpoint fields that | |
5475 | init_raw_breakpoint already clears. | |
5476 | (re_set_breakpoint): Delete, split into ... | |
5477 | (breakpoint_re_set_default, prepare_re_set_context): ... these new | |
5478 | functions. | |
5479 | (breakpoint_re_set_one): Call the breakpoint's | |
5480 | breakpoint_ops->re_set implementation, if there's one. Adjust. | |
5481 | * breakpoint.h: Forward declare struct bpstats and struct bp_location. | |
5482 | (struct bp_location_ops): New type. | |
5483 | (struct bp_location): New field `ops'. | |
5484 | (struct breakpoint_ops): New `allocate_location', `re_set' and | |
5485 | `check_status' fields. Make `breakpoint_hit''s description match | |
5486 | reality. | |
5487 | (init_bp_location): Declare. | |
5488 | (breakpoint_re_set_default): Declare. | |
5489 | (create_ada_exception_breakpoint): Rename to ... | |
5490 | (init_ada_exception_breakpoint): ... this. Add a struct | |
5491 | breakpoint parameter, and delete the exp_string, cond_string and | |
5492 | cond parameters. | |
5493 | (install_breakpoint): Declare. | |
5494 | * ada-lang.c: Include exceptions.h. | |
5495 | <Ada exceptions description>: Update. | |
5496 | (struct ada_catchpoint_location): New type. | |
5497 | (ada_catchpoint_location_dtor): New function. | |
5498 | (ada_catchpoint_location_ops): New global. | |
5499 | (ada_catchpoint): New type. | |
5500 | (create_excep_cond_exprs): New function. | |
5501 | (dtor_exception, allocate_location_exception, re_set_exception) | |
5502 | (should_stop_exception, check_status_exception): New functions. | |
5503 | (print_one_exception, print_mention_exception) | |
5504 | (print_recreate_exception): Adjust. | |
5505 | (dtor_catch_exception, allocate_location_catch_exception) | |
5506 | (re_set_catch_exception, check_status_catch_exception): New | |
5507 | functions. | |
5508 | (catch_exception_breakpoint_ops): Install them. | |
5509 | (dtor_catch_exception_unhandled) | |
5510 | (allocate_location_catch_exception_unhandled) | |
5511 | (re_set_catch_exception_unhandled) | |
5512 | (check_status_catch_exception_unhandled): New functions. | |
5513 | (catch_exception_unhandled_breakpoint_ops): Install them. | |
5514 | (dtor_catch_assert, allocate_location_catch_assert) | |
5515 | (re_set_catch_assert, check_status_catch_assert): New functions. | |
5516 | (catch_assert_breakpoint_ops): Install them. | |
5517 | (ada_exception_catchpoint_p): Delete. | |
5518 | (catch_ada_exception_command_split) | |
5519 | (ada_exception_catchpoint_cond_string): Rename exp_string | |
5520 | parameter to excep_string. Adjust. | |
5521 | (ada_parse_catchpoint_condition): Delete. | |
5522 | (ada_exception_sal): Rename the exp_string parameter to | |
5523 | excep_string. Delete the cond_string and cond parameters. | |
5524 | Adjust. | |
5525 | (ada_decode_exception_location): Rename the exp_string parameter | |
5526 | to excep_string. Delete the cond_string and cond parameters. | |
5527 | Adjust. | |
5528 | (create_ada_exception_catchpoint): New function. | |
5529 | (catch_ada_exception_command, ada_decode_assert_location) | |
5530 | (catch_assert_command): Adjust. | |
5531 | * ada-lang.h (ada_exception_catchpoint_p): Delete declaration. | |
5532 | ||
9ac4176b PA |
5533 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5534 | ||
5535 | * ada-lang.c: Include arch-utils.h. | |
5536 | (ada_decode_exception_location): Make static. | |
5537 | (catch_ada_exception_command): Moved here from breakpoint.c. | |
5538 | (ada_decode_assert_location): Make static. | |
5539 | (catch_assert_command): Moved here from breakpoint.c. | |
5540 | (_initialize_ada_lang): Install the exception and assert | |
5541 | catchpoint commands here. | |
5542 | * ada-lang.h (ada_decode_exception_location) | |
5543 | (ada_decode_assert_location): Delete declarations. | |
5544 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to | |
5545 | breakpoint.h. | |
5546 | (create_ada_exception_breakpoint): Make extern. | |
5547 | (catch_ada_exception_command, catch_assert_command): Moved to | |
5548 | ada-lang.c. | |
5549 | (add_catch_command): Make extern. | |
5550 | (_initilize_breakpoint): Don't install the exception and assert | |
5551 | catchpoint commands here. | |
5552 | * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from | |
5553 | breakpoint.c | |
5554 | (add_catch_command, create_ada_exception_breakpoint): Declare. | |
5555 | ||
c56053d2 PA |
5556 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5557 | ||
5558 | * breakpoint.c (init_raw_breakpoint_without_location): Don't add | |
5559 | the breakpoint to the breakpoint chain here. | |
5560 | (set_raw_breakpoint_without_location): Add the breakpoint to the | |
5561 | breakpoint chain here. | |
5562 | (init_raw_breakpoint): Adjust comments. | |
5563 | (set_raw_breakpoint): Add the breakpoint to the breakpoint chain | |
5564 | here. | |
5565 | (init_catchpoint): Don't set the catchpoint's breakpoint number | |
5566 | here. | |
5567 | (install_catchpoint): New function. | |
5568 | (create_fork_vfork_event_catchpoint) | |
5569 | (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to | |
5570 | use install_catchpoint. | |
5571 | ||
d2f3fc74 PA |
5572 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5573 | ||
5574 | * breakpoint.c (create_catchpoint_without_mention) | |
5575 | (create_catchpoint): Delete. | |
5576 | ||
b4d90040 PA |
5577 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5578 | ||
5579 | * breakpoint.h (struct breakpoint): Delete field `exec_pathname'. | |
5580 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
5581 | reference to exec_pathname. | |
5582 | (struct exec_catchpoint): New type. | |
5583 | (dtor_catch_exec): New function. | |
5584 | (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust. | |
5585 | (catch_exec_breakpoint_ops): Install dtor_catch_syscall. | |
5586 | (catch_exec_command_1): Adjust to use init_catchpoint. | |
5587 | (delete_breakpoint): Remove reference to exec_pathname. | |
5588 | ||
be5c67c1 PA |
5589 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5590 | ||
5591 | * breakpoint.h (struct breakpoint_ops): New field `dtor'. | |
5592 | (struct breakpoint): Delete field `syscalls_to_be_caught'. | |
5593 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
5594 | reference to syscalls_to_be_caught. | |
5595 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a | |
5596 | NULL `dtor'. | |
5597 | (struct syscall_catchpoint): New type. | |
5598 | (dtor_catch_syscall): New function. | |
5599 | (insert_catch_syscall, remove_catch_syscall) | |
5600 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
5601 | (print_recreate_catch_syscall): Adjust. | |
5602 | (catch_syscall_breakpoint_ops): Install dtor_catch_syscall. | |
5603 | (catch_exec_breakpoint_ops): Install a NULL `dtor'. | |
5604 | (create_syscall_event_catchpoint): Adjust to use init_catchpoint. | |
5605 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
5606 | (masked_watchpoint_breakpoint_ops) | |
5607 | (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'. | |
5608 | (delete_breakpoint): Call the `dtor' breakpoint_ops method, if | |
5609 | there is one. Remove references to syscalls_to_be_caught. | |
5610 | (catching_syscall_number): Adjust. | |
5611 | * ada-lang.c (catch_exception_breakpoint_ops) | |
5612 | (catch_exception_unhandled_breakpoint_ops) | |
5613 | (catch_assert_breakpoint_ops): Install a NULL `dtor'. | |
5614 | ||
e29a4733 PA |
5615 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5616 | ||
5617 | * breakpoint.h (struct breakpoint): Delete forked_inferior_pid | |
5618 | field. | |
5619 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
5620 | reference to forked_inferior_pid. | |
5621 | (struct fork_catchpoint): New type. | |
5622 | (breakpoint_hit_catch_fork, print_it_catch_fork) | |
5623 | (print_one_catch_fork, breakpoint_hit_catch_vfork) | |
5624 | (print_it_catch_vfork, print_one_catch_vfork): Adjust. | |
5625 | (create_fork_vfork_event_catchpoint): Adjust to use | |
5626 | init_catchpoint. | |
5627 | ||
346774a9 PA |
5628 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
5629 | ||
5630 | * breakpoint.c (add_to_breakpoint_chain) | |
5631 | (init_raw_breakpoint_without_location): New functions, factored | |
5632 | out from ... | |
5633 | (set_raw_breakpoint_without_location): ... this one. | |
5634 | (init_raw_breakpoint): New function, factored out from | |
5635 | set_raw_breakpoint and adjusted to use | |
5636 | init_raw_breakpoint_without_location. | |
5637 | (set_raw_breakpoint): Adjust. | |
5638 | (init_catchpoint): New function, factored out from | |
5639 | create_catchpoint_without_mention and adjusted to use | |
5640 | init_raw_breakpoint. | |
5641 | (create_catchpoint_without_mention): Adjust. | |
5642 | ||
c38c4bc5 TT |
5643 | 2011-06-22 Tom Tromey <tromey@redhat.com> |
5644 | ||
5645 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type | |
5646 | argument of 0 specially. | |
5647 | ||
b138ce37 YQ |
5648 | 2011-06-22 Yao Qi <yao@codesourcery.com> |
5649 | ||
5650 | * infrun.c (handle_inferior_event): Remove write-only local variable | |
5651 | `sw_single_step_trap_p'. | |
5652 | ||
03de6823 TT |
5653 | 2011-06-20 Tom Tromey <tromey@redhat.com> |
5654 | ||
5655 | * symtab.c (lookup_language_this): End loop if block is NULL. | |
5656 | ||
66a17cb6 TT |
5657 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
5658 | ||
5659 | * valops.c (value_of_this): Use lookup_language_this. | |
5660 | * symtab.h (lookup_language_this): Declare. | |
5661 | * symtab.c (lookup_language_this): New function. | |
5662 | (lookup_symbol_aux): Use lookup_language_this. | |
5663 | * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this. | |
5664 | ||
7518bff5 TT |
5665 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
5666 | ||
5667 | * value.h (value_of_this): Update. | |
5668 | (value_of_local): Remove. | |
5669 | * valops.c (value_of_this): Rename from value_of_local. Change | |
5670 | parameters. | |
5671 | * p-exp.y (exp): Update. | |
5672 | (variable): Likewise. | |
5673 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this. | |
5674 | ||
aee28ec6 TT |
5675 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
5676 | ||
5677 | * valops.c (value_of_local): Complain if NAME is NULL. | |
5678 | * std-operator.def (OP_OBJC_SELF): Remove. | |
5679 | * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove. | |
5680 | * objc-exp.y (name_not_typename): Use OP_THIS. | |
5681 | * expprint.c (print_subexp_standard) <OP_THIS>: Print language's | |
5682 | name for "this". | |
5683 | <OP_OBJC_SELF>: Remove. | |
5684 | * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove. | |
5685 | ||
eed8f803 TG |
5686 | 2011-06-16 Tristan Gingold <gingold@adacore.com> |
5687 | ||
5688 | * python/py-events.h (gdb_py_events): Make it extern. | |
5689 | * python/py-evtregistry.c (gdb_py_events): Declare. | |
5690 | ||
864ac8a7 HZ |
5691 | 2011-06-16 Hui Zhu <teawater@gmail.com> |
5692 | ||
5693 | * remote.c (remote_trace_set_readonly_regions): Add check for | |
5694 | remote_protocol_packets[PACKET_qXfer_traceframe_info].support before | |
5695 | output warning. | |
5696 | ||
ef7e8358 UW |
5697 | 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org> |
5698 | ||
5699 | * arm-linux-tdep.c: Include "auxv.h". | |
5700 | (AT_HWCAP): Define. | |
5701 | (ARM_LINUX_SIZEOF_VFP): Define. | |
5702 | (arm_linux_supply_vfp): New function. | |
5703 | (arm_linux_collect_vfp): Likewise. | |
5704 | (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections. | |
5705 | (arm_linux_fpa_regset_sections): New variable. | |
5706 | (arm_linux_vfp_regset_sections): Likewise. | |
5707 | (arm_linux_core_read_description): New function. | |
5708 | (arm_linux_init_abi): Install arm_linux_core_read_description and | |
5709 | arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as | |
5710 | appropriate for the architecture. | |
5711 | * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset". | |
5712 | (tdesc_arm_with_m): Declare. | |
5713 | (tdesc_arm_with_iwmmxt): Likewise. | |
5714 | (tdesc_arm_with_vfpv2): Likewise. | |
5715 | (tdesc_arm_with_vfpv3): Likewise. | |
5716 | (tdesc_arm_with_neon): Likewise. | |
5717 | * arm-linux-nat.c: Move features/*.c includes ... | |
5718 | * arm-tdep.c: ... here. | |
5719 | * arm-linux-nat.c (arm_linux_read_description): Move initializing | |
5720 | target description data structures ... | |
5721 | * arm-tdep.c (_initialize_arm_tdep): ... here. | |
5722 | * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3, | |
5723 | HWCAP_VFPv3D16): Move definitions ... | |
5724 | * arm-linux-tdep.h: ... here. | |
5725 | ||
c2fa21f1 HZ |
5726 | 2011-06-15 Hui Zhu <teawater@gmail.com> |
5727 | ||
5728 | * remote.c (remote_trace_set_readonly_regions): Add a check for | |
5729 | target_buf_size. | |
5730 | ||
dd707e8e TT |
5731 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
5732 | ||
5733 | * coffread.c (coffread_objfile): Rename from current_objfile. | |
5734 | * dbxread.c (dbxread_objfile): Rename from current_objfile. | |
5735 | * mdebugread.c (mdebugread_objfile): Rename from current_objfile. | |
5736 | ||
86cc0029 TT |
5737 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
5738 | ||
5739 | * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile) | |
5740 | (class_symtab): Remove. | |
5741 | (jv_dynamics_progspace_key): New global. | |
5742 | (jv_per_objfile_free): Reset program space data. Update assert. | |
5743 | Don't clear globals. | |
5744 | (get_dynamics_objfile): Use and set program space data. | |
5745 | (get_java_class_symtab): Use get_dynamics_objfile. | |
5746 | (add_class_symbol): Likewise. | |
5747 | (java_link_class_type): Likewise. | |
5748 | (java_object_type, jv_clear_object_type, set_java_object_type): | |
5749 | Remove. | |
5750 | (get_java_object_type): Update. Don't cache result. | |
5751 | (is_object_type): Don't call set_java_object_type. | |
5752 | (_initialize_java_language): Don't set jv_type_objfile_data_key; | |
5753 | initialize jv_dynamics_progspace_key. | |
5754 | ||
91a81f69 TT |
5755 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
5756 | ||
5757 | * symtab.h (current_objfile): Don't declare. | |
5758 | * objfiles.h (current_objfile): Don't declare. | |
5759 | * objfiles.c (current_objfile): Remove. | |
5760 | * mdebugread.c (current_objfile): New file-scope global. | |
5761 | * dbxread.c (current_objfile): New file-scope global. | |
5762 | * coffread.c (current_objfile): New file-scope global. | |
5763 | ||
dc7eb48e PA |
5764 | 2011-06-13 Pedro Alves <pedro@codesourcery.com> |
5765 | ||
5766 | * top.h (line): Rename to ... | |
5767 | (saved_command_line): ... this. | |
5768 | (linesize): Rename to ... | |
5769 | (saved_command_line_size): ... this. | |
5770 | * top.c (line): Rename to ... | |
5771 | (saved_command_line): ... this. | |
5772 | (linesize): Rename to ... | |
5773 | (saved_command_line_size): ... this. | |
5774 | (dont_repeat, command_line_input, dont_repeat_command): Adjust. | |
5775 | * event-top.c (command_line_handler): Adjust. | |
5776 | * main.c (captured_main): Adjust. | |
5777 | ||
0d6c2135 MK |
5778 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
5779 | ||
5780 | * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call | |
5781 | get_frame_func instead of get_frame_pc to determine the code | |
5782 | address used to construct the frame ID. | |
5783 | (i386_epilogue_frame_unwind_stop_reason): Fix coding style. | |
5784 | (i386_epilogue_frame_this_id): Likewise. | |
5785 | (i386_epilogue_frame_prev_register): New function. | |
5786 | (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register. | |
5787 | (i386_stack_tramp_frame_sniffer): Fix coding style. | |
5788 | (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register. | |
5789 | (i386_gdbarch_init): Fix comments. | |
5790 | ||
8bbdd3f4 MK |
5791 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
5792 | ||
5793 | * i386-tdep.c (i386_match_insn_block): Use length of the proper | |
5794 | instruction when walking back through the instruction stream. | |
5795 | ||
533a737e JK |
5796 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
5797 | ||
5798 | * symtab.c (output_partial_symbol_filename): Exchange the filename and | |
5799 | fullname parameters order. | |
5800 | ||
44b13c5a JK |
5801 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
5802 | ||
5803 | Code cleanup. | |
5804 | * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype | |
5805 | for fun. | |
5806 | * psymtab.c (map_symbol_filenames_psymtab) | |
5807 | (map_partial_symbol_filenames): Likewise. | |
5808 | * psymtab.h: Include symfile.h. | |
5809 | (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. | |
5810 | * symfile.h (symbol_filename_ftype): New. | |
5811 | (struct quick_symbol_functions): Use symbol_filename_ftype for fun of | |
5812 | map_symbol_filenames, clarify more the naming in comment. | |
5813 | ||
0b5574da DE |
5814 | 2011-06-07 Doug Evans <dje@google.com> |
5815 | ||
5816 | * cc-with-index.sh: Fix typos in comment. | |
b8e9bd6c | 5817 | Look for ../../gdb, for fullname.exp. |
0b5574da | 5818 | |
5be4dfca JK |
5819 | 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
5820 | Pedro Alves <pedro@codesourcery.com> | |
5821 | ||
5822 | * cli/cli-cmds.c (shell_escape): Use waitpid. | |
5823 | * rs6000-nat.c (exec_one_dummy_insn): Likewise. | |
5824 | ||
316a8b21 TG |
5825 | 2011-06-07 Tristan Gingold <gingold@adacore.com> |
5826 | ||
5827 | * xcoffread.c (dwarf2_xcoff_names): New variable. | |
5828 | (aix_process_linenos): Add a guard. | |
5829 | (xcoff_symfile_finish): Free dwarf2. | |
5830 | (xcoff_initial_scan): Add dwarf2 support. | |
5831 | ||
3dd5b83d PA |
5832 | 2011-06-06 Pedro Alves <pedro@codesourcery.com> |
5833 | ||
5834 | * infcall.c (run_inferior_call): Don't mask async. Instead force | |
5835 | a synchronous wait, if the target can async. | |
5836 | ||
5837 | * target.h (struct target_ops): Delete to_async_mask. | |
5838 | (target_async_mask): Delete. | |
5839 | * target.c (update_current_target): Delete references to to_async_mask. | |
5840 | * linux-nat.c (linux_nat_async_mask_value): Delete. | |
5841 | (linux_nat_is_async_p, linux_nat_can_async_p): Remove references | |
5842 | to linux_nat_async_mask_value. | |
5843 | (linux_nat_async_mask): Delete. | |
5844 | (linux_nat_async, linux_nat_close): Remove references to | |
5845 | linux_nat_async_mask_value. | |
5846 | * record.c (record_async_mask_value): Delete. | |
5847 | (record_async): Remove references to record_async_mask_value. | |
5848 | (record_async_mask): Delete. | |
5849 | (record_can_async_p, record_is_async_p): Remove references to | |
5850 | record_async_mask_value. | |
5851 | (init_record_ops, init_record_core_ops): Remove references to | |
5852 | record_async_mask. | |
5853 | * remote.c (remote_async_mask_value): Delete. | |
5854 | (init_remote_ops): Remove reference to remote_async_mask. | |
5855 | (remote_can_async_p, remote_is_async_p): Remove references to | |
5856 | remote_async_mask_value. | |
5857 | (remote_async): Remove references to remote_async_mask_value. | |
5858 | (remote_async_mask): Delete. | |
5859 | ||
5860 | * infrun.c (fetch_inferior_event): Don't claim registers changed | |
5861 | if the current thread is already not executing. | |
5862 | ||
64b9b334 JB |
5863 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix) |
5864 | ||
5865 | From Stephen Kitt <steve@sk2.org> | |
5866 | * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c, | |
5867 | gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes. | |
5868 | ||
325663dc JB |
5869 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> |
5870 | ||
5871 | * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle | |
5872 | the case where ADDR_SIZE is different from TYPE_LENGTH (type). | |
5873 | ||
8cf64490 TT |
5874 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
5875 | ||
5876 | * python/py-inferior.c (python_inferior_exit): Use inferior's exit | |
5877 | code fields. | |
5878 | * python/py-exitedevent.c (create_exited_event_object): Change | |
5879 | type of 'exit_code'. Optionally add exit_code attribute. | |
5880 | (emit_exited_event): Change type of 'exit_code'. | |
5881 | * python/py-event.h (emit_exited_event): Update. | |
5882 | * mi/mi-interp.c (mi_inferior_exit): Print exit code. | |
5883 | * infrun.c (handle_inferior_event): Set exit code fields on | |
5884 | inferior. | |
5885 | * inferior.h (struct inferior) <has_exit_code, exit_code>: New | |
5886 | fields. | |
5887 | * inferior.c (exit_inferior_1): Initialize new fields. | |
5888 | ||
8ddd9a20 TT |
5889 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
5890 | ||
5891 | * dwarf2expr.c (get_signed_type): New function. | |
5892 | (execute_stack_op) <DW_OP_shra>: Always perform a signed shift. | |
5893 | ||
8dfd1e6d KS |
5894 | 2011-06-02 Keith Seitz <keiths@redhat.com> |
5895 | ||
5896 | * objc-lang.c (find_methods): Increment objfile_csym earlier. | |
5897 | ||
65fdb766 PA |
5898 | 2011-06-02 Pedro Alves <pedro@codesourcery.com> |
5899 | ||
5900 | * top.h (simplified_command_loop): Delete declaration. | |
5901 | ||
f4b8c29b MF |
5902 | 2011-06-01 Mike Frysinger <vapier@gentoo.org> |
5903 | ||
5904 | * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and | |
5905 | gdb_sysroot to the "len" variable. Append both to "arg_buf". | |
5906 | ||
1706c199 YQ |
5907 | 2011-06-01 Yao Qi <yao@codesourcery.com> |
5908 | ||
5909 | * objfiles.h (obj_section_addr): Update reference to objfile from | |
5910 | `abfd' to `obfd'. | |
5911 | (obj_section_endaddr): Likewise. | |
5912 | ||
d19cd713 | 5913 | 2011-06-01 Daniel Jacobowitz <drow@false.org> |
8d07004d DJ |
5914 | |
5915 | * MAINTAINERS: Update my email address and affiliation. Also | |
5916 | update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org. | |
5917 | ||
e8eb7bc5 KS |
5918 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
5919 | ||
5920 | PR c++/12750 | |
5921 | * linespec.c (get_search_block): New function. | |
5922 | (find_methods): Add FILE_SYMTATB parameter and use it and | |
5923 | get_search_block to pass an appropriate block to | |
5924 | lookup_symbol_in_namespace. | |
5925 | (decode_line_1): Record if *ARGPTR is single-quote enclosed. | |
5926 | Check if *ARGPTR starts with a filename first. | |
5927 | If it does, call locate_first_half again to locate the next | |
5928 | "first half" of the linespec. | |
5929 | Pass FILE_SYMTATB to decode_objc and decode_compound. | |
5930 | Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED. | |
5931 | (locate_first_half): Stop on the first colon seen. | |
5932 | (decode_compound): Add FILE_SYMTAB parameter. | |
5933 | Pass FILE_SYMTAB to lookup_prefix_sym and find_method. | |
5934 | (lookup_prefix_sym): Add FILE_SYMTAB parameter and use | |
5935 | get_search_block with lookup_symbol. | |
5936 | (find_method): Add FILE_SYMTAB parameter and pass it to | |
5937 | find_methods. | |
5938 | (decode_objc): Use get_search_block. | |
5939 | ||
2b1dbab0 KS |
5940 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
5941 | ||
5942 | PR symtab/12704 | |
5943 | * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. | |
5944 | (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR | |
5945 | and CP_ANONYMOUS_NAMESPACE_LEN. | |
5946 | (cp_is_anonymous): Likewise. | |
5947 | * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. | |
5948 | (CP_ANONYMOUS_NAMESPACE_LEN): Define. | |
5949 | * dwarf2read.c (namespace_name): Likewise. | |
5950 | (fixup_partial_die): Likewise. | |
5951 | * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is | |
5952 | seen in the input, keep it. | |
5953 | ||
6d549500 PA |
5954 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5955 | ||
5956 | * target.h (enum inferior_event_type): Delete INF_QUIT_REQ. | |
5957 | * inf-loop.h (inferior_event_handler_wrapper): Delete. | |
5958 | * inf-loop.c (inferior_event_handler_wrapper): Delete. | |
5959 | (inferior_event_handler): Don't handle INF_QUIT_REQ. | |
5960 | * remote.c (_initialize_remote): Register | |
5961 | async_remote_interrupt_twice directly as | |
5962 | sigint_remote_twice_token event. | |
5963 | ||
395bff70 PA |
5964 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5965 | ||
5966 | * target.h (enum inferior_event_type): Delete INF_ERROR. | |
5967 | * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR. | |
5968 | ||
97224164 PA |
5969 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5970 | ||
5971 | * interps.c (interp_set): Don't cancel continuations. | |
5972 | ||
07e78767 JK |
5973 | 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
5974 | ||
5975 | * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf. | |
5976 | ||
fa4cd53f PA |
5977 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
5978 | ||
5979 | * continuations.h (continuation_ftype): Add `err' parameter. | |
5980 | Document parameters. | |
5981 | (do_all_continuations, do_all_continuations_thread) | |
5982 | (do_all_intermediate_continuations) | |
5983 | (do_all_intermediate_continuations_thread) | |
5984 | (do_all_inferior_continuations): Add `err' parameter. | |
5985 | * continuations.c (do_my_continuations_1, do_my_continuations) | |
5986 | (do_all_inferior_continuations, do_all_continuations_ptid) | |
5987 | (do_all_continuations_thread_callback) | |
5988 | (do_all_continuations_thread, do_all_continuations) | |
5989 | (do_all_intermediate_continuations_thread_callback) | |
5990 | (do_all_intermediate_continuations_thread) | |
5991 | (do_all_intermediate_continuations): Add `err' parameter, and pass | |
5992 | it down all the way to the continuations proper. | |
5993 | * inf-loop.c (inferior_event_handler): If fetching an inferior | |
5994 | event throws an error, don't pop the target, and still call the | |
5995 | continuations, but with `err' set. Adjust all other continuation | |
5996 | calls. | |
5997 | * breakpoint.c (until_break_command_continuation): Add `err' | |
5998 | parameter. | |
5999 | * infcmd.c (step_1_continuation): Add `err' parameter. Don't | |
6000 | issue another step if `err' is set. | |
6001 | (struct until_next_continuation_args): New. | |
6002 | (until_next_continuation): Add `err' parameter. Adjust. | |
6003 | (until_next_command): Adjust. | |
6004 | (struct finish_command_continuation_args): Add `thread' field. | |
6005 | (finish_command_continuation): Add `err' parameter. Handle it. | |
6006 | (finish_forward): Adjust. | |
6007 | (attach_command_continuation): Add `err' parameter. Handle it. | |
6008 | * infrun.c (infrun_thread_stop_requested_callback): Adjust to | |
6009 | cancel the continuations. | |
6010 | * interps.c (interp_set): Adjust to cancel the continuations. | |
6011 | * thread.c (clear_thread_inferior_resources): Adjust to cancel the | |
6012 | continuations rather than discarding. | |
6013 | (free_thread): Don't clear thread inferior resources here. | |
6014 | (delete_thread_1): Do it here instead. And do it before removing | |
6015 | the thread from the threads list. Tag the thread as exited before | |
6016 | clearing thread inferior resources. | |
6017 | ||
c2949be0 JB |
6018 | 2011-05-30 Joel Brobecker <brobecker@adacore.com> |
6019 | ||
6020 | * infcall.c (call_function_by_hand): Rephrase error message. | |
6021 | ||
619cebe8 PA |
6022 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
6023 | ||
6024 | * defs.h (struct thread_info, struct inferior): Delete forward | |
6025 | declarations. | |
6026 | * breakpoint.h (struct thread_info): New forward declaration. | |
6027 | * observer.sh (struct inferior): New forward declaration. | |
6028 | * python/python-internal.h (struct inferior): New forward | |
6029 | declaration. | |
6030 | ||
be34f849 PA |
6031 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
6032 | ||
6033 | * defs.h (struct continuation, continuation_ftype) | |
6034 | (continuation_free_arg_ftype, add_continuation) | |
6035 | (do_all_continuations, do_all_continuations_thread) | |
6036 | (discard_all_continuations, discard_all_continuations_thread) | |
6037 | (add_intermediate_continuation, do_all_intermediate_continuations) | |
6038 | (do_all_intermediate_continuations_thread) | |
6039 | (discard_all_intermediate_continuations) | |
6040 | (discard_all_intermediate_continuations_thread) | |
6041 | (add_inferior_continuation, do_all_inferior_continuations) | |
6042 | (discard_all_inferior_continuations): Move to ... | |
6043 | * continuations.h: ... this new file. | |
6044 | * breakpoint.c, continuations.c, event-top.c, inf-loop.c, | |
6045 | infcmd.c, inferior.c, infrun.c, interps.c: Include | |
6046 | continuations.h. | |
6047 | ||
432b4d03 JK |
6048 | 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
6049 | Doug Evans <dje@google.com> | |
6050 | ||
6051 | Fix PR 10970, PR 12702. | |
6052 | * linux-nat.c (linux_lwp_is_zombie): New function. | |
6053 | (wait_lwp): Initialize status. New variable prev_mask. Block signals. | |
6054 | Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend. | |
6055 | ||
b0f260d6 PA |
6056 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
6057 | ||
6058 | * defs.h (continuation_ftype, continuation_free_arg_ftype): New | |
6059 | typedefs. | |
6060 | (add_continuation, add_intermediate_continuation) | |
6061 | (add_inferior_continuation): Use them. | |
6062 | * continuations.c (struct continuation): Use them. | |
6063 | (make_continuation_ftype): Delete. | |
6064 | (make_continuation, add_inferior_continuation, add_continuation) | |
6065 | (add_intermediate_continuation): Use continuation_ftype and | |
6066 | continuation_free_arg_ftype. Rename parameters to shorter names. | |
6067 | ||
af1e9a32 PA |
6068 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
6069 | ||
6070 | * continuations.c (make_continuation): Make it return void. | |
6071 | (do_my_continuations): Rename to ... | |
6072 | (do_my_continuations_1): ... this. Remove old_chain parameter and | |
6073 | adjust. | |
6074 | (do_my_continuations): New. | |
6075 | (discard_my_continuations): Rename to ... | |
6076 | (discard_my_continuations_1): ... this. Remove old_chain | |
6077 | parameter and adjust. | |
6078 | (discard_my_continuations): New. | |
6079 | (add_inferior_continuation): Simplify. | |
6080 | (do_all_inferior_continuations): Reimplement on top | |
6081 | do_my_continuations. | |
6082 | (discard_all_inferior_continuations): Simplify. | |
6083 | (add_continuation): Simplify. | |
6084 | (do_all_continuations_ptid): Simplify. | |
6085 | (discard_all_continuations_thread_callback): Simplify. | |
6086 | (add_intermediate_continuation): Simplify. | |
6087 | (discard_all_intermediate_continuations_thread_callback): | |
6088 | Simplify. | |
6089 | ||
50c0c017 PA |
6090 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
6091 | ||
6092 | * utils.c (struct continuation, add_continuation) | |
6093 | (add_inferior_continuation) | |
6094 | (do_all_inferior_continuations, discard_all_inferior_continuations) | |
6095 | (restore_thread_cleanup, do_all_continuations_ptid) | |
6096 | (do_all_continuations_thread_callback) | |
6097 | (do_all_continuations_thread, do_all_continuations) | |
6098 | (discard_all_continuations_thread_callback) | |
6099 | (discard_all_continuations_thread, discard_all_continuations) | |
6100 | (add_intermediate_continuation) | |
6101 | (do_all_intermediate_continuations_thread_callback) | |
6102 | (do_all_intermediate_continuations_thread) | |
6103 | (do_all_intermediate_continuations) | |
6104 | (discard_all_intermediate_continuations_thread_callback) | |
6105 | (discard_all_intermediate_continuations_thread) | |
6106 | (discard_all_intermediate_continuations): Move to ... | |
6107 | * continuations.c: ... this new file, and adjust to no longer | |
6108 | implement continuations on top of cleanups. | |
6109 | * Makefile.in (SFILES): Add continuations.c. | |
6110 | (COMMON_OBS): Add continuations.o. | |
6111 | ||
d8b34453 PA |
6112 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6113 | ||
6114 | * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR. | |
6115 | * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR. | |
6116 | Internal error on invalid values. | |
6117 | * reverse.c: Don't handle EXEC_ERROR. | |
6118 | * mi/mi-main.c: Don't handle EXEC_ERROR. | |
6119 | ||
32231432 PA |
6120 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6121 | ||
6122 | * record.c: Include event-loop.h, inf-loop.h. | |
6123 | (record_beneath_to_async): New global. | |
6124 | (tmp_to_async): New global. | |
6125 | (record_async_inferior_event_token): New global. | |
6126 | (record_open_1): Don't error out if async is enabled. | |
6127 | (record_open): Handle to_async. Create an async event source in | |
6128 | the event loop. | |
6129 | (record_close): Delete the async event source. | |
6130 | (record_resumed): New global. | |
6131 | (record_execution_dir): New global. | |
6132 | (record_resume, record_core_resume): Set them. Register the | |
6133 | target on the event loop. | |
6134 | (record_wait): Rename to ... | |
6135 | (record_wait_1): ... this. Add more debug output. Handle | |
6136 | TARGET_WNOHANG, and the target beneath returning | |
6137 | TARGET_WAITKIND_IGNORE. | |
6138 | (record_wait): Reimplement on top of record_wait_1. | |
6139 | (record_async_mask_value): New global. | |
6140 | (record_async, record_async_mask, record_can_async_p) | |
6141 | (record_is_async_p, record_execution_direction): New functions. | |
6142 | (init_record_ops, init_record_core_ops): Install new methods. | |
6143 | * infrun.c (fetch_inferior_event): Temporarily switch the global | |
6144 | execution direction to the direction the target was going. | |
6145 | (execution_direction): Change type to int. | |
6146 | * target.c (default_execution_direction): New function. | |
6147 | (update_current_target): Inherit and de_fault | |
6148 | to_execution_direction. | |
6149 | * target.h (struct target_ops) <to_execution_direction>: New | |
6150 | field. | |
6151 | (target_execution_direction): New macro. | |
6152 | * inferior.h (execution_direction): Change type to int. | |
6153 | ||
949dc678 PA |
6154 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6155 | ||
6156 | * infcall.c (call_function_by_hand): Don't allow calling functions | |
6157 | in reverse execution mode. | |
6158 | ||
c13bd2b5 PA |
6159 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6160 | ||
6161 | * infcmd.c (finish_command): Allow async finish in reverse. | |
6162 | ||
6938fd34 YQ |
6163 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
6164 | ||
6165 | * gdb_thread_db.h: Delete. Move to ... | |
6166 | * common/gdb_thread_db.h: ... here. | |
6167 | ||
9da8c2a0 PA |
6168 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6169 | ||
6170 | * infcmd.c (finish_backward): Set a step-resume breakpoint at the | |
6171 | function's entry point instead of a manually managed momentary | |
6172 | breakpoint, and only ever issue one proceed call. | |
6173 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If | |
6174 | doing a reverse-finish, switch to stepi mode, to do another step. | |
6175 | (insert_step_resume_breakpoint_at_sal): Make public. | |
6176 | (normal_stop): No need to save function value return registers if | |
6177 | going reverse. | |
6178 | * inferior.h (insert_step_resume_breakpoint_at_sal): Declare. | |
6179 | ||
2c03e5be PA |
6180 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6181 | ||
6182 | * breakpoint.h (enum bptype) <bp_hp_step_resume>: New. | |
6183 | (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME | |
6184 | before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME | |
6185 | at the end. | |
6186 | * breakpoint.c (update_breakpoints_after_exec): Also delete hp | |
6187 | step-resume breakpoints. | |
6188 | (print_it_typical): Handle bp_hp_step_resume. | |
6189 | (bpstat_what): Ditto. | |
6190 | (bptype_string): Ditto. | |
6191 | (print_one_breakpoint_location): Ditto. | |
6192 | (allocate_bp_location): Ditto. | |
6193 | (mention): Ditto. | |
6194 | (breakpoint_re_set_one): Ditto. | |
6195 | * infrun.c (handle_inferior_event): Adjust. Split | |
6196 | BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and | |
6197 | BPSTAT_WHAT_HP_STEP_RESUME. | |
6198 | (insert_step_resume_breakpoint_at_sal): Rename to ... | |
6199 | (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype | |
6200 | parameter. Handle it. | |
6201 | (insert_step_resume_breakpoint_at_sal): Reimplement on top of | |
6202 | insert_step_resume_breakpoint_at_sal_1. | |
6203 | (insert_step_resume_breakpoint_at_frame): Rename to ... | |
6204 | (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to | |
6205 | set a high-priority step-resume breakpoint. | |
6206 | (insert_step_resume_breakpoint_at_frame): Adjust comment. | |
6207 | (insert_step_resume_breakpoint_at_caller): Ditto. | |
6208 | ||
51be5b68 PA |
6209 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6210 | ||
6211 | * breakpoint.c (iterate_over_related_breakpoints): New. | |
6212 | (do_map_delete_breakpoint): New. | |
6213 | (delete_command): Pass do_map_delete_breakpoint to | |
6214 | map_breakpoint_numbers. | |
6215 | (do_disable_breakpoint): New. | |
6216 | (do_map_disable_breakpoint): Iterate over the breakpoint's related | |
6217 | breakpoints. | |
6218 | (do_enable_breakpoint): Rename to ... | |
6219 | (enable_breakpoint_disp): ... this. | |
6220 | (enable_breakpoint): Adjust. | |
6221 | (do_enable_breakpoint): New. | |
6222 | (enable_once_breakpoint): Delete. | |
6223 | (do_map_enable_breakpoint): New. | |
6224 | (do_map_enable_once_breakpoint): New. | |
6225 | (enable_once_command, enable_delete_command) | |
6226 | (delete_trace_command): Iterate over the breakpoint's related | |
6227 | breakpoints. | |
6228 | ||
4a1be8d2 PA |
6229 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
6230 | ||
6231 | * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true | |
6232 | for ALPHA_ZERO_REGNUM. | |
6233 | (alpha_supply_int_regs): Explicitly supply zero as the value for | |
6234 | ALPHA_ZERO_REGNUM in the register cache. | |
6235 | * alpha-nat.c (fetch_osf_core_registers): Ditto. | |
6236 | ||
59d70315 YQ |
6237 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
6238 | ||
6239 | * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T. | |
6240 | ||
251d32d9 TG |
6241 | 2011-05-26 Tristan Gingold <gingold@adacore.com> |
6242 | ||
6243 | * symfile.h (struct dwarf2_section_names): New type. | |
6244 | (struct dwarf2_debug_sections): New type. | |
6245 | (dwarf2_has_info): Add parameter. | |
6246 | * dwarf2read.c (dwarf2_elf_names): New variable. | |
6247 | (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION) | |
6248 | (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION) | |
6249 | (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove. | |
6250 | (dwarf2_has_info): Add names parameter. Pass names | |
6251 | to dwarf2_locate_sections. | |
6252 | (section_is_p): Rewrite using the names parameter. | |
6253 | (dwarf2_locate_sections): Use section names from the names parameter. | |
6254 | * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info. | |
6255 | * elfread.c (read_psyms): Ditto. | |
6256 | * machoread.c (macho_symfile_read): Ditto. | |
6257 | ||
652c71b4 AS |
6258 | 2011-05-25 Andreas Schwab <schwab@redhat.com> |
6259 | ||
6260 | PR gdb/8677 | |
6261 | * event-loop.c (handle_file_event): Don't handle POLLHUP as error. | |
6262 | ||
f17170e5 KS |
6263 | 2011-05-24 Keith Seitz <keiths@redhat.com> |
6264 | ||
6265 | PR breakpoint/12803 | |
6266 | * linespec.c (keep_name_info): Add handling for "volatile" keyword. | |
6267 | (decode_compound): Unconditionally call keep_name_info. | |
6268 | ||
cdac0397 PA |
6269 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
6270 | ||
6271 | * breakpoint.c (watchpoint_check): If the watchpoint went out of | |
6272 | scope, clear its command list. | |
6273 | (map_breakpoint_numbers): Don't walk the related breakpoints list | |
6274 | of each breakpoint. | |
6275 | ||
91d4fe3f TT |
6276 | 2011-05-24 Tom Tromey <tromey@redhat.com> |
6277 | ||
6278 | * MAINTAINERS: Move Jim Blandy to past maintainers. | |
6279 | ||
3017a003 TG |
6280 | 2011-05-24 Tristan Gingold <gingold@adacore.com> |
6281 | ||
6282 | * symfile.h (enum dwarf2_section_enum): New type. | |
6283 | (dwarf2_get_section_info): New prototype. | |
6284 | * dwarf2read.c (dwarf2_get_section_info): Replace parameter | |
6285 | section_name by sect. Use a switch to select the info. | |
6286 | * dwarf2-frame.c (warf2_get_section_info): Remove prototype. | |
6287 | (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info. | |
6288 | ||
c91c8c16 PA |
6289 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
6290 | ||
6291 | * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting | |
6292 | shared library event breakpoint if there's no execution. | |
6293 | ||
77bc418a TJB |
6294 | 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6295 | ||
6296 | * breakpont.c (remove_hw_watchpoints): Remove unused function. | |
6297 | * breakpoint.h remove_hw_watchpoints(): Remove prototype. | |
6298 | ||
c50491a7 TT |
6299 | 2011-05-23 Tom Tromey <tromey@redhat.com> |
6300 | ||
6301 | * c-lang.c (evaluate_subexp_c): Use expect_type if it is not | |
6302 | NULL. | |
6303 | ||
6d64e6d4 DE |
6304 | 2011-05-23 Doug Evans <dje@google.com> |
6305 | ||
6306 | * python/lib/gdb/printing.py (register_pretty_printer): Add missing | |
6307 | entry for RuntimeError to doc string. | |
6308 | ||
2067c8d4 JG |
6309 | 2011-05-23 Jerome Guitton <guitton@adacore.com> |
6310 | ||
6311 | * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction | |
6312 | sequence for probing loops. | |
6313 | ||
b136cd05 PA |
6314 | 2011-05-23 Pedro Alves <pedro@codesourcery.com> |
6315 | ||
6316 | * infrun.c (user_visible_resume_ptid): Fix typos in describing | |
6317 | comment. | |
6318 | ||
22e74ef9 MK |
6319 | 2011-05-21 Mark Kettenis <kettenis@gnu.org> |
6320 | ||
6321 | * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply | |
6322 | zero as the value for %g0 in the register cache. | |
6323 | * sparc-tdep.c (sparc32_supply_gregset): Likewise. | |
6324 | * sparc64-tdep.c (sparc64_supply_gregset): Likewise. | |
6325 | ||
842951eb PA |
6326 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6327 | ||
6328 | * infrun.c (proceed): Set previous_inferior_ptid here. | |
6329 | (init_wait_for_inferior): Initialize previous_inferior_ptid from | |
6330 | inferior_ptid, not null_ptid. | |
6331 | (wait_for_inferior): Don't initialize previous_inferior_ptid here. | |
6332 | (fetch_inferior_event): Nor here. | |
6333 | ||
46cf51e6 PA |
6334 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6335 | ||
6336 | * inf-loop.c (inferior_event_handler): Only output a message if | |
6337 | verbose. | |
6338 | ||
29ef4c46 LM |
6339 | 2011-05-20 Luis Machado <lgustavo@codesourcery.com> |
6340 | ||
6341 | * MAINTAINERS: Update my e-mail address. | |
6342 | ||
f148b27e PA |
6343 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6344 | ||
6345 | * infrun.c (proceed): Switch the inferior event loop to | |
6346 | INF_EXEC_COMPLETE if the target refused to resume from a | |
6347 | vfork/fork. | |
6348 | ||
09cee04b PA |
6349 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6350 | ||
6351 | * infcmd.c: Include "inf-loop.h". | |
6352 | (step_once): When stepping into an inline subroutine, pretend the | |
6353 | target has run. If the target can async, switch the inferior | |
6354 | event loop to INF_EXEC_COMPLETE. | |
6355 | * inferior.h (user_visible_resume_ptid): Declare. | |
6356 | * infrun.c (user_visible_resume_ptid): New function, factored out | |
6357 | from `resume'. | |
6358 | (resume): Use it. | |
6359 | * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion | |
6360 | that the current thread is running. Merge async and sync | |
6361 | branches. | |
6362 | ||
751b8ce1 PA |
6363 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6364 | ||
6365 | * infcmd.c (step_1): Simplify synchronous case. | |
6366 | ||
e93a69ed PA |
6367 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6368 | ||
6369 | * tracepoint.c: Include exceptions.h. | |
6370 | (TFILE_PID): Move higher in file. | |
6371 | (tfile_open): Delay pushing the tfile target until we're assured | |
6372 | the tfile header is present in the file. Wrap reading the initial | |
6373 | newline-terminated lines in TRY_CATCH. Pop the target if the | |
6374 | initial setup failed. Add the tfile's thread immediately | |
6375 | aftwards, before any non-essential setup. Don't skip | |
6376 | post_create_inferior if there are no traceframes present in the | |
6377 | file. | |
6378 | (tfile_close): Remove redundant check for null before xfree call. | |
6379 | (tfile_thread_alive): New function. | |
6380 | (init_tfile_ops): Register it as to_thread_alive callback. | |
6381 | ||
6823e2b1 PA |
6382 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
6383 | ||
6384 | * tracepoint.c (tfile_open): Delete #if 0'd code. | |
6385 | ||
b3c8eb43 JK |
6386 | 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6387 | ||
6388 | Fix -readnow for -gdwarf-4 unused type units. | |
6389 | * dwarf2read.c (struct signatured_type): Remove the field offset. | |
6390 | (create_signatured_type_table_from_index): Remove its initialization. | |
6391 | (create_debug_types_hash_table): Likewise. Initialize per_cu.offset | |
6392 | instead. Add a complaint call. | |
6393 | (process_psymtab_comp_unit): Change assignment to gdb_assert. | |
6394 | (process_type_comp_unit, lookup_die_type, dump_die_shallow) | |
6395 | (lookup_signatured_type_at_offset, read_signatured_type) | |
6396 | (write_one_signatured_type): Update the field for per_cu. | |
6397 | ||
310afc76 TT |
6398 | 2011-05-19 Tom Tromey <tromey@redhat.com> |
6399 | ||
6400 | * python/py-inferior.c (python_inferior_exit): Use | |
6401 | target_gdbarch. | |
6402 | (python_on_resume): Likewise. | |
6403 | ||
cf6c5ffb TT |
6404 | 2011-05-19 Matt Rice <ratmice@gmail.com> |
6405 | ||
6406 | * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. | |
6407 | ||
fb80a3c5 HZ |
6408 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
6409 | ||
6410 | * tracepoint.c (tfile_trace_find): Return directly when num is -1. | |
6411 | ||
3672b1be HZ |
6412 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
6413 | ||
6414 | * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved. | |
6415 | ||
ff355380 TT |
6416 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
6417 | ||
6418 | * dwarf2read.c (dwarf2_add_field): Constify. | |
6419 | * value.c (value_static_field): Constify. | |
6420 | * gdbtypes.h (struct main_type) <field.field_location.physname>: | |
6421 | Now const. | |
6422 | * ax-gdb.c (gen_static_field): Constify | |
6423 | ||
ed731959 JK |
6424 | 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
6425 | ||
6426 | * linux-nat.c (kill_callback): Use SIGKILL first. | |
6427 | ||
967cff16 JB |
6428 | 2011-05-18 Joel Brobecker <brobecker@adacore.com> |
6429 | ||
6430 | * ada-lang.c (print_it_exception): Avoid use of sprintf. | |
6431 | ||
1d06ead6 TT |
6432 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
6433 | ||
6434 | * value.c (value_fn_field): Constify. | |
6435 | * symtab.c (gdb_mangle_name): Constify. | |
6436 | * stabsread.c (update_method_name_from_physname): Make 'physname' | |
6437 | argument const. | |
6438 | * p-typeprint.c (pascal_type_print_method_args): Make arguments | |
6439 | const. Use explicit fputc_filtered loop. | |
6440 | (pascal_type_print_base): Constify. | |
6441 | * p-lang.h (pascal_type_print_method_args): Update. | |
6442 | * linespec.c (add_matching_methods): Constify. | |
6443 | (add_constructors): Likewise. | |
6444 | * jv-typeprint.c (java_type_print_base): Constify. | |
6445 | * gdbtypes.h (struct cplus_struct_type) | |
6446 | <fn_fieldlist.fn_field.physname>: Now const. | |
6447 | * dwarf2read.c (compute_delayed_physnames): Constify. | |
6448 | (dwarf2_add_member_fn): Likewise. | |
6449 | * c-typeprint.c (c_type_print_base): Constify. Use cleanups. | |
6450 | ||
0d9a9a5f PA |
6451 | 2011-05-18 Pedro Alves <pedro@codesourcery.com> |
6452 | ||
6453 | * infrun.c (resume): Mention which is the current thread, and its | |
6454 | current PC in debug output. | |
6455 | (prepare_to_proceed): Mention the thread switching in debug | |
6456 | output. | |
6457 | ||
05386e9e TT |
6458 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
6459 | ||
6460 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute | |
6461 | path check. Use xmalloc and cleanups. | |
6462 | (try_thread_db_load_from_dir): Use xmalloc and cleanups. | |
6463 | ||
ee86786c TT |
6464 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
6465 | ||
6466 | * cp-valprint.c (cp_print_value_fields): Catch errors from | |
6467 | value_static_field. | |
6468 | ||
9ff3b74f TT |
6469 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
6470 | ||
6471 | * dwarf2read.c (dwarf2_get_die_type): Call | |
6472 | get_die_type_at_offset. | |
6473 | * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from | |
6474 | get_base_type function. | |
6475 | ||
cd3da28e PA |
6476 | 2011-05-17 Tomas Martinec <fyzmat@gmail.com> |
6477 | ||
6478 | * infrun.c (handle_inferior_event) <handling deferred step>: Clear | |
6479 | trap_expected. | |
6480 | ||
fd20d931 DE |
6481 | 2011-05-16 Doug Evans <dje@google.com> |
6482 | ||
6483 | * python/py-auto-load.c (source_section_scripts): Mention objfile | |
6484 | name in warning. | |
6485 | ||
75fc9810 DE |
6486 | 2011-05-15 Doug Evans <dje@google.com> |
6487 | ||
290351b8 DE |
6488 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. |
6489 | (try_thread_db_load_from_pdir): Call it. If unable to find | |
6490 | libthread_db in directory of libpthread, see if we're looking at | |
6491 | the separate-debug-info copy. | |
6492 | ||
75fc9810 DE |
6493 | * python/py-autoload.c (print_script): Print "Missing" instead of |
6494 | "No" for missing scripts. | |
6495 | (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". | |
6496 | ||
9f7bc587 DE |
6497 | 2011-05-13 Doug Evans <dje@google.com> |
6498 | ||
6499 | * ui-file.c (stdio_file_write_async_safe): Add comment. | |
6500 | ||
093cee7d HZ |
6501 | 2011-05-14 Hui Zhu <teawater@gmail.com> |
6502 | ||
6503 | * ui-file.c (stdio_file_write_async_safe): Add empty check for build. | |
6504 | ||
dbaefcf7 DE |
6505 | 2011-05-13 Doug Evans <dje@google.com> |
6506 | ||
98a5dd13 DE |
6507 | Support $pdir and $sdir in libthread-db-search-path. |
6508 | * NEWS: Mention $sdir,$pdir. | |
6509 | * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir. | |
6510 | * linux-thread-db.c (try_thread_db_load_from_pdir): New function. | |
6511 | (try_thread_db_load_from_sdir): New function. | |
6512 | (try_thread_db_load_from_dir): New function. | |
6513 | (thread_db_load_search): Handle $pdir, $sdir. Remove trying of | |
6514 | system directories if search of libthread-db-search-path fails, | |
6515 | that is now done via $sdir. | |
6516 | (has_libpthread): New function. | |
6517 | (thread_db_load): Remove search for libthread_db in directory of | |
6518 | libpthread, that is now done via $pdir. | |
6519 | ||
dbaefcf7 DE |
6520 | * NEWS: Mention "info auto-load-scripts". |
6521 | * python/py-auto-load.c (struct auto_load_pspace_info): New member | |
6522 | script_not_found_warning_printed. | |
6523 | (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash, | |
6524 | all callers updated. Initialize script_not_found_warning_printed. | |
6525 | (get_auto_load_pspace_data_for_loading): New function. | |
6526 | (maybe_add_script): New function. | |
6527 | (source_section_scripts): Simplify. Only print one warning regardless | |
6528 | of the number of auto-load scripts not found. | |
6529 | (clear_section_scripts): Clear script_not_found_warning_printed. | |
6530 | (auto_load_objfile_script): Record script in hash table. | |
6531 | (count_matching_scripts): New function. | |
6532 | (maybe_print_script): Renamed from maybe_print_section_script, all | |
6533 | callers updated. Rewrite to use ui_out_*. | |
6534 | (info_auto_load_scripts): Renamed from | |
6535 | maintenance_print_section_scripts, all callers updated. | |
6536 | (gdbpy_initialize_auto_load): "maintenance print section-scripts" | |
6537 | renamed as "info auto-load-scripts". | |
6538 | ||
9930639c TT |
6539 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
6540 | ||
6541 | * dwarf2expr.c (read_uleb128): Cast intermediate result. | |
6542 | (read_sleb128): Likewise. | |
6543 | ||
06826322 TT |
6544 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
6545 | ||
6546 | * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction | |
6547 | offset display. | |
6548 | ||
01124a23 DE |
6549 | 2011-05-13 Doug Evans <dje@google.com> |
6550 | ||
6551 | * linux-nat.c (debug_linux_nat_async): Delete. | |
6552 | Replace all references to use debug_linux_nat instead. | |
6553 | (show_debug_linux_nat_async): Delete. | |
6554 | (sigchld_handler): Call ui_file_write_async_safe instead of | |
6555 | fprintf_unfiltered. | |
6556 | (_initialize_linux_nat): Remove `set debug lin-lwp-async'. | |
6557 | * ui-file.c (struct ui_file): New member to_write_async_safe. | |
6558 | (null_file_write_async_safe): New function. | |
6559 | (ui_file_write_async_safe): New function. | |
6560 | (set_ui_file_write_async_safe): New function. | |
6561 | (ui_file_new): Initialize to_write_async_safe. | |
6562 | (stdio_file_write_async_safe): New function. | |
6563 | (struct stdio_file): New member fd. | |
6564 | (stdio_file_new): Initialize to_write_async_safe, fd. | |
bbfac39e DE |
6565 | (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling |
6566 | fileno. | |
01124a23 DE |
6567 | * ui-file.h (ui_file_write_async_safe_ftype): New typedef. |
6568 | (set_ui_file_write_async_safe): Declare. | |
6569 | (ui_file_write_async_safe): Declare. | |
6570 | ||
72fc29ff TT |
6571 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
6572 | ||
6573 | * utils.c (do_value_free): New function. | |
6574 | (make_cleanup_value_free): Likewise. | |
6575 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value | |
6576 | freeing correctly. | |
6577 | (dwarf2_loc_desc_needs_frame): Call | |
6578 | make_cleanup_value_free_to_mark. | |
6579 | * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field. | |
6580 | * dwarf2expr.c (free_dwarf_expr_context): Don't call | |
6581 | value_free_to_mark. | |
6582 | (new_dwarf_expr_context): Don't call value_mark. | |
6583 | * dwarf2-frame.c (execute_stack_op): Call | |
6584 | make_cleanup_value_free_to_mark. | |
6585 | * defs.h (make_cleanup_value_free): Declare. | |
6586 | ||
028d0ed5 TJB |
6587 | 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6588 | ||
6589 | * mi/mi-main.c (mi_cmd_execute): Use cleanup from | |
6590 | prepare_execute_command. | |
6591 | * top.c (prepare_execute_command): Return cleanup. | |
6592 | (execute_command): Use cleanup from prepare_execute_command. | |
6593 | * top.h (prepare_execute_command): Change prototype to return | |
6594 | cleanup. | |
6595 | * defs.h (struct value): Add opaque declaration. | |
6596 | (make_cleanup_value_free_to_mark): Add prototype. | |
6597 | * utils.c (do_value_free_to_mark): New function. | |
6598 | (make_cleanup_value_free_to_mark): Likewise. | |
6599 | ||
b087e0ed TT |
6600 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
6601 | ||
6602 | * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally | |
6603 | cast left-hand-side to unsigned. | |
6604 | ||
8a9b8146 TT |
6605 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
6606 | ||
6607 | PR gdb/12617: | |
6608 | * value.h (value_from_contents): Declare. | |
6609 | * value.c (value_from_contents): New function. | |
6610 | * dwarf2read.c (dwarf_stack_op_name): Add new values. | |
6611 | (dwarf2_get_die_type): New function. | |
6612 | * dwarf2loc.c (dwarf_expr_get_base_type): New function. | |
6613 | (allocate_piece_closure): Acquire reference to values. | |
6614 | (read_pieced_value): Update for value-based expressions. | |
6615 | (write_pieced_value): Likewise. | |
6616 | (free_pieced_value_closure): Call value_free as needed. | |
6617 | (dwarf2_evaluate_loc_desc_full): Set get_base_type field. | |
6618 | Update for value-based expressions. | |
6619 | * dwarf2loc.h (dwarf2_get_die_type): Declare. | |
6620 | * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type. | |
6621 | <get_base_type>: New field. | |
6622 | (struct dwarf_expr_piece) <v.value>: Change type. | |
6623 | <v.regno>: New field. | |
6624 | (struct dwarf_expr_context) <mark>: New field. | |
6625 | (dwarf_expr_piece, dwarf_expr_fetch): Update. | |
6626 | (dwarf_expr_pop, dwarf_expr_push): Remove. | |
6627 | (dwarf_expr_push_address): Declare. | |
6628 | * dwarf2expr.c (dwarf_arch_cookie): New global. | |
6629 | (struct dwarf_gdbarch_types): New. | |
6630 | (dwarf_gdbarch_types_init, dwarf_expr_address_type): New | |
6631 | functions. | |
6632 | (dwarf_expr_push): Change type of 'value' argument. Update. Now | |
6633 | static. | |
6634 | (dwarf_expr_push_address): New function. | |
6635 | (dwarf_expr_pop): Now static. | |
6636 | (dwarf_expr_fetch): Change return type. | |
6637 | (dwarf_require_integral): New function. | |
6638 | (dwarf_expr_fetch): Simplify. | |
6639 | (add_piece): Update. | |
6640 | (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New | |
6641 | functions. | |
6642 | (execute_stack_op) <sign_ext>: Remove. | |
6643 | Use values for DWARF stack. | |
6644 | <DW_OP_GNU_const_type, DW_OP_GNU_deref_type, | |
6645 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
6646 | New cases. | |
6647 | (_initialize_dwarf2expr): New function. | |
6648 | (add_piece): Update. | |
6649 | (new_dwarf_expr_context): Set new field. | |
6650 | (free_dwarf_expr_context): Call value_free_to_mark. | |
6651 | * dwarf2-frame.c (no_base_type): New function. | |
6652 | (execute_stack_op): Set get_base_type field. Update. | |
6653 | ||
e8d28ef4 TT |
6654 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
6655 | ||
6656 | * dwarf2read.c (read_common_block): Fix formatting. | |
6657 | ||
d248b706 KY |
6658 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
6659 | ||
6660 | * breakpoint.c (disable_breakpoint): Disable all locations | |
6661 | associated with a tracepoint on target if a trace experiment is | |
6662 | running. | |
6663 | (disable_command): Disable a specific tracepoint location on target if | |
6664 | a trace experiment is running. | |
6665 | (do_enable_breakpoint): Enable all locations associated with a | |
6666 | tracepoint on target if a trace experiment is running. | |
6667 | (enable_command) Enable a specific tracepoint location on target if a | |
6668 | trace experiment is running. | |
6669 | * target.c (update_current_target): Add INHERIT and de_fault clauses for | |
6670 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
6671 | to_disable_tracepoint. | |
6672 | * target.h: Add declaration of struct bp_location. | |
6673 | (struct target_ops): Add new functions | |
6674 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
6675 | to_disable_tracepoint to target operations. | |
6676 | (target_supports_enable_disable_tracepoint): New macro. | |
6677 | (target_enable_tracepoint): New macro. | |
6678 | (target_disable_tracepoint): New macro. | |
6679 | * remote.c (struct remote_state): Add new field. | |
6680 | (remote_enable_disable_tracepoint_feature): New. | |
6681 | (remote_protocol_features): Add new entry. | |
6682 | (remote_supports_enable_disable_tracepoint): New. | |
6683 | (remote_enable_tracepoint): New. | |
6684 | (remote_disable_tracepoint): New. | |
6685 | (init_remote_ops): Add remote_enable_tracepoint, | |
6686 | remote_disable_tracepoint and remote_supports_enable_disable_tracepoint | |
6687 | to remote operations. | |
6688 | * tracepoint.c (start_tracing): Allow tracing to start without any | |
6689 | tracepoints enabled with just a warning if they can be re-enabled | |
6690 | later. | |
6691 | * NEWS: Add news item for the new behaviour of the enable and disable | |
6692 | GDB commands when applied to tracepoints. | |
6693 | Add news items for the new remote packets QTEnable and QTDisable. | |
6694 | ||
cc88a640 JK |
6695 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6696 | ||
6697 | * config.in: Regenerate. | |
6698 | * configure: Regenerate. | |
6699 | * configure.ac <--with-system-readline> (for readline_echoing_p): | |
6700 | Remove the test. | |
6701 | * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... | |
6702 | (tui_old_rl_echoing_p): ... here. | |
6703 | (tui_setup_io): Rename extern declaration readline_echoing_p to | |
6704 | _rl_echoing_p. Adjust assignments for the both renames. | |
6705 | ||
1f84b619 TJB |
6706 | 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6707 | ||
6708 | * symtab.c (lookup_symtab): Run cleanup before returning. | |
6709 | ||
74ac6d43 TT |
6710 | 2011-05-11 Tom Tromey <tromey@redhat.com> |
6711 | ||
6712 | * dwarf2read.c (handle_data_member_location): New function. | |
6713 | (dwarf2_add_field): Use it. | |
6714 | (read_common_block): Likewise. | |
6715 | ||
5488dafb JK |
6716 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
6717 | ||
6718 | Make addrs->SECTINDEX always defined. | |
6719 | * symfile.c (relative_addr_info_to_section_offsets): Check for | |
6720 | SECTINDEX -1, not for zero ADDR. | |
6721 | (addrs_section_compar): Remove checking for invalid SECTINDEX. | |
6722 | (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries. | |
6723 | * symfile.h (struct section_addr_info) <sectindex>: Update the comment | |
6724 | on its validity. | |
6725 | ||
84e578fb DE |
6726 | 2011-05-10 Doug Evans <dje@google.com> |
6727 | ||
2471d008 DE |
6728 | * linux-thread-db.c: Whitespace cleanup. |
6729 | (try_thread_db_load_1): Fix comment. | |
6730 | ||
84e578fb DE |
6731 | * linux-thread-db.c (set_libthread_db_search_path): New function. |
6732 | (_initialize_thread_db): Add setter for libthread-db-search-path. | |
6733 | ||
673c2bbe DE |
6734 | 2011-05-09 Doug Evans <dje@google.com> |
6735 | ||
478aac75 DE |
6736 | * NEWS: Mention --with-iconv-bin. |
6737 | * configure.ac: New option --with-iconv-bin. | |
6738 | * configure: Regenerate. | |
6739 | * config.in: Regenerate. | |
6740 | * defs.h (relocate_gdb_directory): Declare. | |
6741 | * main.c (relocate_gdb_directory): Renamed from relocate_directory, | |
6742 | removed progname parameter, and exported. All callers updated. | |
6743 | * charset.c (find_charset_names): Use --with-iconv-bin if specified. | |
6744 | ||
673c2bbe DE |
6745 | * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, |
6746 | adding missing call to restore_child_signals_mask. | |
6747 | ||
e4c8541f PA |
6748 | 2011-05-09 Pedro Alves <pedro@codesourcery.com> |
6749 | ||
6750 | * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' | |
6751 | parameter. | |
6752 | * infrun.c (proceed, start_remote): Adjust. | |
6753 | (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter, | |
6754 | and adjust to not handle it. | |
6755 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
6756 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
6757 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
6758 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
6759 | * windows-nat.c (do_initial_windows_stuff): Adjust. | |
6760 | * infcmd.c (attach_command): Adjust. | |
6761 | (notice_new_inferior): Adjust. | |
6762 | ||
a536c6d7 UW |
6763 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
6764 | ||
6765 | * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. | |
6766 | (ppu2spu_unwind_register): Mark pseudo registers unavailable. | |
6767 | * spu-tdep.c (op_selb): Use correct value. | |
6768 | ||
7845b013 UW |
6769 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
6770 | ||
6771 | * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL | |
6772 | "parent" parameter to symbol_file_add_from_bfd call. | |
6773 | ||
9c06b0b4 TJB |
6774 | 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
6775 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
6776 | ||
6777 | Implement support for PowerPC BookE masked watchpoints. | |
6778 | * NEWS: Mention masked watchpoint support. Create "Changed commands" | |
6779 | section. | |
6780 | * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New | |
6781 | method. Initialize to NULL in all existing breakpoint_ops instances. | |
6782 | (struct breakpoint) <hw_wp_mask>: New field. | |
6783 | * breakpoint.c (is_masked_watchpoint): Add prototype. | |
6784 | (update_watchpoint): Don't set b->val for masked watchpoints. Call | |
6785 | breakpoint's breakpoint_ops.works_in_software_mode if available. | |
6786 | (watchpoints_triggered): Handle the case of a hardware masked | |
6787 | watchpoint trigger. | |
6788 | (watchpoint_check): Likewise. | |
6789 | (works_in_software_mode_watchpoint): New function. | |
6790 | (insert_masked_watchpoint, remove_masked_watchpoint) | |
6791 | (resources_needed_masked_watchpoint) | |
6792 | (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint) | |
6793 | (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint) | |
6794 | (print_recreate_masked_watchpoint, is_masked_watchpoint): New | |
6795 | functions. | |
6796 | (masked_watchpoint_breakpoint_ops): New structure. | |
6797 | (watch_command_1): Check for the existence of the `mask' parameter. | |
6798 | Set b->ops according to the type of hardware watchpoint being created. | |
6799 | * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint) | |
6800 | (ppc_linux_remove_mask_watchpoint) | |
6801 | (ppc_linux_masked_watch_num_registers): New functions. | |
6802 | (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint, | |
6803 | to_remove_mask_watchpoint and to_masked_watch_num_registers. | |
6804 | * target.c (update_current_target): Mention to_insert_mask_watchpoint, | |
6805 | to_remove_mask_watchpoint, and to_masked_watch_num_registers. | |
6806 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
6807 | (target_masked_watch_num_registers): New functions. | |
6808 | * target.h (struct target_ops) <to_insert_mask_watchpoint>, | |
6809 | <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New | |
6810 | methods. | |
6811 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
6812 | (target_masked_watch_num_registers): Add prototypes. | |
6813 | ||
8be455d7 JK |
6814 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6815 | ||
6816 | PR 12573 | |
6817 | * dwarf2read.c (struct dwarf2_cu): New field has_loclist. | |
6818 | (producer_is_gcc_ge_4_0): New function. | |
6819 | (process_full_comp_unit): Set also symtab->locations_valid. Move the | |
6820 | symtab->language code. | |
6821 | (var_decode_location): Set cu->has_loclist. | |
6822 | * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and | |
6823 | skip. Intialize force_skip from locations_valid. Move the prologue | |
6824 | skipping code into two passes. | |
6825 | * symtab.h (struct symtab): Make the primary field a bitfield. New | |
6826 | field locations_valid. | |
6827 | ||
d8228535 JK |
6828 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6829 | ||
6830 | * c-exp.y (qualified_name): Call destructor_name_p with $1.type. | |
6831 | (classify_inner_name): Call cp_lookup_nested_type with | |
6832 | yylval.tsym.type. | |
6833 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
6834 | saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call | |
6835 | type_name_no_tag_or_error with saved_parent_type. | |
6836 | * dwarf2read.c (load_partial_dies): Read in any children of | |
6837 | DW_TAG_typedef with complaint in such case. | |
6838 | * gdbtypes.c (type_name_no_tag_or_error): New function. | |
6839 | * gdbtypes.h (type_name_no_tag_or_error): New prototype. | |
6840 | * valops.c (destructor_name_p): New comment for parameter type. Remove | |
6841 | type const. Make dname and cp const. Call type_name_no_tag_or_error. | |
6842 | * value.h (destructor_name_p): Remove type const. | |
6843 | ||
1976171a JK |
6844 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
6845 | ||
6846 | * symtab.c (compare_symbol_name): New function. | |
6847 | (completion_list_add_name, expand_partial_symbol_name): Call it, | |
6848 | remove the variable ncmp. | |
6849 | (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN, | |
6850 | gdb_assert it. | |
6851 | ||
a9634178 TJB |
6852 | 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6853 | ||
6854 | Demote to sw watchpoint only in update_watchpoint. | |
6855 | * breakpoint.c (update_watchpoint): Change between software and | |
6856 | hardware watchpoint for all kinds of watchpoints, not just | |
6857 | read/write ones. Determine b->exact value here instead of | |
6858 | in watch_command_1. Error out if there are not enough resources | |
6859 | for a read or access hardware watchpoint. | |
6860 | (watch_command_1): Remove logic of checking whether there are | |
6861 | enough resources available, since update_watchpoint will do that | |
6862 | work now. Don't set b->exact here. Catch exceptions thrown by | |
6863 | update_watchpoint and delete the watchpoint. | |
6864 | (can_use_hardware_watchpoint): Remove exact_watchpoints argument. | |
6865 | Use target_exact_watchpoints instead. | |
6866 | (delete_breakpoint): Notify observers only if deleted watchpoint | |
6867 | has a breakpoint number assigned to it. | |
6868 | ||
4c67c798 JJ |
6869 | 2011-05-05 Janis Johnson <janisjo@codesourcery.com> |
6870 | ||
6871 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
6872 | ||
a3fcb948 JG |
6873 | 2011-05-05 Jerome Guitton <guitton@adacore.com> |
6874 | ||
6875 | * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): | |
6876 | New functions. | |
6877 | (i386_stack_tramp_frame_unwind): New static global. | |
6878 | (i386_match_pattern): New function, extracted from i386_match_insn. | |
6879 | (i386_match_insn): Use i386_match_pattern. | |
6880 | (i386_match_insn_block): New function. | |
6881 | (i386_tramp_chain_in_reg_insns) | |
6882 | (i386_tramp_chain_on_stack_insns): New static variables. | |
6883 | (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list | |
6884 | of unwinders. | |
6885 | ||
4d393d60 JM |
6886 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
6887 | ||
6888 | * configure.host (xscale*): Don't handle target. | |
6889 | * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't | |
6890 | handle targets. | |
6891 | ||
f70bd40b YQ |
6892 | 2011-05-04 Yao Qi <yao@codesourcery.com> |
6893 | ||
6894 | * gdb_wait.h: remove WAITTYPE and WCOREDUMP. | |
6895 | ||
dd3295ee JB |
6896 | 2011-05-03 Joel Brobecker <brobecker@adacore.com> |
6897 | ||
6898 | Revert: | |
6899 | | 2011-03-07 Michael Snyder <msnyder@vmware.com> | |
6900 | | * elfread.c (elf_symtab_read): Stop memory leak. | |
6901 | ||
90375a0e PM |
6902 | 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
6903 | ||
6904 | * nto-tdep.c (nto_target): Replace deprecated call to | |
6905 | cygwin_conv_to_posix_path functions by cygwin_conv_path calls. | |
6906 | ||
d07205c2 JK |
6907 | 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
6908 | ||
6909 | Fix false GCC warning. | |
6910 | * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. | |
6911 | ||
1e718ff1 TJB |
6912 | 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6913 | ||
6914 | * breakpoint.c (update_watchpoint): Move code to change | |
6915 | the enable state of breakpoint from here ... | |
6916 | (do_enable_breakpoint): ... to here. | |
6917 | ||
35bef4fd TT |
6918 | 2011-04-26 Andrew Gontarek <andrewg@cray.com> |
6919 | ||
78290264 PP |
6920 | * valprint.c (val_print_array_elements): Fixed poor performance |
6921 | of printing very large arrays with repeat_count_threshold set | |
6922 | to unlimited. New comment. | |
35bef4fd | 6923 | |
38a714bb TT |
6924 | 2011-04-29 Tom Tromey <tromey@redhat.com> |
6925 | ||
6926 | * mi/mi-parse.c (mi_parse): Remove incorrect sizeof. | |
6927 | (mi_parse): Likewise. | |
6928 | * breakpoint.c (break_range_command): Use sizeof char*, not | |
6929 | char**. | |
6930 | (create_breakpoint): Likewise. | |
6931 | (parse_breakpoint_sals): Likewise. | |
6932 | ||
eb73ad13 PA |
6933 | 2011-04-29 Pedro Alves <pedro@codesourcery.com> |
6934 | ||
6935 | * linux-nat.c (linux_child_remove_fork_catchpoint) | |
6936 | (linux_child_remove_vfork_catchpoint) | |
6937 | (linux_child_remove_exec_catchpoint): New functions. | |
6938 | (linux_target_install_ops): Install them. | |
6939 | ||
d65aec65 PM |
6940 | 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> |
6941 | ||
6942 | PR mi/12531 | |
6943 | ||
6944 | * varobj.c (install_default_visualizer): Do not install a | |
6945 | visualizer if the varobj is CPLUS_FAKE_CHILD. | |
6946 | (construct_visualizer): Likewise. | |
6947 | ||
165195f4 JK |
6948 | 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
6949 | ||
6950 | * symtab.c (expand_partial_symbol_name): New variable NCMP. Support | |
6951 | case insensitive comparison. | |
6952 | ||
30852783 UW |
6953 | 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org> |
6954 | ||
6955 | * infrun.c (proceed): Revert previous change. | |
6956 | (resume): Instead, handle the case of signal delivery while stepping | |
6957 | off a breakpoint location here, and only if software single-stepping | |
6958 | is used. Handle nested signals. | |
6959 | ||
7ff120b4 YQ |
6960 | 2011-04-28 Yao Qi <yao@codesourcery.com> |
6961 | ||
6962 | * arm-tdep.c (copy_unmodified): Rename to ... | |
6963 | (arm_copy_unmodified): .. this. New. | |
6964 | (copy_preload): Move common part to ... | |
6965 | (install_preload): .. this. New. | |
6966 | (arm_copy_preload): New. | |
6967 | (copy_preload_reg): Move common part to ... | |
6968 | (install_preload_reg): ... this. New. | |
6969 | (arm_copy_preload_reg): New. | |
6970 | (copy_b_bl_blx): Move common part to ... | |
6971 | (install_b_bl_blx): .. this. New. | |
6972 | (arm_copy_b_bl_blx): New. | |
6973 | (copy_bx_blx_reg): Move common part to ... | |
6974 | (install_bx_blx_reg): ... this. New. | |
6975 | (arm_copy_bx_blx_reg): New. | |
6976 | (copy_alu_reg): Move common part to ... | |
6977 | (install_alu_reg): ... this. New. | |
6978 | (arm_copy_alu_reg): New. | |
6979 | (copy_alu_shifted_reg): Move common part to ... | |
6980 | (install_alu_shifted_reg): ... this. New. | |
6981 | (copy_ldr_str_ldrb_strb): Move common part to ... | |
6982 | (install_ldr_str_ldrb_strb): ... this. New. | |
6983 | (arm_copy_ldr_str_ldrb_strb): New. | |
6984 | (copy_copro_load_store): Move some common part to ... | |
6985 | (install_copy_copro_load_store): ... this. New. | |
6986 | (arm_copy_copro_load_store): New. | |
6987 | (copy_svc): Delete. | |
6988 | (arm_copy_svc): Renamed from copy_svc. | |
6989 | (copy_undef): Delete. | |
6990 | (arm_copy_undef): Renamed from copy_undef. | |
6991 | (decode_ext_reg_ld_st): Delete. | |
6992 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
6993 | (decode_svc_copro): Delete. | |
6994 | (arm_decode_svc_copro): Renamed from decode_svc_copro. | |
6995 | (copy_copro_load_store, copy_alu_imm): update callers. | |
6996 | (copy_extra_ld_st, copy_block_xfer): Likewise. | |
6997 | (decode_misc_memhint_neon, decode_unconditional): Likewise. | |
6998 | (decode_miscellaneous, decode_dp_misc): Likewise. | |
6999 | (decode_ld_st_word_ubyte, decode_media): Likewise. | |
7000 | (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. | |
7001 | (decode_svc_copro, decode_misc_memhint_neon): Likewise. | |
7002 | (decode_unconditional, decode_miscellaneous): Likewise. | |
7003 | (decode_media, decode_b_bl_ldmstm): Likewise. | |
7004 | (arm_process_displaced_insn): Likewise.. | |
7005 | (decode_misc_memhint_neon): Delete. | |
7006 | (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. | |
7007 | (decode_miscellaneous): Delete. | |
7008 | (arm_decode_miscellaneous): Renamed from decode_miscellaneous. | |
7009 | (decode_dp_misc): Delete. | |
7010 | (arm_decode_dp_misc): Renamed from decode_dp_misc. | |
7011 | (decode_ld_st_word_ubyte): Delete. | |
7012 | (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. | |
7013 | (decode_media): Delete. | |
7014 | (arm_decode_media): Renamed from decode_media. | |
7015 | (decode_b_bl_ldmstm): Delete. | |
7016 | (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. | |
7017 | (decode_ext_reg_ld_st): Delete. | |
7018 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
7019 | (decode_unconditional): Delete. | |
7020 | (arm_decode_unconditional): Renamed from decode_unconditional. | |
7021 | ||
559a7a62 JK |
7022 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
7023 | ||
7024 | Case insensitive lookups implementation. | |
7025 | * dwarf2read.c: Include ctype.h. | |
7026 | (struct mapped_index): New field version. | |
7027 | (mapped_index_string_hash): New parameter index_version. New comment | |
7028 | for it. Call tolower appropriately. | |
7029 | (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. | |
7030 | Choose the right index version for mapped_index_string_hash. | |
7031 | (dwarf2_read_index): Support also the index version 5. Initialize the | |
7032 | new struct mapped_index field version. | |
7033 | (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. | |
7034 | (find_slot): Explain the version needs. Pass INT_MAX for the new | |
7035 | parameter. | |
7036 | (write_psymtabs_to_index): Produce version 5. | |
7037 | * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, | |
7038 | use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. | |
7039 | * psymtab.c (lookup_partial_symbol): Find the | |
7040 | SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching | |
7041 | entries. | |
7042 | * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off | |
7043 | NAME lowercasing. | |
7044 | (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. | |
7045 | (completion_list_add_name): New variable ncmp, initialize it, use it. | |
7046 | * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. | |
7047 | * utils.c (strcmp_iw): Support case_sensitive_off. | |
7048 | (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. | |
7049 | New function comment part. New variables saved_string1, | |
7050 | saved_string2 and case_pass. Add a proper second pass. | |
7051 | ||
681bf369 JK |
7052 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
7053 | ||
7054 | Replace re_comp/re_exec by regcomp/regexec. | |
7055 | * symtab.c (struct search_symbols_data): New fields preg, preg_p. | |
7056 | (search_symbols_name_matches): Use them, use regexec. | |
7057 | (search_symbols): New variable retval_chain, adjust the use of | |
7058 | old_chain against it. Replace re_comp by regcomp. Use the new struct | |
7059 | search_symbols_data fields, use regexec instead of re_exec. | |
7060 | ||
b11b1f88 JK |
7061 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
7062 | ||
7063 | Format the code for the next patch. | |
7064 | * dwarf2read.c (struct mapped_index): Include delimiting newlines. | |
7065 | * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. | |
7066 | New variables c1 and c2. | |
7067 | ||
2484c66b UW |
7068 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
7069 | ||
7070 | * infrun.c (proceed): Do not single-step into signal delivery | |
7071 | when stepping off a breakpoint location. | |
7072 | (insert_step_resume_breakpoint_at_frame): Move prototype earlier. | |
7073 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
7074 | (insert_step_resume_breakpoint_at_sal): Likewise. | |
7075 | (insert_longjmp_resume_breakpoint): Likewise. | |
7076 | ||
47423772 YQ |
7077 | 2011-04-27 Yao Qi <yao@codesourcery.com> |
7078 | ||
7079 | * common/linux-ptrace.h: Remove include <sys/wait.h>. | |
7080 | ||
13bdd2e7 JB |
7081 | 2011-04-27 Joel Brobecker <brobecker@adacore.com> |
7082 | ||
7083 | * procfs.c (procfs_pass_signals): Fix advance declaration. | |
7084 | ||
2455069d UW |
7085 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
7086 | ||
7087 | * target.h (struct target_ops): Remove to_notice_signals; | |
7088 | add to_pass_signals. | |
7089 | (target_notice_signals): Remove. | |
7090 | (target_pass_signals): Add prototype. | |
7091 | * target.c (update_current_target): Remove to_notice_signals; | |
7092 | mention to_pass_signals. | |
7093 | (target_pass_signals): New function. | |
7094 | (debug_to_notice_signals): Remove. | |
7095 | (setup_target_debug): Do not install debug_to_notice_signals. | |
7096 | ||
7097 | * infrun.c (signal_pass): New global. | |
7098 | (resume): Call target_pass_signals. | |
7099 | (handle_inferior_event): Report all signals while stepping over | |
7100 | non-steppable watchpoint. Reset trap_expected to ensure breakpoints | |
7101 | are re-inserted when stepping over a signal handler. | |
7102 | (signal_cache_update): New function. | |
7103 | (signal_stop_update): Call it. | |
7104 | (signal_print_update): Likewise. | |
7105 | (signal_pass_update): Likewise. | |
7106 | (handle_command): Call signal_cache_update and target_pass_signals | |
7107 | instead of target_notice_signals. | |
7108 | (_initialize_infrun): Initialize signal_pass. | |
7109 | ||
7110 | * linux-nat.c (pass_mask): New global. | |
7111 | (linux_nat_pass_signals): New function. | |
7112 | (linux_nat_create_inferior): Report all signals initially. | |
7113 | (linux_nat_attach): Likewise. | |
7114 | (linux_nat_resume): Use pass_mask to decide whether to directly | |
7115 | handle an inferior signal. | |
7116 | (linux_nat_wait_1): Likewise. | |
7117 | (linux_nat_add_target): Install to_pass_signals callback. | |
7118 | ||
7119 | * nto-procfs.c (notice_signals): Remove. | |
7120 | (procfs_resume): Do not call notice_signals. | |
7121 | (procfs_notice_signals): Remove. | |
7122 | (procfs_pass_signals): New function. | |
7123 | (init_procfs_ops): Install to_pass_signals callback instead of | |
7124 | to_notice_signals callback. | |
7125 | (_initialize_procfs): Report all signals initially. | |
7126 | ||
7127 | * procfs.c (procfs_notice_signals): Remove. | |
7128 | (procfs_pass_signals): New function. | |
7129 | (procfs_target): Install to_pass_signals callback instead of | |
7130 | to_notice_signals callback. | |
7131 | (register_gdb_signals): Remove. | |
7132 | (procfs_debug_inferior): Report all signals initially. | |
7133 | (procfs_init_inferior): Remove redundant register_gdb_signals call. | |
7134 | ||
7135 | * remote.c (remote_pass_signals): Add numsigs and pass_signals | |
7136 | parameters; use them instead of calling signal_..._state routines. | |
7137 | (remote_notice_signals): Remove. | |
7138 | (remote_start_remote): Report all signals initially. | |
7139 | (remote_resume): Do not call remote_pass_signals. | |
7140 | (_initialize_remote): Install to_pass_signals callback instead of | |
7141 | to_notice_signals callback. | |
7142 | ||
46c6471b PA |
7143 | 2011-04-27 Pedro Alves <pedro@codesourcery.com> |
7144 | ||
7145 | * breakpoint.c (user_settable_breakpoint): Delete. | |
7146 | (user_breakpoint_p): Remove check on user_settable_breakpoint. | |
7147 | (delete_command): Check user_breakpoint_p instead of looking at | |
7148 | the breakpoint's type. | |
7149 | (disable_command): Ditto. | |
7150 | (enable_command): Ditto. | |
7151 | (delete_trace_command): Use user_breakpoint_p instead of looking | |
7152 | at the breakpoint number directly. When checking if there are | |
7153 | user visible tracepoints, in order to know whether to ask the user | |
7154 | for confirmation, check whether the breakpoint is actually a | |
7155 | tracepoint. | |
7156 | ||
f6d90398 VP |
7157 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
7158 | ||
7159 | * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix | |
7160 | compilation. | |
7161 | ||
8d3788bd VP |
7162 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
7163 | ||
7164 | MI breakpoint notifications. | |
7165 | ||
f33edef8 PP |
7166 | * annotate.c (breakpoint_changed): Adjust parameter type. |
7167 | * breakpoint.c (set_breakpoint_condition): Adjust to change | |
7168 | in breakpoint_modified type. | |
7169 | (breakpoint_set_commands): Likewise. | |
7170 | (do_map_commands_command): Likewise. | |
7171 | (bpstat_check_breakpoint_conditions): Notify that breakpoint has | |
7172 | changed after bumping hit count. | |
7173 | (bpstat_stop_status): Likewise. | |
7174 | (print_one_breakpoint_location): Don't wrap in tuple here. | |
7175 | (print_one_breakpoint): Always print individual locations. | |
7176 | For locations, use unnamed tuple. | |
7177 | (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint | |
7178 | has changed. | |
7179 | (create_catchpoint, create_syscall_event_catchpoint): Call | |
7180 | breakpoint_created obsever. | |
7181 | (mention): Don't call breakpoint_created observer. | |
7182 | (create_breakpoint_sal): Call breakpoint_created observer. | |
7183 | (create_breakpoint, watch_command_1): Likewise. | |
7184 | (create_ada_exception_breakpoint): Likewise. | |
7185 | (delete_breakpoint): Call breakpoint_deleted breakpoint. | |
7186 | (locations_are_equal): New. | |
7187 | (update_breakpoint_locations): If locations were changed, notify. | |
7188 | (set_ignore_count, disable_breakpoint, do_enable_breakpoint): | |
7189 | Call breakpoint_modified observer. | |
7190 | ||
7191 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
7192 | (mi_cmd_break_insert): Don't set observers for modify and delete. | |
7193 | * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New. | |
7194 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
7195 | (mi_breakpoint_modified): New. | |
7196 | (mi_interpreter_init): Hook the above. | |
7197 | * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications | |
7198 | while -break-* commands are executing. | |
7199 | * mi/mi-main.h (mi_suppress_breakpoint_notifications): New. | |
7200 | * mi/mi-out.c (struct ui_out_data): New field original_buffer. | |
7201 | (mi_redirect): New. | |
7202 | (mi_ui_out_impl): Hook in mi_redirect. | |
7203 | (mi_field_skip): True to the name, skip the field, don't output | |
7204 | a field with an empty value. | |
7205 | ||
7206 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
7207 | (gdbpy_breakpoint_deleted): Adjust. | |
7208 | * tui/tui-hooks.c (tui_event_create_breakpoint) | |
7209 | (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust. | |
8d3788bd | 7210 | |
a8f42b45 UW |
7211 | 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com> |
7212 | ||
7213 | * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype. | |
7214 | (procfs_remove_hw_watchpoint): Likewise. | |
7215 | ||
57e12211 TT |
7216 | 2011-04-26 Michael Walle <michael@walle.cc> |
7217 | ||
7218 | * remote.c (remote_start_remote): Ack packet after sending the | |
7219 | interrupt sequence. | |
7220 | ||
af96c192 YQ |
7221 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
7222 | ||
f33edef8 PP |
7223 | * linux-nat.c: Move common macros to ... |
7224 | Include linux-ptrace.h. | |
7225 | * common/linux-ptrace.h: ... here. New. | |
af96c192 | 7226 | |
3e03848b JK |
7227 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
7228 | ||
7229 | * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by | |
7230 | !objfile_has_partial_symbols. New comment. | |
7231 | * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if | |
7232 | SYM_READ_PSYMBOLS is not present. Extend the comment. | |
7233 | * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment. | |
7234 | ||
1ae0d051 JK |
7235 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
7236 | ||
7237 | * defs.h (ENUM_BITFIELD): Remove. | |
7238 | ||
03f2bd59 JK |
7239 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
7240 | Eli Zaretskii <eliz@gnu.org> | |
7241 | ||
7242 | * NEWS: Document the new gdbserver --once option. | |
7243 | ||
4161fbb0 JZ |
7244 | 2011-04-21 Jie Zhang <jzhang918@gmail.com> |
7245 | ||
7246 | * MAINTAINERS: Update my email address. | |
7247 | ||
bcb28afc PM |
7248 | 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
7249 | ||
7250 | * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro. | |
7251 | (INTERMEDIATE_ENCODING): Change value to intermediate_encoding | |
7252 | function call if __STDC_ISO_10646__ macro is defined. | |
7253 | (intermediate_encoding): New prototype. | |
7254 | * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable | |
7255 | to generate compile time error for unsupported gdb_wchar_t size. | |
7256 | (ENDIAN_SUFFIX): New macro. | |
7257 | (intermediate_encoding): New function. | |
7258 | ||
7b08b9eb JK |
7259 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
7260 | ||
7261 | * ada-lang.c (struct add_partial_datum): Update the comment for | |
7262 | expand_partial_symbol_name. | |
7263 | (ada_add_partial_symbol_completions): Rename to ... | |
7264 | (ada_expand_partial_symbol_name): ... here, change return type, update | |
7265 | function comment, call symbol_completion_match instead of | |
7266 | symbol_completion_add. | |
7267 | (ada_make_symbol_completion_list): Use now expand_partial_symbol_names | |
7268 | and ada_expand_partial_symbol_name. | |
7269 | * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL | |
7270 | FILE_MATCHER. | |
7271 | (dw2_map_symbol_names): Remove. | |
7272 | (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names. | |
7273 | * psymtab.c (map_symbol_names_psymtab): Remove. | |
7274 | (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER. | |
7275 | Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check | |
7276 | order. | |
7277 | (psym_functions): Unlist map_symbol_names_psymtab. | |
7278 | (map_partial_symbol_names): Rename to ... | |
7279 | (expand_partial_symbol_names): ... here, change the FUN type, call | |
7280 | expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now. | |
7281 | * psymtab.h (map_partial_symbol_names): Rename to ... | |
7282 | (expand_partial_symbol_names): ... here, change the FUN type. | |
7283 | * symfile.h (struct quick_symbol_functions): Update the description of | |
7284 | expand_symtabs_matching. Remove map_symbol_names. | |
7285 | * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment. | |
7286 | (struct add_name_data): Update the comment for | |
7287 | expand_partial_symbol_name. | |
7288 | (add_partial_symbol_name): Rename to ... | |
7289 | (expand_partial_symbol_name): ... here. Replace | |
7290 | completion_list_add_name call by strncmp. | |
7291 | (default_make_symbol_completion_list_break_on): Use now | |
7292 | expand_partial_symbol_names and expand_partial_symbol_name. | |
7293 | * symtab.h (enum search_domain): New element ALL_DOMAIN. | |
7294 | ||
90476074 TT |
7295 | 2011-04-20 Tom Tromey <tromey@redhat.com> |
7296 | ||
7297 | * dwarf2read.c (save_gdb_index_command): Replace format | |
7298 | documentation with a pointer to the manual. | |
7299 | ||
c21236dc PA |
7300 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
7301 | ||
7302 | * regcache.c: Include remote.h. | |
7303 | (enum regcache_dump_what) <regcache_dump_remote>: New enum value. | |
7304 | (regcache_dump): Handle regcache_dump_remote. | |
7305 | (maintenance_print_remote_registers): New function. | |
7306 | (_initialize_regcache): Install "maint print remote-registers" | |
7307 | command. | |
7308 | * remote.c (map_regcache_remote_table): New function, factored out | |
7309 | from ... | |
7310 | (init_remote_state): ... here. | |
7311 | (remote_register_number_and_offset): New. | |
7312 | * remote.h (remote_register_number_and_offset): Declare. | |
7313 | ||
b78974c3 PA |
7314 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
7315 | ||
7316 | * regcache.c (get_thread_arch_regcache): If creating a regcache for | |
7317 | null_ptid, assume and allow a NULL address space, instead of | |
7318 | asking the target for the ptid's address space. | |
7319 | * infrun.c (ptid_is_pid): Remove assertion. | |
7320 | ||
7a9dd1b2 TT |
7321 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
7322 | ||
7323 | * windows-tdep.c (windows_xfer_shared_library): | |
7324 | * windows-nat.c (get_module_name, windows_make_so): | |
7325 | * v850-tdep.c (v850_handle_pushm): | |
7326 | * utils.c (null_cleanup, gdb_realpath): | |
7327 | * ui-out.c (get_next_header): | |
7328 | * tracepoint.c (clear_traceframe_info): | |
7329 | * symtab.c (lookup_symtab): | |
7330 | * serial.h (struct serial_ops): | |
7331 | * mipsread.c (read_alphacoff_dynamic_symtab): | |
7332 | * infcmd.c (print_return_value): | |
7333 | * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): | |
7334 | * f-exp.y (parse_number): | |
7335 | * exceptions.c (catch_exceptions): | |
7336 | * dummy-frame.c (dummy_frame_this_id): | |
7337 | * defs.h (struct cleanup): | |
7338 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): | |
7339 | * arm-tdep.c (arm_push_dummy_call): | |
7340 | * amd64-tdep.h (amd64_collect_xsave): | |
7341 | * amd64-tdep.c (amd64_collect_xsave): | |
7342 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): | |
7343 | * README (typing): Remove duplicate words. | |
7344 | * cli/cli-decode.c (lookup_cmd_composition): Add comma. | |
7345 | * infrun.c (siginfo_value_read): Fix typo. | |
7346 | * solib-frv.c (frv_fdpic_find_global_pointer): Likewise. | |
7347 | * top.c (source_line_number): Add comma. | |
7348 | ||
9941e0c5 MK |
7349 | 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com> |
7350 | ||
7351 | * thread.c (any_live_thread_of_process): Prioritize threads | |
7352 | that are not executing. | |
7353 | * gdbthread.h (any_live_thread_of_process): Update comment | |
7354 | as per above change. | |
7355 | ||
ed4b0e6a AS |
7356 | 2011-04-19 Andreas Schwab <schwab@linux-m68k.org> |
7357 | ||
7358 | * xcoffread.c (process_xcoff_symbol): Remove useless cast. | |
7359 | (scan_xcoff_symtab): Likewise. | |
7360 | ||
9b13a2db PM |
7361 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
7362 | ||
7363 | * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment | |
7364 | inside if clause. | |
7365 | ||
1c6e1b0d PM |
7366 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
7367 | Pedro Alves <pedro@codesourcery.com> | |
7368 | ||
7369 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local | |
7370 | variables to simplify code and avoid == operator at end of | |
7371 | line as this is against GNU coding standards. | |
7372 | ||
74de0234 PM |
7373 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
7374 | ||
7375 | * solib-svr4.c (svr4_keep_data_in_core): Rename local variable | |
7376 | lm_name to name_lm to avoid conflict with lm_name function. | |
7377 | ||
b23518f0 PM |
7378 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
7379 | ||
7380 | ARI fixes: Use only lowercase function name for static functions. | |
7381 | * nto-tdep.c (LM_ADDR): Rename to... | |
7382 | (lm_addr): New function name. | |
7383 | (nto_relocate_section_addresses): Adapt to change above. | |
7384 | * solib-sunos.c (LM_ADDR): Rename to... | |
7385 | (lm_addr): New function name. | |
7386 | (LM_NEXT): Rename to... | |
7387 | (lm_next): New function name. | |
7388 | (sunos_current_sos, sunos_relocate_section_addresses): Adapt to | |
7389 | function name changes above. | |
7390 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to... | |
7391 | (lm_addr_from_link_map): New function name. | |
7392 | (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
7393 | (has_lm_dynamic_from_link_map): New function name. | |
7394 | (LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
7395 | (lm_dynamic_from_link_map): New function name. | |
7396 | (LM_ADDR_CHECK): Rename to... | |
7397 | (lm_addr_check): New function name. | |
7398 | (LM_NEXT): Rename to... | |
7399 | (lm_next): New function name. | |
7400 | (LM_PREV): Rename to... | |
7401 | (lm_prev): New function name. | |
7402 | (LM_NAME): Rename to... | |
7403 | (lm_name): New function name. | |
7404 | (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to... | |
7405 | (ignore_first_link_map_entry): New function name. | |
7406 | (svr4_keep_data_in_core): Adapt to function name changes above. | |
7407 | (svr4_current_sos): Likewise. | |
7408 | (enable_break): Likewise. | |
7409 | (svr4_relocate_section_addresses): Likewise. | |
7410 | ||
1448a0a2 PM |
7411 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
7412 | ||
7413 | ARI cleanup. | |
7414 | * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of | |
7415 | sprintf. Simplify code and avoid loosing memory. | |
7416 | (xtensa_register_reggroup_p): Extract assignment out of IF clause. | |
7417 | (call0_frame_cache): Remove && operator from end of line. | |
7418 | ||
02835898 JK |
7419 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7420 | ||
7421 | Fix libraries displacement if they change whether they were prelinked. | |
7422 | * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer | |
7423 | does not match. Comment why. | |
7424 | ||
9a845ea2 JK |
7425 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7426 | ||
7427 | * corelow.c: Include wrapper.h. | |
7428 | (core_open): Call now gdb_target_find_new_threads. | |
7429 | * wrapper.c: Include target.h. | |
7430 | (gdb_target_find_new_threads): New. | |
7431 | * wrapper.h (gdb_target_find_new_threads): New declaration. | |
7432 | ||
254f582e JK |
7433 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7434 | ||
7435 | * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID | |
7436 | even if !TARGET_HAS_EXECUTION. | |
7437 | ||
63524580 JK |
7438 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7439 | ||
7440 | Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip. | |
7441 | * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to | |
7442 | bfd_get_synthetic_symtab. | |
7443 | * jit.c (jit_register_code): Pass NULL to the new parameter parent. | |
7444 | * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new | |
7445 | parameter parent, remove the call to add_separate_debug_objfile. | |
7446 | * solib.c (solib_read_symbols): Pass NULL to the new parameter parent. | |
7447 | * symfile-mem.c (symbol_file_add_from_memory): Likewise. | |
7448 | * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter | |
7449 | parent, new comment for it, call add_separate_debug_objfile for it. | |
7450 | (symbol_file_add_separate): Pass objfile as the parameter parent, | |
7451 | remove the call to add_separate_debug_objfile. | |
7452 | (symbol_file_add_from_bfd): New parameter parent, pass it. | |
7453 | (symbol_file_add): Pass NULL to the new parameter parent. | |
7454 | * symfile.h (symbol_file_add_from_bfd): New parameter parent. | |
7455 | ||
90359a16 JK |
7456 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7457 | ||
7458 | * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are | |
7459 | BSF_SYNTHETIC. | |
7460 | ||
626e7282 JK |
7461 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7462 | ||
7463 | Fix Python access to inlined frames. | |
7464 | * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block. | |
7465 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
7466 | ||
cf31e6f9 TT |
7467 | 2011-04-15 Tom Tromey <tromey@redhat.com> |
7468 | ||
7469 | * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length. | |
7470 | ||
c8d895f1 GB |
7471 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
7472 | ||
7473 | * MAINTAINERS: Add myself to write-after-approval section. | |
7474 | ||
56a9aa1d MF |
7475 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
7476 | ||
7477 | * remote-sim.c (sim_command_completer): New function. | |
7478 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
7479 | ||
ba770c9c TJB |
7480 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7481 | ||
7482 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
7483 | (print_it_exception_catchpoint): ... this. | |
7484 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
7485 | for print_it_exception_catchpoint. | |
7486 | ||
51bf2553 EBM |
7487 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
7488 | ||
7489 | * MAINTAINERS: Add myself for write after approval privileges. | |
7490 | ||
d242658c MP |
7491 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
7492 | ||
7493 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
7494 | ||
4a4106ca TJB |
7495 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7496 | ||
7497 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
7498 | ||
26063d49 TJB |
7499 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7500 | ||
7501 | * breakpoint.c (save_breakpoints): Verify whether | |
7502 | breakpoint_ops.print_recreate is defined before calling it. | |
7503 | ||
7782b183 GB |
7504 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
7505 | ||
7506 | Fix failure with --enable-maintainer-mode. | |
7507 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
7508 | ||
e8930875 JK |
7509 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
7510 | ||
7511 | Code cleanup. | |
7512 | * symtab.c (search_symbols): Reorder the KIND description in the | |
7513 | function comment. Remove the unused 4th element of types, types2, | |
7514 | types3 and types4. New gdb_assert on KIND. | |
7515 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
7516 | New gdb_assert on KIND. | |
7517 | * symtab.h (enum search_domain): New warning in the enum comment. | |
7518 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
7519 | TYPES_DOMAIN. | |
7520 | ||
b4f2f049 JK |
7521 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
7522 | ||
7523 | Fix crash of gdb save-index on a STABS file. | |
7524 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
7525 | PSYMTABS_ADDRMAP. | |
7526 | ||
60d5a603 JK |
7527 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
7528 | ||
7529 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
7530 | * dwarf2read.c: Include ctype.h. | |
7531 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
7532 | functions. | |
7533 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
7534 | dwarf2_default_access_attribute. Restructure setting accessibility | |
7535 | vs. virtuality. | |
7536 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
7537 | is_private and is_protected by calling | |
7538 | dwarf2_default_access_attribute. | |
7539 | ||
e0f68161 KB |
7540 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
7541 | ||
7542 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
7543 | to the initialization. | |
7544 | ||
2e1aae43 SE |
7545 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
7546 | ||
7547 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
7548 | initalization. | |
7549 | ||
c6ca3dab PM |
7550 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
7551 | ||
7552 | Remove support for old Cygwin 1.5 versions. | |
7553 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
7554 | function on old Cygwin version. | |
7555 | * windows-nat.c: Remove cygwin version check and always define | |
7556 | __USEWIDE for Cygwin compilation. | |
7557 | ||
bd18283a YQ |
7558 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
7559 | ||
7560 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
7561 | and TO. | |
7562 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
7563 | (arm_copy_svc): Remove parameters INSN and TO. | |
7564 | (decode_svc_copro): Update caller. | |
7565 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
7566 | from function pointer `copy_svc_os'. | |
7567 | ||
8c8dba6d YQ |
7568 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
7569 | ||
7570 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
7571 | LR for ARM and Thumb. | |
7572 | ||
59d7bcaf JK |
7573 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
7574 | ||
7575 | Code cleanup. | |
7576 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
7577 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
7578 | in the function comment, a new note on values compatibility. | |
7579 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
7580 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
7581 | ||
e7db58ea TJB |
7582 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7583 | ||
7584 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
7585 | Set it based on the memory region referenced in the condition | |
7586 | expression. Update all callers. | |
7587 | ||
9f743ef6 JK |
7588 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
7589 | ||
7590 | Fix crash regression on systems featuring .gdb_index. | |
7591 | * objfiles.c (free_objfile): Move the | |
7592 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
7593 | Extend the comment for objfile_free_data. | |
7594 | ||
9182c5bc JK |
7595 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
7596 | ||
7597 | Fix regression of displaying the debug format. | |
7598 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
7599 | subfile. | |
7600 | ||
04bd08de TT |
7601 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7602 | ||
7603 | * cli/cli-interp.c (struct captured_execute_command_args): | |
7604 | Remove. | |
7605 | (do_captured_execute_command): Remove. | |
7606 | (safe_execute_command): Use TRY_CATCH. | |
7607 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
7608 | Remove. | |
7609 | (wrapped_read_command_file): Remove. | |
7610 | (script_from_file): Use TRY_CATCH. | |
7611 | * exceptions.c (catch_exception): Remove. | |
7612 | * exceptions.h (catch_exception): Remove. | |
7613 | (deprecated_throw_reason): Update comment. | |
7614 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
7615 | argument to 'context'. | |
7616 | (mi_execute_command): Use TRY_CATCH. | |
7617 | * remote.c (struct start_remote_args): Remove. | |
7618 | (remote_start_remote): Update; change arguments. | |
7619 | (remote_open_1): Use TRY_CATCH. | |
7620 | ||
58438ac1 TT |
7621 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7622 | ||
7623 | * tracepoint.c (scope_info): Update. | |
7624 | * symtab.c (decode_line_spec): Update. | |
7625 | * python/python.c (gdbpy_decode_line): Update. | |
7626 | * linespec.h (decode_line_1): Update. | |
7627 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
7628 | (decode_compound, find_method, symtab_from_filename) | |
7629 | (decode_variable): Likewise. | |
7630 | * cli/cli-cmds.c (edit_command): Update. | |
7631 | (list_command): Update. | |
7632 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
7633 | argument. | |
7634 | (create_breakpoint): Update. | |
7635 | (until_break_command): Update. | |
7636 | (addr_string_to_sals): Update. | |
7637 | (decode_line_spec_1): Update. | |
7638 | ||
b78a6381 TT |
7639 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7640 | ||
7641 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
7642 | (do_captured_parse_breakpoint): Remove. | |
7643 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
7644 | Use TRY_CATCH directly. | |
7645 | ||
00174a86 TT |
7646 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7647 | ||
7648 | * symtab.h (free_symtab): Remove. | |
7649 | (forget_cached_source_info_for_objfile): Declare. | |
7650 | * symmisc.c (free_symtab): Remove. | |
7651 | * source.c (forget_cached_source_info_for_objfile): New function. | |
7652 | (forget_cached_source_info): Use it. | |
7653 | * objfiles.c (free_objfile): Simplify check before calling | |
7654 | clear_current_source_symtab_and_line. Call | |
7655 | forget_cached_source_info_for_objfile. | |
7656 | ||
30cc903e TT |
7657 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7658 | ||
7659 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
7660 | (new_symtab): Don't set `free_code' on symtab. | |
7661 | (new_linetable): Properly handle size==0. | |
7662 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
7663 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
7664 | free_func. | |
7665 | * jv-lang.c (struct jv_per_objfile_data): New. | |
7666 | (jv_per_objfile_free): Free the data. | |
7667 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
7668 | (get_java_class_symtab): Set the `dict' field on the | |
7669 | jv_per_objfile_data. | |
7670 | (free_class_block): Remove. | |
7671 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
7672 | the symtab. | |
7673 | ||
0c2e6019 TT |
7674 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7675 | ||
7676 | * symfile.c (reread_symbols): Update. | |
7677 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
7678 | field. | |
7679 | * objfiles.c (allocate_objfile): Update. | |
7680 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
7681 | declare. | |
7682 | * cp-namespace.c (lookup_symbol_file): Don't call | |
7683 | lookup_possible_namespace_symbol. | |
7684 | (initialize_namespace_symtab, get_possible_namespace_block) | |
7685 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
7686 | (check_possible_namespace_symbols_loop) | |
7687 | (check_one_possible_namespace_symbol) | |
7688 | (lookup_possible_namespace_symbol): Remove. | |
7689 | (maintenance_cplus_namespace): Replace with notice. | |
7690 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
7691 | ||
554d387d TT |
7692 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7693 | ||
7694 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
7695 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
7696 | * symmisc.c (free_symtab): Don't free debugformat. | |
7697 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
7698 | (record_debugformat, record_producer): Document. | |
7699 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
7700 | names on obstack. | |
7701 | (end_symtab): Don't free debugformat and producer fields. | |
7702 | (record_debugformat): Don't call xstrdup. | |
7703 | (record_producer): Likewise. | |
7704 | ||
d4d4db8a TT |
7705 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7706 | ||
7707 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
7708 | (source_line_charpos, source_charpos_line): Remove. | |
7709 | ||
8903c50d TT |
7710 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
7711 | ||
7712 | * symtab.h (domain_enum): Split in two... | |
7713 | (enum search_domain): New. | |
7714 | (search_symbols): Update. | |
7715 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
7716 | redundant declarations. | |
7717 | (search_symbols): Change 'kind' argument to search_domain. | |
7718 | Update. | |
7719 | (print_symbol_info): Likewise. | |
7720 | (symtab_symbol_info): Likewise. | |
7721 | * symfile.h (struct quick_symbol_functions) | |
7722 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
7723 | <expand_symtabs_matching>: Likewise. | |
7724 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
7725 | (expand_symtabs_matching_via_partial): Update. | |
7726 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
7727 | (dw2_expand_symtabs_for_function): Update. | |
7728 | * block.h: Moved anonymous enum... | |
7729 | * defs.h (enum block_enum): ... here. Now named. | |
7730 | ||
d9351f5f | 7731 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
7732 | ||
7733 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
7734 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
7735 | ||
d6e00af6 JB |
7736 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
7737 | ||
7738 | * NEWS: Create a new section for the next release branch. | |
7739 | Rename the section of the current branch, now that it has | |
7740 | been cut. | |
7741 | ||
2b9e5ea6 UW |
7742 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
7743 | ||
7744 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
7745 | for "fpscr" in target description. | |
7746 | ||
0cf03b49 JK |
7747 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7748 | ||
7749 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
7750 | initialize it. Delay HASH initialization. Strip the part after open | |
7751 | parenthesis for languages with qualifiers. Call do_cleanups. | |
7752 | ||
5d901a73 TT |
7753 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
7754 | ||
7755 | * utils.c (report_command_stats): Don't print `-' for negative | |
7756 | number. | |
7757 | ||
b0dd7688 JB |
7758 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
7759 | ||
7760 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
7761 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
7762 | typedefs. | |
7763 | ||
956a9fb9 JB |
7764 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
7765 | ||
7766 | * breakpoint.h (bpdisp_text): Add declaration. | |
7767 | * breakpoint.c (bpdisp_text): Make non-static. | |
7768 | * ada-lang.c: #include "mi/mi-common.h". | |
7769 | (print_it_exception): Rewrite to improve GDB/MI output. | |
7770 | ||
3352110b PA |
7771 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
7772 | ||
7773 | * arm-tdep.h (struct address_space): Add forward declaration. | |
7774 | ||
18819fa6 UW |
7775 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
7776 | ||
7777 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
7778 | * arm-tdep.c (arm_override_mode): New global. | |
7779 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
7780 | execution mode heuristics. | |
7781 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
7782 | second single-step breakpoint if needed, using | |
7783 | arm_insert_single_step_breakpoint. | |
7784 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
7785 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
7786 | (arm_get_next_pc): Encode execution mode in return value. Call | |
7787 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
7788 | (arm_insert_single_step_breakpoint): New function. | |
7789 | (arm_software_single_step): Call it. | |
7790 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
7791 | argument to return execution mode of sigreturn target. | |
7792 | (arm_linux_syscall_next_pc): Use it. | |
7793 | (arm_linux_copy_svc): Update call. | |
7794 | (arm_linux_software_single_step): Call | |
7795 | arm_insert_single_step_breakpoint. | |
7796 | ||
a6e293d1 JK |
7797 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
7798 | ||
7799 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
7800 | the comment. | |
7801 | ||
a4c8e806 TT |
7802 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
7803 | ||
7804 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
7805 | errors from iterator. | |
7806 | ||
df5c6c50 JK |
7807 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
7808 | ||
7809 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
7810 | struct linkage name twice. | |
7811 | ||
1dae3efc TT |
7812 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
7813 | ||
7814 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
7815 | missing ">" to message. | |
7816 | ||
f4f7ab05 TT |
7817 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
7818 | ||
7819 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
7820 | 'return'. | |
7821 | ||
fcf250e2 UW |
7822 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
7823 | ||
7824 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
7825 | if neither saved value nor register available (e.g. signal frame). | |
7826 | ||
ee6436e3 TJB |
7827 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7828 | ||
7829 | * macroexp.c (expand): Avoid uninitialized variable | |
7830 | compiler warning. | |
7831 | ||
423f41a5 TJB |
7832 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7833 | ||
7834 | * breakpoint.c (break_range_command): Fix typo in comment. | |
7835 | ||
f1310107 TJB |
7836 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7837 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
7838 | ||
7839 | Implement support for PowerPC BookE ranged breakpoints. | |
7840 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
7841 | * breakpoint.h (struct bp_target_info) <length>: New member | |
7842 | variable. | |
7843 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
7844 | instead of struct breakpoint as argument, and also add ASPACE | |
7845 | and BP_ADDR arguments. Update all callers. | |
7846 | (struct breakpoint_ops) <print_one_detail>: New method. | |
7847 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
7848 | * breakpoint.c (breakpoint_location_address_match): Add function | |
7849 | prototype. | |
7850 | (insert_bp_location): Set bl->target_info.length. | |
7851 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
7852 | (moribund_breakpoint_here_p): Likewise. | |
7853 | (regular_breakpoint_inserted_here_p): Likewise. | |
7854 | (breakpoint_thread_match): Likewise. | |
7855 | (bpstat_stop_status): Likewise. | |
7856 | (bpstat_check_location): Move call to | |
7857 | breakpoint_ops.breakpoint_hit to the top. | |
7858 | (print_one_breakpoint_location): Call | |
7859 | breakpoint_ops.print_one_detail if available. | |
7860 | (breakpoint_address_match_range): New function. | |
7861 | (breakpoint_location_address_match): Likewise. | |
7862 | (breakpoint_locations_match): Compare the length field of the | |
7863 | locations too. | |
7864 | (hw_breakpoint_used_count): Count resources used by all locations | |
7865 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
7866 | available. | |
7867 | (breakpoint_hit_ranged_breakpoint): New function. | |
7868 | (resources_needed_ranged_breakpoint): Likewise. | |
7869 | (print_it_ranged_breakpoint): Likewise. | |
7870 | (print_one_ranged_breakpoint): Likewise. | |
7871 | (print_one_detail_ranged_breakpoint): Likewise. | |
7872 | (print_mention_ranged_breakpoint): Likewise. | |
7873 | (print_recreate_ranged_breakpoint): Likewise. | |
7874 | (ranged_breakpoint_ops): New structure. | |
7875 | (find_breakpoint_range_end): New function. | |
7876 | (break_range_command): Likewise. | |
7877 | (delete_breakpoint): Free addr_string_range_end. | |
7878 | (update_breakpoint_locations): Add SALS_END argument. Update | |
7879 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
7880 | is given. Call breakpoint_locations_match instead of | |
7881 | breakpoint_address_match. | |
7882 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
7883 | ranged breakpoint. | |
7884 | (_initialize_breakpoint): Register break-range command. | |
7885 | * defs.h (print_core_address): Add function prototype. | |
7886 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
7887 | function. | |
7888 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
7889 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
7890 | (_initialize_ppc_linux_nat): Initialize | |
7891 | to_ranged_break_num_registers. | |
7892 | * target.c (update_current_target): Add comment about | |
7893 | to_ranged_break_num_registers. | |
7894 | (target_ranged_break_num_registers): New function. | |
7895 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
7896 | New method. | |
7897 | (target_ranged_break_num_registers): Add function prototype. | |
7898 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
7899 | * utils.c (print_core_address): ... here. | |
7900 | ||
02d20e4a UW |
7901 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
7902 | ||
7903 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
7904 | variable compiler warning. | |
7905 | ||
ef23e705 TJB |
7906 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
7907 | ||
7908 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
7909 | code from here ... | |
7910 | (re_set_breakpoint): ... to here ... | |
7911 | (addr_string_to_sals): ... and here. | |
7912 | ||
311e6ab3 PM |
7913 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
7914 | ||
7915 | * Makefile.in (SFILES): Add missing C sources. | |
7916 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
7917 | Add missing headers. | |
7918 | ||
acd1d99c MF |
7919 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
7920 | ||
7921 | * .gitignore: New file. | |
7922 | ||
66ee2731 MF |
7923 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
7924 | ||
7925 | * NEWS: Mention new cfi device simulation. | |
7926 | ||
53832f31 TT |
7927 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
7928 | ||
7929 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
7930 | otherwise anonymous types. | |
7931 | (dwarf2_name): Likewise. | |
7932 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
7933 | type logic. Call error if j==-1. | |
7934 | ||
09b58708 JK |
7935 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
7936 | ||
7937 | Fix false GCC warning. | |
7938 | * infcall.c (find_function_addr): Initialize funaddr. | |
7939 | ||
6023c606 PM |
7940 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
7941 | ||
7942 | Fix mingw compilation with --enable-targets=all. | |
7943 | * remote-mips.c (gdb_usleep.h): Include header. | |
7944 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
7945 | ||
0e30163f JK |
7946 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7947 | ||
7948 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
7949 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
7950 | bp_gnu_ifunc_resolver_return. | |
7951 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
7952 | the loop. Support bp_gnu_ifunc_resolver and | |
7953 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
7954 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
7955 | breakpoints. | |
7956 | (bptype_string, print_one_breakpoint_location): Support | |
7957 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
7958 | (user_settable_breakpoint): Return true also for | |
7959 | bp_gnu_ifunc_resolver. | |
7960 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
7961 | bp_gnu_ifunc_resolver_return. | |
7962 | (set_breakpoint_location_function): New parameter explicit_loc, | |
7963 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
7964 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
7965 | EXPLICIT_LOC is not set. | |
7966 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
7967 | set_breakpoint_location_function. | |
7968 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
7969 | set_breakpoint_location_function. | |
7970 | (mention): Support bp_gnu_ifunc_resolver and | |
7971 | bp_gnu_ifunc_resolver_return. | |
7972 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
7973 | set_breakpoint_location_function. | |
7974 | (update_breakpoint_locations): Remove static. | |
7975 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
7976 | bp_gnu_ifunc_resolver_return. | |
7977 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
7978 | bp_gnu_ifunc_resolver_return. | |
7979 | (update_breakpoint_locations): New declaration. | |
7980 | * elfread.c: Include gdbthread.h and regcache.h. | |
7981 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
7982 | functions. | |
7983 | (elf_gnu_ifunc_fns): Install them. | |
7984 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
7985 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
7986 | (stub_gnu_ifunc_fns): Install them. | |
7987 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
7988 | and gnu_ifunc_resolver_return_stop. | |
7989 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
7990 | ||
07be84bf JK |
7991 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
7992 | ||
7993 | STT_GNU_IFUNC reader implementation. | |
7994 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
7995 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
7996 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
7997 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
7998 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
7999 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
8000 | (elf_gnu_ifunc_resolve_addr): New. | |
8001 | (elf_symfile_read): Call elf_rel_plt_read. | |
8002 | (elf_gnu_ifunc_fns): New. | |
8003 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
8004 | Install elf_gnu_ifunc_fns. | |
8005 | * infcall.c (find_function_return_type): New function. | |
8006 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
8007 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
8008 | (stub_gnu_ifunc_resolve_name): New functions. | |
8009 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
8010 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
8011 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
8012 | ||
300f8e10 JK |
8013 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8014 | ||
8015 | Code cleanup for later STT_GNU_IFUNC support. | |
8016 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
8017 | dereferences for it. Move VALUE_TYPE initialization later. | |
8018 | ||
11c81455 JK |
8019 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8020 | ||
8021 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
8022 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
8023 | (clear_pc_function_cache): Clear it. | |
8024 | (find_pc_partial_function): Rename to ... | |
8025 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
8026 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
8027 | (find_pc_partial_function): New wrapper for this function. | |
8028 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
8029 | ||
0875794a JK |
8030 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8031 | ||
8032 | GDB internal type support for STT_GNU_IFUNC. | |
8033 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
8034 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
8035 | BSF_GNU_INDIRECT_FUNCTION. | |
8036 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
8037 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
8038 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
8039 | nodebug_got_plt_symbol. | |
8040 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
8041 | (TYPE_GNU_IFUNC): New. | |
8042 | (struct main_type): New field flag_gnu_ifunc. | |
8043 | (struct builtin_type): New field builtin_func_func. | |
8044 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
8045 | nodebug_got_plt_symbol. | |
8046 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
8047 | (in_gnu_ifunc_stub): New. | |
8048 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
8049 | mst_text_gnu_ifunc. | |
8050 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
8051 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
8052 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
8053 | in_gnu_ifunc_stub. | |
8054 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
8055 | * symtab.c (search_symbols): Likewise. | |
8056 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
8057 | and mst_slot_got_plt. | |
8058 | (in_gnu_ifunc_stub): New declaration. | |
8059 | ||
d0fb5eae JK |
8060 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8061 | ||
8062 | Support a ring of related breakpoints. | |
8063 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
8064 | other functions, add gdb_assert. | |
8065 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
8066 | watchpoint_del_at_next_stop. | |
8067 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
8068 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
8069 | (set_raw_breakpoint_without_location): Initialize ring in | |
8070 | related_breakpoint. | |
8071 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
8072 | watchpoint_del_at_next_stop. | |
8073 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
8074 | ||
9cded63f TT |
8075 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
8076 | ||
8077 | PR symtab/12441: | |
8078 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
8079 | with `language_minimal'. | |
8080 | ||
467d42c4 UW |
8081 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
8082 | ||
8083 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
8084 | instead of checking for STT_ARM_TFUNC symbol type. | |
8085 | ||
62853458 TT |
8086 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
8087 | ||
8088 | * linespec.c (symbol_found): Restore line-based result for | |
8089 | non-LOC_LABEL symbols. | |
8090 | ||
a7417d46 KT |
8091 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
8092 | ||
8093 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
8094 | instead of strcmp for comparison. | |
8095 | (tui_source_is_displayed): Likewise. | |
8096 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
8097 | ||
55f1336d TT |
8098 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
8099 | ||
f33edef8 PP |
8100 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in |
8101 | complaint. | |
8102 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
8103 | (find_partial_die_in_comp_unit): Likewise in comment. | |
8104 | (read_attribute_value): Likewise. | |
8105 | (lookup_die_type): Likewise. | |
8106 | (dwarf_form_name): Likewise. | |
8107 | (dump_die_shallow): Likewise. | |
8108 | (follow_die_ref_or_sig): Likewise. | |
55f1336d | 8109 | |
9ef07c8c TT |
8110 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
8111 | ||
8112 | PR breakpoints/11816: | |
8113 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
8114 | (decode_compound): Update. | |
8115 | (find_function_symbol): New function. | |
8116 | (decode_dollar): Update. | |
8117 | (decode_label): Add 'function_symbol' parameter. Handle | |
8118 | function-relative labels. | |
8119 | (decode_variable): Update. | |
8120 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
8121 | not its line. Set `special_display' and canonical name for | |
8122 | labels. | |
8123 | ||
56435ebe TT |
8124 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
8125 | ||
8126 | * linespec.h (struct linespec_result) <special_display>: New | |
8127 | field. | |
8128 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
8129 | field. | |
8130 | * breakpoint.c (print_breakpoint_location): Respect | |
8131 | display_canonical. | |
8132 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
8133 | (create_breakpoints_sal): Update. | |
8134 | (create_breakpoint): Update. | |
8135 | ||
7efd8fc2 TT |
8136 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
8137 | ||
8138 | * symtab.c (decode_line_spec): Update. | |
8139 | * linespec.c (build_canonical_line_spec): Change type of | |
8140 | 'canonical'. | |
8141 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
8142 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
8143 | (symbol_found): Likewise. | |
8144 | (init_linespec_result): New function. | |
8145 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
8146 | <canonical_p>: New field, replaces addr_string_p. | |
8147 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
8148 | 'addr_string'. | |
8149 | (parse_breakpoint_sals): Likewise. | |
8150 | (do_captured_parse_breakpoint): Update. | |
8151 | (create_breakpoint): Use struct linespec_result. | |
8152 | (until_break_command): Update. | |
8153 | (breakpoint_re_set_one): Update. | |
8154 | (decode_line_spec_1): Update. | |
8155 | * linespec.h (struct linespec_result): New. | |
8156 | (init_linespec_result): Declare. | |
8157 | ||
788c8b10 PA |
8158 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
8159 | ||
8160 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
8161 | given raw register, mark it as unavailable. | |
8162 | ||
0ba1096a KT |
8163 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
8164 | ||
8165 | * breakpoint.c (clear_command): Use filename_cmp | |
8166 | instead of strcmp for comparison. | |
8167 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
8168 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
8169 | checking just for slash. | |
8170 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
8171 | strrchr and filename_cmp instead of strcmp for filenames. | |
8172 | (add_old_header_file): Use filename_cmp | |
8173 | instead of strcmp for comparison. | |
8174 | * exec.c (exec_set_section_address): Likewise. | |
8175 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
8176 | (macro_lookup_inclusion): Likewise. | |
8177 | * elfread.c (_initialize_elfread): Likewise. | |
8178 | (elfstab_offset_sections): Likewise. | |
8179 | (elfstab_offset_sections): Use lbasename instead of | |
8180 | strrchr. | |
8181 | * mdebugread.c (parse_partial_symbols): Likewise. | |
8182 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
8183 | str(n)cmp for comparison. | |
8184 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
8185 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
8186 | * solib.c (solib_read_symbols): Likewise. | |
8187 | (reload_shared_libraries_1): Likewise. | |
8188 | * symmisc.c (maintenance_print_symbols): Likewise. | |
8189 | * symfile.c (separate_debug_file_exists): Likewise. | |
8190 | (reread_symbols): Likewise. | |
8191 | (find_separate_debug_file_by_debuglink): Likewise. | |
8192 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
8193 | * source.c (add_path): Likewise. | |
8194 | * symtab.c (filename_seen): Likewise. | |
8195 | (file_matches): Likewise. | |
8196 | (print_symbol_info): Likewise. | |
8197 | (maybe_add_partial_symtab_filename): Likewise. | |
8198 | (make_source_files_completion_list): Likewise. | |
8199 | * xml-syscall.c (init_sysinfo): Likewise. | |
8200 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
8201 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
8202 | ||
dd90784c JK |
8203 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
8204 | ||
8205 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
8206 | label abort_expression. | |
8207 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
8208 | DWARF_VALUE_OPTIMIZED_OUT. | |
8209 | ||
3167638f JK |
8210 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
8211 | ||
8212 | Code cleanup. | |
8213 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
8214 | to linkage_name. Invert its value. Update the function comment. | |
8215 | (c_type_print_varspec_suffix): Invert it at the caller. | |
8216 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
8217 | ||
ce406537 PA |
8218 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
8219 | ||
8220 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
8221 | errors when reading the `stop_pc'. | |
8222 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
8223 | get_frame_pc. | |
8224 | ||
da5d4055 PM |
8225 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
8226 | ||
8227 | * NEWS: Document gdb.Write stream keyword. | |
8228 | ||
29e0eb9c JK |
8229 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
8230 | ||
8231 | Revert: | |
8232 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
8233 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
8234 | (dwarf2_add_field): Fix new_field->accessibility for | |
8235 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
8236 | ||
05775840 PM |
8237 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
8238 | ||
f33edef8 | 8239 | PR python/12183 |
05775840 PM |
8240 | |
8241 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
8242 | other error classes. Do not print stack trace. | |
8243 | ||
a0cb7835 JK |
8244 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
8245 | ||
8246 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
8247 | (dwarf2_add_field): Fix new_field->accessibility for | |
8248 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
8249 | ||
d19f7eee UW |
8250 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
8251 | ||
8252 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
8253 | encountering a load via a non-SP register. | |
8254 | ||
4a2fbb50 UW |
8255 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
8256 | ||
8257 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
8258 | field in returned unwinder. | |
8259 | ||
3489610d JB |
8260 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
8261 | ||
8262 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
8263 | ||
8c1a34e7 JB |
8264 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
8265 | ||
8266 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
8267 | of xmalloc. | |
8268 | ||
8fbca658 PA |
8269 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
8270 | ||
8271 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
8272 | register failed. | |
8273 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
8274 | an unwind stop reason. | |
8275 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
8276 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
8277 | UNWIND_UNAVAILABLE>: New. | |
8278 | * inline-frame.c (inline_frame_unwind): Install | |
8279 | default_frame_unwind_stop_reason. | |
8280 | * frame-unwind.c: Include "exceptions.h". | |
8281 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
8282 | (default_frame_unwind_stop_reason): New. | |
8283 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
8284 | (default_frame_unwind_stop_reason): Declare. | |
8285 | (struct frame_unwind) <stop_reason>: New function pointer. | |
8286 | ||
8287 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
8288 | * dwarf2-frame.c: Include exceptions.h. | |
8289 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
8290 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
8291 | computing the CFA. If such an error was thrown, set | |
8292 | unavailable_retaddr. | |
8293 | (dwarf2_frame_unwind_stop_reason): New. | |
8294 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
8295 | unavailable. | |
8296 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
8297 | (dwarf2_signal_frame_unwind): Ditto. | |
8298 | ||
8299 | * amd64-tdep.c: Include "exceptions.h". | |
8300 | (struct amd64_frame_cache): New field "base_p". | |
8301 | (amd64_init_frame_cache): Clear it. | |
8302 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
8303 | Avoid reading registers with functions that throw if the register | |
8304 | is not necessary to compute the frame base. | |
8305 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
8306 | swallowing NOT_AVAILABLE_ERROR. | |
8307 | (amd64_frame_unwind_stop_reason): New. | |
8308 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
8309 | was unavailable. | |
8310 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
8311 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
8312 | base_p if the frame base was computable. | |
8313 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
8314 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
8315 | frame base was unavailable. | |
8316 | (amd64_sigtramp_frame_unwind): Install | |
8317 | amd64_sigtramp_frame_unwind_stop_reason. | |
8318 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
8319 | base_p if the frame base was computable. | |
8320 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
8321 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
8322 | frame base was unavailable. | |
8323 | (amd64_epilogue_frame_unwind): Install | |
8324 | amd64_epilogue_frame_unwind_stop_reason. | |
8325 | * i386-tdep.c: Include "exceptions.h". | |
8326 | (struct i386_frame_cache): New field "base_p". | |
8327 | (i386_init_frame_cache): Clear it. | |
8328 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
8329 | Avoid reading registers with functions that throw if the register | |
8330 | is not necessary to compute the frame base. | |
8331 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
8332 | swallowing NOT_AVAILABLE_ERROR. | |
8333 | (i386_frame_unwind_stop_reason): New. | |
8334 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
8335 | unavailable. | |
8336 | (i386_frame_prev_register): Handle unavailable SP. | |
8337 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
8338 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
8339 | base_p if the frame base was computable. | |
8340 | (i386_epilogue_frame_unwind_stop_reason): New. | |
8341 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
8342 | base was unavailable. | |
8343 | (i386_epilogue_frame_unwind): Install | |
8344 | i386_epilogue_frame_unwind_stop_reason. | |
8345 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
8346 | base_p if the frame base was computable. | |
8347 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
8348 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
8349 | base was unavailable. | |
8350 | (i386_sigtramp_frame_unwind): Install | |
8351 | i386_sigtramp_frame_unwind_stop_reason. | |
8352 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
8353 | type's size, not the register's. | |
8354 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
8355 | ||
8356 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
8357 | default_frame_unwind_stop_reason. | |
8358 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
8359 | (alpha_heuristic_frame_unwind): Ditto. | |
8360 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
8361 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
8362 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
8363 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
8364 | Ditto. | |
8365 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
8366 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
8367 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
8368 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
8369 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
8370 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
8371 | (hppa_stub_frame_unwind): Ditto. | |
8372 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
8373 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
8374 | (ia64_libunwind_frame_unwind) | |
8375 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
8376 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
8377 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
8378 | * m32c-tdep.c (m32c_unwind): Ditto. | |
8379 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
8380 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
8381 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
8382 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
8383 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
8384 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
8385 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
8386 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
8387 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
8388 | (mips_stub_frame_unwind): Ditto. | |
8389 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
8390 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
8391 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
8392 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
8393 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
8394 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
8395 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
8396 | (s390_sigtramp_frame_unwind): Ditto. | |
8397 | * score-tdep.c (score_prologue_unwind): Ditto. | |
8398 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
8399 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
8400 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
8401 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
8402 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
8403 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
8404 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
8405 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
8406 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
8407 | (sparc64obsd_trapframe_unwind): Ditto. | |
8408 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
8409 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
8410 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
8411 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
8412 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
8413 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
8414 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
8415 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
8416 | ||
f23d1b92 PA |
8417 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8418 | ||
8419 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
8420 | there's always a frame. Use get_frame_pc_if_available instead of | |
8421 | get_frame_pc, and if there's no PC available, don't look up a | |
8422 | symtab. | |
8423 | ||
1d4f5741 PA |
8424 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8425 | ||
8426 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
8427 | unavailable PC. | |
8428 | ||
dba09041 PA |
8429 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8430 | ||
8431 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
8432 | gracefully. | |
8433 | ||
9a26e44c PA |
8434 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8435 | ||
8436 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
8437 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
8438 | * stack.c (frame_info): Handle unavailable PC. | |
8439 | ||
8440 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
8441 | ||
8442 | * frame.c (frame_unwind_pc): Rename to ... | |
8443 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
8444 | parameter. Change return type to int. Gracefully handle | |
8445 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
8446 | happened, or 1 otherwise. | |
8447 | (frame_unwind_pc): Reimplement on top of | |
8448 | frame_unwind_pc_if_available. | |
8449 | (get_frame_func): Rename to ... | |
8450 | (get_frame_func_if_available): New `pc' output parameter. Change | |
8451 | return type to int. Gracefully handle the PC not being available. | |
8452 | (get_frame_func): Reimplement on top of | |
8453 | get_frame_func_if_available. | |
8454 | (select_frame): Handle the PC being unavailable. | |
8455 | (get_prev_frame): Handle the PC being unavailable. | |
8456 | (get_frame_pc_if_available): New. | |
8457 | (get_frame_address_in_block_if_available): New. | |
8458 | (find_frame_sal): Handle the frame PC not being available. | |
8459 | * frame.h (get_frame_pc_if_available): Declare. | |
8460 | (get_frame_address_in_block_if_available): Declare. | |
8461 | (get_frame_func_if_available): Declare. | |
8462 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
8463 | (find_frame_funname): Ditto. | |
8464 | (print_frame): Handle the PC being unavailable. | |
8465 | (get_frame_language): Ditto. | |
8466 | * blockframe.c (get_frame_block): Ditto. | |
8467 | * macroscope.c (default_macro_scope): Ditto. | |
8468 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
8469 | ||
8470 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
8471 | ||
8472 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
8473 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
8474 | ||
8475 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
8476 | ||
8477 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
8478 | returning that the register piece is unavailable/optimized out. | |
8479 | (write_pieced_value): Handle get_frame_register_bytes returning | |
8480 | that the register piece is unavailable/optimized out when doing a | |
8481 | read-modify write of a bitfield. | |
8482 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
8483 | returning that the register piece is unavailable/optimized out. | |
8484 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
8485 | and `unavailablep'. Throw error on bad debug info. Use | |
8486 | frame_register instead of frame_register_read, to fill in the new | |
8487 | arguments. | |
8488 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
8489 | and `unavailablep'. | |
8490 | * valops.c: (value_assign): Adjust, and handle | |
8491 | get_frame_register_bytes failing. | |
8492 | * spu-tdep.c: Include exceptions.h. | |
8493 | (spu_software_single_step): Adjust, and handle | |
8494 | get_frame_register_bytes failing. | |
8495 | (spu_get_longjmp_target): Ditto. | |
8496 | * gdbarch.sh (register_to_value): Change to return int. New | |
8497 | parameters `optimizedp' and `unavailablep'. | |
8498 | * gdbarch.h, gdbarch.c: Regenerate. | |
8499 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
8500 | gdbarch_register_to_value interface. | |
8501 | * i387-tdep.c (i387_register_to_value): Ditto. | |
8502 | * i387-tdep.h (i387_register_to_value): Ditto. | |
8503 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
8504 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
8505 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
8506 | * mips-tdep.c (mips_register_to_value): Ditto. | |
8507 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
8508 | ||
0fdb4f18 PA |
8509 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8510 | ||
8511 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
8512 | the register is unavailable. | |
8513 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
8514 | (frame_register): New `unavailablep' parameter. | |
8515 | (frame_register_read): Update comment. | |
8516 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
8517 | Set it if the register is unavailable. If the register is | |
8518 | unavailable, clear the output buffer. | |
8519 | (frame_register): New `unavailablep' parameter. Pass it down. | |
8520 | (frame_unwind_register): Adjust. | |
8521 | (put_frame_register): Adjust. | |
8522 | (frame_register_read): Adjust. Also return false if the register | |
8523 | is not available. | |
8524 | (frame_register_unwind_location): Adjust. | |
8525 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
8526 | is unavailable, mark the value accordingly. | |
8527 | * stack.c (frame_info): Handle unavailable registers. | |
8528 | ||
e69aa73e PA |
8529 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8530 | ||
8531 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
8532 | simplify, using regcache_cooked_read. | |
8533 | ||
05d1431c PA |
8534 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
8535 | ||
8536 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
8537 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
8538 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
8539 | (regcache_cooked_read, regcache_cooked_read_signed) | |
8540 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
8541 | (regcache_cooked_read_ftype): Change return to enum | |
8542 | register_status. | |
8543 | * regcache.c: Include exceptions.h | |
8544 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
8545 | (do_cooked_read): Change return to enum register_status. Always | |
8546 | forward to regcache_cooked_read. | |
8547 | (regcache_raw_read): Change return to enum register_status. If | |
8548 | the register is not REG_VALID, memset the buffer. Return the | |
8549 | register's status. | |
8550 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
8551 | return the register's status. | |
8552 | (regcache_raw_read_unsigned): Ditto. | |
8553 | (regcache_cooked_read): Change return to enum register_status. | |
8554 | Assert that with read-only regcaches, the register's status must | |
8555 | be known. If the regcache is read-only, and the register is not | |
8556 | REG_VALID, memset the buffer. Return the register's status. | |
8557 | (regcache_cooked_read_signed): Change return to enum | |
8558 | register_status. Handle non-REG_VALID registers and return the | |
8559 | register's status. | |
8560 | (regcache_cooked_read_unsigned): Change return to enum | |
8561 | register_status. Handle non-REG_VALID registers and return the | |
8562 | register's status. | |
8563 | (regcache_xfer_part, regcache_raw_read_part) | |
8564 | (regcache_cooked_read_part): Change return to enum | |
8565 | register_status. Return the register's status. | |
8566 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
8567 | unavailable. | |
8568 | (regcache_dump): Handle unavailable cooked registers. | |
8569 | * frame.c (do_frame_register_read): Adjust interface to match | |
8570 | regcache_cooked_read_ftype. | |
8571 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
8572 | register_status. | |
8573 | * gdbarch.h, gdbarch.c: Regenerate. | |
8574 | ||
8575 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
8576 | register_status. | |
8577 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
8578 | register_status. If reading a raw register indicates the raw | |
8579 | register is not valid, return the raw register's status, | |
8580 | otherwise, return REG_VALID. | |
8581 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
8582 | register_status. Handle non-REG_VALID raw registers and return | |
8583 | the register's status. | |
8584 | * arm-tdep.c (arm_neon_quad_read) | |
8585 | (arm_pseudo_read): Change return to enum register_status. Handle | |
8586 | non-REG_VALID raw registers and return the register's status. | |
8587 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
8588 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
8589 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
8590 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
8591 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
8592 | register_status. | |
8593 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
8594 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
8595 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
8596 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
8597 | (m32c_pseudo_register_read): Change return to enum | |
8598 | register_status. Adjust. | |
8599 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
8600 | enum register_status. Return the register's status. | |
8601 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
8602 | register_status. Return the register's status. | |
8603 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
8604 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
8605 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
8606 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
8607 | (e500_move_ev_register): Use it. Change return to enum | |
8608 | register_status. Return the register's status. | |
8609 | (do_regcache_raw_read): New function. | |
8610 | (do_regcache_raw_write): New function. | |
8611 | (e500_pseudo_register_read): Change return to enum | |
8612 | register_status. Return the register's status. Use | |
8613 | do_regcache_raw_read. | |
8614 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
8615 | (dfp_pseudo_register_read): Change return to enum register_status. | |
8616 | Return the register's status. | |
8617 | (vsx_pseudo_register_read): Ditto. | |
8618 | (efpr_pseudo_register_read): Ditto. | |
8619 | (rs6000_pseudo_register_read): Ditto. | |
8620 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
8621 | register_status. Return the register's status. | |
8622 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
8623 | (sh64_pseudo_register_read): Change return to enum | |
8624 | register_status. Use pseudo_register_read_portions. Return the | |
8625 | register's status. | |
8626 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
8627 | register_status. Return the register's status. | |
8628 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
8629 | (sh_pseudo_register_read): Change return to enum register_status. | |
8630 | Use pseudo_register_read_portions. Return the register's status. | |
8631 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
8632 | enum register_status. Return the register's status. | |
8633 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
8634 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
8635 | (spu_pseudo_register_read): Ditto. | |
8636 | * xtensa-tdep.c (xtensa_register_read_masked) | |
8637 | (xtensa_pseudo_register_read): Ditto. | |
8638 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
8639 | ||
e10abd8f PM |
8640 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
8641 | ||
8642 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
8643 | call. | |
8644 | ||
7ea6d463 PM |
8645 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
8646 | ||
8647 | ARI fixes: Add missing internationalization markups throughout | |
8648 | C source files. | |
8649 | * darwin-nat-info.c: Ditto. | |
8650 | * record.c: Ditto. | |
8651 | * remote.c: Ditto. | |
8652 | * mi/mi-main.c: Ditto. | |
8653 | ||
001083c6 PM |
8654 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
8655 | ||
8656 | ARI fixes: Add missing internationalization markups throughout | |
8657 | yacc files. | |
8658 | * c-exp.y: Ditto. | |
8659 | * cp-name-parser.y: Ditto. | |
8660 | * f-exp.y: Ditto. | |
8661 | * m2-exp.y: Ditto. | |
8662 | * objc-exp.y: Ditto. | |
8663 | * p-exp.y: Ditto. | |
8664 | ||
4f1cdeec PM |
8665 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
8666 | ||
8667 | ARI fixes: Messages should have no trailing new lines. | |
8668 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
8669 | warning function call message. | |
8670 | * record.c (bfdcore_read): Idem for error call. | |
8671 | ||
28e698f1 PM |
8672 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
8673 | ||
8674 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
8675 | function call message. | |
8676 | (target_signal_to_host): Add _ markup and remove trailing new line | |
8677 | from warning call message. | |
8678 | (target_signal_from_command): Add _ markup to error function call | |
8679 | message. | |
8680 | ||
99c3dc11 PM |
8681 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
8682 | ||
f33edef8 | 8683 | PR python/12149 |
99c3dc11 PM |
8684 | |
8685 | * python/python.c (gdbpy_write): Accept a stream argument and | |
8686 | operate to the appropriate stream. | |
8687 | (gdbpy_flush): Likewise. | |
8688 | (_initialize_python): Add stream constants. | |
8689 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
8690 | ||
c20800be KY |
8691 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
8692 | ||
8693 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
8694 | ||
f4a1794a KY |
8695 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
8696 | ||
8697 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
f33edef8 PP |
8698 | to store_signed_integer. Add debug message when relocating CALL |
8699 | instructions. Fix formatting of debug message. | |
8700 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
f4a1794a | 8701 | |
d4862372 JB |
8702 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
8703 | ||
8704 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
8705 | (target_lookup_symbol): Delete macro. | |
8706 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
8707 | (update_current_target, setup_target_debug): Remove handling | |
8708 | of to_lookup_symbol target_ops field. | |
8709 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
8710 | target_lookup_symbol. | |
8711 | * coffread.c (coff_symtab_read): Likewise. | |
8712 | * dbxread.c (read_dbx_symtab): Ditto. | |
8713 | ||
d645e32e JB |
8714 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
8715 | ||
8716 | PR gdb/12116: | |
8717 | * configure.ac: Add getthrds declaration check. | |
8718 | * configure, config.in: Regenerate. | |
8719 | * aix-thread.c (getthrds): Declare only if not already declared | |
8720 | in procinfo.h. More declaration out of get_signaled_thread to | |
8721 | global scope. | |
8722 | ||
29703da4 PM |
8723 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
8724 | ||
8725 | * python/py-symtab.c: Populate symtab_object_methods, | |
8726 | sal_object_methods. | |
8727 | (stpy_is_valid): New function. | |
8728 | (salpy_is_valid): Ditto. | |
8729 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
8730 | (sympy_is_valid): New function. | |
8731 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
8732 | (objfpy_is_valid): New function. | |
8733 | * python/py-inferior.c: Populate inferior_object_methods. | |
8734 | (infpy_is_valid): New function. | |
8735 | * python/py-infthread.c: Populate thread_object_methods. | |
8736 | (thpy_is_valid): New function. | |
8737 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
8738 | block_iterator_object_methods. Populate. | |
8739 | (blpy_is_valid): New function. | |
8740 | (blpy_iter_is_valid): Ditto. | |
8741 | ||
c00f8484 KS |
8742 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
8743 | ||
8744 | * linespec.c (find_methods): Canonicalize NAME before looking | |
8745 | up the symbol. | |
8746 | (name_end): New function. | |
8747 | (keep_name_info): New function. | |
8748 | (decode_line_1): Use keep_name_info. | |
8749 | (decode_compound): Likewise. | |
8750 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
8751 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
8752 | ||
8753 | PR c++/12273 | |
8754 | * linespec.c (locate_first_half): Keep overload information, too. | |
8755 | (decode_compound): Use a string to represent break characters | |
8756 | to escape the loop. | |
8757 | If P points to a break character, do not increment it. | |
8758 | For C++ and Java, keep overload information and relevant keywords. | |
8759 | If we cannot find a symbol, search the minimal symbols. | |
8760 | ||
8761 | PR c++/11734 | |
8762 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
8763 | THE_REAL_SAVED_ARG. | |
8764 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
8765 | single-quotes. | |
8766 | Pass a valid block to lookup_symbol. | |
8767 | (lookup_prefix_sym): Likewise. | |
8768 | (find_method): Construct search name based on SYM_CLASS instead | |
8769 | of SAVED_ARG. | |
8770 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
8771 | (lookup_symbol_aux_psymtabs): Likewise. | |
8772 | Don't assume that the psymtab we found was the right one. Search | |
8773 | for the desired symbol in the symtab to be certain. | |
8774 | (psymtab_search_name): New function. | |
8775 | (lookup_partial_symbol): Use psymtab_search_name. | |
8776 | Add language parameter. | |
8777 | (read_symtabs_for_function): Add language parameter and pass to | |
8778 | lookup_partial_symbol. | |
8779 | (find_symbol_file_from_partial): Likewise. | |
8780 | ||
c91513d8 PP |
8781 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
8782 | ||
8783 | PR gdb/12528 | |
8784 | * dwarf2read.c (noop_record_line): New function. | |
8785 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
8786 | ||
b37520b6 PM |
8787 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
8788 | ||
8789 | Fix ARI warnings about new lines at the end of messages, which | |
8790 | are unneeded as there is a new line added at the end of the message | |
8791 | automatically. | |
8792 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
8793 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
8794 | * dfp.c (decimal_to_number): Ditto. | |
8795 | * exec.c (print_section_info): Ditto. | |
8796 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
8797 | * osdata.c (get_osdata): Ditto. | |
8798 | * record.c (bfdcore_write): Ditto. | |
8799 | * remote-mips.c (mips_readchar): Ditto. | |
8800 | * remote.c (read_ptid): Ditto. | |
8801 | * ser-mingw.c (ser_windows_raw): Ditto. | |
8802 | * tracepoint.c (add_local_symbols): Ditto. | |
8803 | * windows-nat.c (fake_create_process): Ditto. | |
8804 | ||
b08ee6a2 TT |
8805 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
8806 | ||
8807 | * tracepoint.c (stop_tracing): Don't declare. | |
8808 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
8809 | ||
9a6f1302 PM |
8810 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
8811 | ||
8812 | * NEWS: Add Parameter sub-classing description. | |
8813 | ||
7ceb86b1 KT |
8814 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
8815 | ||
8816 | * MAINTAINERS: Update my e-mail address. | |
8817 | ||
efeff6cf AT |
8818 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
8819 | ||
8820 | * MAINTAINERS: Add myself for write after approval privileges. | |
8821 | ||
681c238c MS |
8822 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
8823 | ||
f3df5b08 MS |
8824 | * frame.c (find_frame_sal): Assert sym is not null. |
8825 | ||
13f6513c MS |
8826 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
8827 | ||
50412521 MS |
8828 | * objc-lang.c (selectors_info): Check strchr for null result. |
8829 | ||
681c238c MS |
8830 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
8831 | ||
6ced1581 PM |
8832 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
8833 | ||
8834 | Remove trailing spaces and tabulations from pascal language | |
8835 | support sources. | |
8836 | p-exp.y: Ditto. | |
8837 | p-lang.c: Ditto. | |
8838 | p-lang.h: Ditto. | |
8839 | p-valprint.c: Ditto. | |
8840 | ||
9373cf26 JK |
8841 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8842 | ||
8843 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
8844 | than LOW. Comment it. | |
8845 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
8846 | HIGHPC not strictly higher than LOWPC. | |
8847 | ||
9a1edae6 PM |
8848 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
8849 | ||
8850 | Fix formatting of function declarations returning a pointer in | |
8851 | previous commit. | |
8852 | * varobj.c (varobj_add_child): Ditto. | |
8853 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
8854 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
8855 | ||
24e9cda0 UW |
8856 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
8857 | ||
8858 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
8859 | for the "generic" vector ABI used with GCC 4.3 and later. | |
8860 | (ppc64_sysv_abi_return_value): Likewise. | |
8861 | ||
8862 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
8863 | |
8864 | * infcall.c (call_function_by_hand): Function return value is | |
8865 | always a non_lval, even when using struct_return. | |
8866 | ||
c9174737 PA |
8867 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
8868 | ||
8869 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
8870 | (map_display_numbers): New. | |
8871 | (do_delete_display): New. | |
8872 | (undisplay_command): Use map_display_numbers. | |
8873 | (do_enable_disable_display): New. | |
8874 | (enable_disable_display_command): New function. | |
8875 | (enable_display): Delete. | |
8876 | (enable_display_command): New. | |
8877 | (disable_display_command): Reimplement. | |
8878 | (_initialize_printcmd): Adjust "enable display" command to use | |
8879 | `enable_display_command' as callback. | |
8880 | ||
350c6c65 PM |
8881 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
8882 | ||
8883 | * NEWS: Add Python breakpoint 'stop' operation. | |
8884 | ||
824446ad PM |
8885 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
8886 | ||
8887 | * NEWS: Delete duplicate entry. Fix typo. | |
8888 | ||
2021ad3a PM |
8889 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
8890 | ||
8891 | Fix ARI warning about function names in first column. | |
8892 | Put prototype declaration on same line as return type. | |
8893 | * objc-exp.y: Ditto. | |
8894 | * p-exp.y: Ditto. | |
8895 | * python/py-stopevent.h: Ditto. | |
8896 | For long function names, split parameters to | |
8897 | allow function name on same line as return type. | |
8898 | * solib-pa64.c: Ditto. | |
8899 | * varobj.c: Ditto. | |
8900 | * varobj.h: Ditto. | |
8901 | For long function declaration, use single line. | |
8902 | * hppa-tdep.h: Ditto. | |
8903 | * inferior.h: Ditto. | |
8904 | ||
7371cf6d PM |
8905 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
8906 | ||
8907 | * python/python.h: Declare gdbpy_should_stop and | |
8908 | gdbpy_breakpoint_has_py_cond. | |
8909 | * python/python.c: Add python.h to includes. Remove python.h from | |
8910 | HAVE_PYTHON definition | |
8911 | (gdbpy_should_stop): New dummy function. | |
8912 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
8913 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
8914 | sub-classing capabilities. | |
8915 | (gdbpy_should_stop): New function. | |
8916 | (gdbpy_breakpoint_has_py_cond): New function. | |
8917 | (local_setattro): New function. | |
8918 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
8919 | operation. | |
8920 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
8921 | operation function as part of stop/continue tests. | |
8922 | ||
37b50a69 TT |
8923 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
8924 | ||
8925 | PR gdb/12576: | |
8926 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
8927 | (needs_frame_dwarf_call): Likewise. | |
8928 | ||
eeae04df PM |
8929 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
8930 | ||
8931 | Fix ARI warning about functions without parameters that do not | |
8932 | use (void). | |
8933 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
8934 | * f-exp.y (match_string_literal): Ditto. | |
8935 | (yylex): Ditto. | |
8936 | * m2-exp.y (yylex): Ditto. | |
8937 | * mep-tdep.c (current_me_module): Ditto. | |
8938 | (current_options): Ditto. | |
8939 | (current_cop_data_bus_width): Ditto. | |
8940 | (current_cr_names): Ditto. | |
8941 | (current_cr_is_float): Ditto. | |
8942 | (current_ccr_names): Ditto. | |
8943 | * objc-exp.y (yylex): Ditto. | |
8944 | * p-exp.y (yylex): Ditto. | |
8945 | * remote.c (send_interrupt_sequence): Ditto. | |
8946 | * tracepoint.c (current_trace_status): Ditto. | |
8947 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
8948 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
8949 | ||
6dc3565d MS |
8950 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
8951 | ||
1427fe5e MS |
8952 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
8953 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
8954 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
8955 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
8956 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
8957 | ||
60bc018f MS |
8958 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
8959 | (delete_async_event_handler): Ditto. | |
8960 | ||
f3be5b64 MS |
8961 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
8962 | ||
4c2d5724 MS |
8963 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
8964 | ||
6dc3565d MS |
8965 | * top.c (set_verbose): Assert showcmd was found. |
8966 | ||
4e6ca6d5 MG |
8967 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
8968 | ||
8969 | * xtensa-tdep.c (warning_once): Correct style issues. | |
8970 | ||
815a83e4 YQ |
8971 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
8972 | ||
8973 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
8974 | ||
f2eb0bc8 AS |
8975 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
8976 | ||
8977 | * common/aclocal.m4: Remove. | |
8978 | ||
b801de47 MG |
8979 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
8980 | ||
8981 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
8982 | (xtensa_write_register, xtensa_read_register): Likewise. | |
8983 | (xtensa_hextochar): Removed. | |
8984 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
8985 | ||
dbab50de MG |
8986 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
8987 | ||
8988 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 8989 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
8990 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
8991 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
8992 | (warning_once): New function. | |
8993 | (xtensa_insn_kind): New item c0opc_and. | |
8994 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
8995 | (call0_track_op): Change arguments. New local variable litbase. |
8996 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
8997 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
8998 | in the prologue. | |
dbab50de | 8999 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 9000 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
9001 | Add the variety of updates to handle extended prologues, which now can |
9002 | conduct dynamic stack adjustments. | |
9003 | (call0_frame_cache): Likewise. | |
9004 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
9005 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
9006 | ||
b2c04452 MS |
9007 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
9008 | ||
f8f67713 MS |
9009 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
9010 | (cmd_qtframe): Ditto. | |
9011 | (cmd_qtbuffer): Ditto. | |
9012 | (cmd_bigqtbuffer): Ditto. | |
9013 | ||
197f0a60 TT |
9014 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
9015 | ||
9016 | * tracepoint.c (trace_actions_command): Update. | |
9017 | * thread.c (thread_apply_command): Update. | |
9018 | * reverse.c (delete_bookmark_command): Update. | |
9019 | (bookmarks_info): Update. | |
9020 | * printcmd.c (undisplay_command): Update. | |
9021 | * memattr.c (mem_enable_command): Update. | |
9022 | (mem_disable_command): Update. | |
9023 | (mem_delete_command): Update. | |
9024 | * inferior.c (detach_inferior_command): Update. | |
9025 | (kill_inferior_command): Update. | |
9026 | (remove_inferior_command): Update. | |
9027 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
9028 | (init_number_or_range): Declare. | |
9029 | (get_number_or_range): Update. | |
9030 | * cli/cli-utils.c (init_number_or_range): New function. | |
9031 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
9032 | static variables. | |
9033 | (number_is_in_list): Update. | |
9034 | * breakpoint.h (get_tracepoint_by_number): Update. | |
9035 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
9036 | get_number_or_range. | |
9037 | (find_location_by_number): Use get_number, not | |
9038 | get_number_or_range. | |
9039 | (trace_pass_set_count): New function. | |
9040 | (trace_pass_command): Update for change to get_number_or_range. | |
9041 | Rework loop logic. | |
9042 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
9043 | 'state' parameter. | |
9044 | ||
ecec24e6 PM |
9045 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
9046 | ||
9047 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
9048 | parameters. Register Python object context. | |
9049 | (get_show_value): New function. | |
9050 | (get_set_value): New function. | |
9051 | (call_doc_function): New function. | |
9052 | (get_doc_string): Move behind get_show_value/get_set_value. | |
9053 | ||
6d6c6b1f JK |
9054 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
9055 | ||
9056 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
9057 | ||
68d6df83 MG |
9058 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
9059 | ||
dbab50de | 9060 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
9061 | (xtensa_write_register): Likewise. |
9062 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
9063 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
9064 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
9065 | (xtensa_exception_handler_t): Update to match coding conventions. | |
9066 | (xtensa_insn_kind): Likewise. | |
9067 | ||
85c9d6a6 MS |
9068 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
9069 | ||
9070 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
9071 | ||
91495617 PA |
9072 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
9073 | ||
9074 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
9075 | ||
eb8c0621 TT |
9076 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
9077 | ||
9078 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
9079 | (make_cleanup_restore_current_thread): Use | |
9080 | get_selected_frame_if_set. | |
9081 | * frame.h (get_selected_frame_if_set): Declare. | |
9082 | * frame.c (get_selected_frame_if_set): New function. | |
9083 | ||
9f37bbcc PA |
9084 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
9085 | ||
9086 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
9087 | * coffread.c (coff_start_symtab): Constify parameter. | |
9088 | (complete_symtab): Constify `name' parameter. | |
9089 | (coff_symtab_read): Constify `filestring' local. | |
9090 | (coff_getfilename): Constify return and `result' local. | |
9091 | Use lbasename. | |
9092 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
9093 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
9094 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
9095 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
9096 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
9097 | * procfs.c (procfs_make_note_section): Use lbasename. | |
9098 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
9099 | Use lbasename. | |
9100 | (print_filename): Constify parameters, and local `s'. | |
9101 | (tui_rl_display_match_list): Constify local `temp'. | |
9102 | ||
f8de3c55 JK |
9103 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
9104 | ||
9105 | Revert: | |
9106 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
9107 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
9108 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
9109 | cu->header.version >= 3. | |
9110 | ||
d9837b00 YQ |
9111 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
9112 | ||
9113 | * common/Makefile.in: Remove. | |
9114 | * common/configure: Remove. | |
9115 | * common/configure.ac: Remove. | |
9116 | ||
e637a4f5 YQ |
9117 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
9118 | ||
9119 | Revert: | |
9120 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
9121 | ||
9122 | * common/Makefile.in: Add copyright header. | |
9123 | ||
9124 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
9125 | ||
9126 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
9127 | libcommon.a. | |
9128 | * configure.ac: Add common to sub dir. | |
9129 | * configure: Regenerate. | |
9130 | ||
f976a05d MG |
9131 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
9132 | ||
9133 | * xtensa-tdep.c (call0_ret): New function. | |
9134 | (xtensa_skip_prologue): Speed up analysis. | |
9135 | ||
57041825 MG |
9136 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
9137 | ||
9138 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
9139 | while executing MI command -data-list-changed-registers. | |
9140 | ||
08b9c608 MG |
9141 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
9142 | ||
9143 | * xtensa-tdep.c (xtensa_read_register): New function. | |
9144 | (xtensa_write_register): New function. | |
9145 | (xtensa_find_register_by_name): New function. | |
9146 | (xtensa_windowed_frame_cache): Update comments in type description. | |
9147 | (xtensa_frame_cache): Likewise. | |
9148 | (xtensa_window_interrupt_insn): New function. | |
9149 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
9150 | (xtensa_insn_kind): Add new instructions. | |
9151 | (rwx_special_register): New function. | |
9152 | (call0_classify_opcode): Add new instructions to the analysis. | |
9153 | (a0_saved, a7_saved, a11_saved): New variables. | |
9154 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
9155 | (execute_l32e): New function. | |
9156 | (execute_s32e): New function. | |
9157 | (xtensa_exception_handler_t): New type. | |
9158 | (execute_code): New function. | |
9159 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
9160 | analysis for Xtensa Window Exception handlers. | |
9161 | ||
4d1acb11 MG |
9162 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
9163 | ||
98689b25 MG |
9164 | * xtensa-tdep.c (TX_PS): New. |
9165 | (windowing_enabled): Update to count for Call0 ABI. | |
9166 | (xtensa_hextochar): New. | |
9167 | (xtensa_init_reggroups): Make algorithm generic. | |
9168 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
9169 | ||
9170 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
9171 | ||
9172 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 9173 | |
d3f323f3 MS |
9174 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
9175 | ||
3dcabaa8 MS |
9176 | * i386-tdep.c (i386_follow_jump): Check return value of |
9177 | target_read_memory. | |
9178 | (i386_analyze_struct_return): Ditto. | |
9179 | (i386_skip_probe): Ditto. | |
9180 | (i386_match_insn): Ditto. | |
9181 | (i386_skip_noop): Ditto. | |
9182 | (i386_analyze_frame_setup): Ditto. | |
9183 | (i386_analyze_register_saves): Ditto. | |
9184 | (i386_skip_prologue): Ditto. | |
9185 | (i386_skip_main_prologue): Ditto. | |
9186 | ||
13b3fd9b MS |
9187 | * target.c (read_whatever_is_readable): Fix memory leak. |
9188 | ||
d3f323f3 MS |
9189 | * i386-tdep.c (i386_process_record): Document fall through. |
9190 | ||
421d5c74 JK |
9191 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
9192 | ||
9193 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
9194 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
9195 | cu->header.version >= 3. | |
9196 | ||
63154eca PA |
9197 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
9198 | ||
9199 | * remote.c (remote_check_symbols): Skip if the target has no | |
9200 | execution. | |
9201 | ||
f1a507a1 JB |
9202 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
9203 | ||
9204 | * target.c (read_whatever_is_readable): Reformat comment, | |
9205 | with a minor typo fix. Minor reformatting of the code. | |
9206 | ||
36073a92 YQ |
9207 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
9208 | ||
9209 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
9210 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
9211 | Use cached result instead of calling displaced_in_arm_mode again. | |
9212 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
9213 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
9214 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
9215 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
9216 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
9217 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
9218 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
9219 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
9220 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
9221 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
9222 | (arm_catch_kernel_helper_return): Likewise. | |
9223 | * gdb/arm-tdep.h : Update function declarations. | |
9224 | ||
d3f323f3 | 9225 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 9226 | |
e0e40094 MS |
9227 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
9228 | ||
0b2381f5 MS |
9229 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
9230 | ||
0350914a MS |
9231 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
9232 | ||
69feea6f MS |
9233 | * elfread.c (elf_symtab_read): Stop memory leak. |
9234 | ||
e6040cbd MS |
9235 | * main.c (captured_main): Fix memory leak. |
9236 | ||
052874e8 AS |
9237 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
9238 | ||
9239 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
9240 | instead of string2. | |
9241 | ||
b11896a5 TT |
9242 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
9243 | ||
9244 | * xcoffread.c (xcoff_sym_fns): Update. | |
9245 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
9246 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
9247 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
9248 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
9249 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
9250 | * somread.c (som_sym_fns): Update. | |
9251 | * psymtab.h (require_partial_symbols): Declare. | |
9252 | * psymtab.c (require_partial_symbols): New function. | |
9253 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
9254 | (ALL_OBJFILE_PSYMTABS): Undef. | |
9255 | (ALL_PSYMTABS): Move from psympriv.h. | |
9256 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
9257 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
9258 | (find_last_source_symtab_from_partial) | |
9259 | (forget_cached_source_info_partial) | |
9260 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
9261 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
9262 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
9263 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
9264 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
9265 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
9266 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
9267 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
9268 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
9269 | psymtabs. | |
9270 | * mipsread.c (ecoff_sym_fns): Update. | |
9271 | * machoread.c (macho_sym_fns): Update. | |
9272 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
9273 | (read_psyms): New function. | |
9274 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
9275 | (elf_sym_fns_lazy_psyms): New global. | |
9276 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
9277 | dwarf2_build_psymtabs. | |
9278 | * dbxread.c (aout_sym_fns): Update. | |
9279 | * coffread.c (coff_sym_fns): Update. | |
9280 | ||
fda326dd TT |
9281 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
9282 | ||
9283 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
9284 | message. | |
9285 | ||
aeaec162 TT |
9286 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
9287 | ||
9288 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
9289 | parameter. | |
9290 | (target_has_execution_1): Update. | |
9291 | (target_has_execution_current): Declare. | |
9292 | (target_has_execution): Call target_has_execution_current. | |
9293 | (default_child_has_execution): Update. | |
9294 | * target.c (default_child_has_execution): Add 'the_ptid' | |
9295 | parameter. | |
9296 | (target_has_execution_1): Likewise. | |
9297 | (target_has_execution_current): New function. | |
9298 | (add_target): Update. | |
9299 | (init_dummy_target): Update. | |
9300 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
9301 | (init_m32r_ops): Use it. | |
9302 | * record.c (record_core_has_execution): Now static. Add | |
9303 | 'the_ptid' parameter. | |
9304 | * inferior.c (have_live_inferiors): Don't save current thread. | |
9305 | Use target_has_execution_1. | |
9306 | ||
08e14083 YQ |
9307 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
9308 | ||
9309 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
9310 | ||
c05d19c5 JB |
9311 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
9312 | ||
9313 | * elfread.c (elf_symtab_read): Minor reformatting. | |
9314 | ||
3e6ef9e4 JB |
9315 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
9316 | ||
9317 | * objc-lang.c (selectors_info): Minor reformatting. | |
9318 | ||
dbb8534f JB |
9319 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
9320 | ||
9321 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
9322 | ||
dd70cc93 JB |
9323 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
9324 | Michael Snyder <msnyder@vmware.com> | |
9325 | ||
9326 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
9327 | "byte_order" and "elttype" inside the block where these variables | |
9328 | are actually used. Remove some special handling for the case | |
9329 | where "elttype" and "eltlen" are null. Replace by a comment | |
9330 | and a couple of assertion checks. | |
9331 | ||
b27cf2b3 MS |
9332 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
9333 | ||
9334 | * source.c (add_path): Replace semicolon at end of block. | |
9335 | * dwarf2expr.c (execute_stack_op): Ditto. | |
9336 | ||
5387a0c6 MF |
9337 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
9338 | ||
9339 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
9340 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
9341 | (bfin-*-*): Likewise. | |
9342 | ||
e3aa49af MS |
9343 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
9344 | ||
82ae4854 MS |
9345 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
9346 | * mdebugread.c (parse_symbol): Ditto. | |
9347 | * parse.c (parse_exp_in_context): Ditto. | |
9348 | * source.c (add_path): Ditto. | |
9349 | * utils.c (gnu_debuglink_crc32): Ditto. | |
9350 | * varobj.c (variable_language): Ditto. | |
9351 | ||
e3aa49af MS |
9352 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
9353 | ||
154f592e MS |
9354 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
9355 | ||
da3ecdc6 MS |
9356 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
9357 | ||
9cc89665 MS |
9358 | * symfile.c (simple_overlay_update): Check for null return value |
9359 | from lookup_minimal_symbol. | |
9360 | ||
154f592e MS |
9361 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
9362 | ||
63ffa6ee TJB |
9363 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9364 | ||
9365 | * eval.c (parse_and_eval_address_1): Remove function. | |
9366 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
9367 | instead of parse_and_eval_address_1. | |
9368 | * value.h (parse_and_eval_address_1): Remove prototype. | |
9369 | ||
a17d146e MS |
9370 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
9371 | ||
9372 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
9373 | ||
1a6a67de TJB |
9374 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
9375 | ||
9376 | * breakpointc (print_it_typical): Move NULL check from here... | |
9377 | (print_bp_stop_message): ... to here. | |
9378 | ||
488919c4 MS |
9379 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
9380 | ||
9381 | * breakpoint.c (enable_command): Use break instead of continue, | |
9382 | and fill in a missing break. | |
9383 | (disable_command): Ditto. | |
9384 | ||
1e182ce8 UW |
9385 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
9386 | ||
9387 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
9388 | (terminal_save_ours): Remove misleading comment. | |
9389 | (inflow_inferior_data_cleanup): Free ttystate. | |
9390 | (inflow_inferior_exit): Likewise. | |
9391 | (copy_terminal_info): Copy ttystate. | |
9392 | ||
9393 | * serial.c (serial_copy_tty_state): New function. | |
9394 | * serial.h (serial_copy_tty_state): Add prototype. | |
9395 | (struct serial_ops): Add copy_tty_state callback. | |
9396 | * ser-base.c (ser_base_copy_tty_state): New function. | |
9397 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
9398 | * ser-go32.c (dos_copy_tty_state): New function. | |
9399 | (dos_ops): Install copy_tty_state callback. | |
9400 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
9401 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
9402 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
9403 | (_initialize_ser_hardwire): Install it. | |
9404 | ||
b2c5f112 MS |
9405 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
9406 | ||
2abae994 MS |
9407 | * breakpoint.c (create_breakpoint): Add missing break statement. |
9408 | ||
7f5936f9 MS |
9409 | Reverting this patch: |
9410 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
9411 | ||
b2c5f112 MS |
9412 | Reverting this patch: |
9413 | * cli/cli-script.c (script_from_file): Add break for lint. | |
9414 | ||
42b1321c MS |
9415 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
9416 | ||
9417 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
9418 | ||
3e2a0cee TT |
9419 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
9420 | ||
9421 | PR gdb/12538: | |
9422 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
9423 | DW_STRING is NULL. | |
9424 | ||
58397cb7 MS |
9425 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
9426 | ||
2e3fd767 MS |
9427 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
9428 | fields of struct 'st' to zero. | |
9429 | ||
58397cb7 MS |
9430 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
9431 | sal.pspace before calling set_current_source_symtab_and_line. | |
9432 | ||
ced54c8f YQ |
9433 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
9434 | ||
9435 | * Makefile.in (configure-common): Remove. Let Makefile | |
9436 | in dir common to rebuild itself. | |
9437 | (common/Makefile): Likewise. | |
9438 | ||
3351ea09 JB |
9439 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
9440 | ||
9441 | * utils.c (parse_escape): Add i18n markup in error message. | |
9442 | ||
bf9f652a YQ |
9443 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
9444 | ||
9445 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
9446 | ARM_PC_REGNUM. | |
9447 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
9448 | (displaced_write_reg, displaced_read_reg): Likewise. | |
9449 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
9450 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
9451 | (cleanup_branch): Replace magic number 14 and 15 with | |
9452 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
9453 | ||
d42de051 MS |
9454 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
9455 | ||
240f9570 MS |
9456 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
9457 | ||
10dd8b54 MS |
9458 | * cli/cli-script.c (script_from_file): Add break for lint. |
9459 | ||
b98bd911 MS |
9460 | * mdebugread.c (parse_partial_symbols): Fix indent. |
9461 | ||
3494b66d MS |
9462 | * target-descriptions.c (tdesc_gdb_type): No need to call |
9463 | xstrdup, callee saves a copy. | |
9464 | ||
daac021a MS |
9465 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
9466 | ||
c38d16a7 MS |
9467 | * infcall.c (call_function_by_hand): Add break statements for lint. |
9468 | ||
905b671b MS |
9469 | * utils.c (parse_escape): Escape the escape char. |
9470 | ||
f2eb0bc8 | 9471 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
9472 | PyList_Append fails. |
9473 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
9474 | ||
8c6a60d1 MS |
9475 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
9476 | a function call. | |
9477 | ||
d42de051 MS |
9478 | * record.c (record_restore): Move printf to before error return. |
9479 | ||
4db71c0b YQ |
9480 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
9481 | ||
9482 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
9483 | is_thumb and insn_size. | |
9484 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
9485 | on both ARM and Thumb mode. | |
9486 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
9487 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
9488 | (arm_displaced_step_fixup): Likewise. | |
9489 | ||
a9dc8dcc MS |
9490 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
9491 | ||
53624a93 MS |
9492 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
9493 | ||
77766669 MS |
9494 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
9495 | ||
62d5b8da MS |
9496 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
9497 | ||
5e9e105f MS |
9498 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
9499 | ||
dc19db01 MS |
9500 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
9501 | with xmalloc. | |
9502 | ||
5ce64950 MS |
9503 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
9504 | which shadows function parameter. | |
9505 | ||
a0aa2878 MS |
9506 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
9507 | to xstrdup. Callee already calls xstrdup. | |
9508 | ||
e325fb69 MS |
9509 | * linespec.c (decode_line_1): Remove unnecessary null check. |
9510 | ||
21cbba77 MS |
9511 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
9512 | variable. | |
9513 | ||
63360adc MS |
9514 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
9515 | superfluous null check. | |
9516 | ||
18ea20ac | 9517 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 9518 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 9519 | |
d014929c MS |
9520 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
9521 | ||
6e9130cf MS |
9522 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
9523 | be null. | |
9524 | ||
5f01dbc0 MS |
9525 | * linespec.c (decode_line_1): Check for null before dereference. |
9526 | ||
d684ab85 MS |
9527 | * reverse.c (record_restore): Move null-check to before pointer |
9528 | dereference. | |
9529 | ||
bfffb7e3 MS |
9530 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
9531 | ||
a9dc8dcc MS |
9532 | * objc-lang.c (selectors_info): Add explanitory comment. |
9533 | (classes_info): Ditto. | |
9534 | ||
478fd957 UW |
9535 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
9536 | ||
9537 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
9538 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
9539 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
9540 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
9541 | (arm_linux_init_abi): Install it. | |
9542 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
9543 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
9544 | ||
0480cefa MS |
9545 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
9546 | ||
ac50ab3b MS |
9547 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
9548 | a little bigger, to avoid possibility of an overflow. | |
9549 | ||
f63fbe86 MS |
9550 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
9551 | buffers a little bigger, to avoid possibility of an overflow. | |
9552 | ||
9e91a352 MS |
9553 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
9554 | ||
f2eb0bc8 | 9555 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
9556 | avoid overflow. |
9557 | (classes_info): Error out on too long REGEXP. | |
9558 | ||
098ab512 MS |
9559 | * infrun.c (handle_inferior_event): Remove unused function call. |
9560 | ||
bcbd1de9 MS |
9561 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
9562 | unused variable. | |
9563 | ||
2e456570 MS |
9564 | * linux-thread-db.c (attach_thread): Discard unused value. |
9565 | ||
14571dad MS |
9566 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
9567 | ||
a9cbf802 MS |
9568 | * remote.c (remote_get_noisy_reply): Discard unused value. |
9569 | (remote_vcont_resume): Ditto. | |
9570 | (remote_stop_ns): Ditto. | |
9571 | ||
5715d26e MS |
9572 | * linespec.c (decode_objc): Delete unused variable. |
9573 | ||
4a9bca80 MS |
9574 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
9575 | ||
f47fb265 MS |
9576 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
9577 | (read_base_type): Delete unused variable. | |
9578 | ||
e81cff30 MS |
9579 | * dbxread.c (read_dbx_symtab): Discard unused value. |
9580 | ||
262acaeb MS |
9581 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
9582 | and discard unused values. | |
9583 | ||
df983543 MS |
9584 | * infcmd.c (_initialize_infcmd): Discard unused values. |
9585 | ||
89acf84d MS |
9586 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
9587 | ||
ab8b8aca MS |
9588 | * dbxread.c (process_one_symbol): Discard unused value. |
9589 | ||
6b4511ab MS |
9590 | * coffread.c (coff_end_symtab): Delete unused variable. |
9591 | ||
e8e80198 MS |
9592 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
9593 | (dwarf2_add_typedef): Delete unused variable. | |
9594 | (read_namespace): Ditto. | |
9595 | (dwarf_decode_macros): Ditto. | |
9596 | ||
976aa66e MS |
9597 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
9598 | ||
5b92b49f MS |
9599 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
9600 | ||
91e8df85 MS |
9601 | * p-valprint.c (pascal_val_print): Discard unused value. |
9602 | ||
899500d6 MS |
9603 | * utils.c (nquery): Call va_end before return; |
9604 | (yquery): Ditto. | |
9605 | (query): Ditto. | |
9606 | ||
0480cefa MS |
9607 | * proc-service.c (ps_plog): Call va_end before return. |
9608 | ||
fb6a3ed3 TT |
9609 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
9610 | ||
9611 | * python/python.c (gdbpy_value_cst): New global. | |
9612 | (_initialize_python): Initialize it. | |
9613 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
9614 | * python/py-value.c (convert_value_from_python): Use | |
9615 | gdbpy_value_cst. | |
9616 | ||
c05202a1 MS |
9617 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
9618 | ||
e463f587 MS |
9619 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
9620 | ||
c38eea1a MS |
9621 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
9622 | ||
3ef09ab5 MS |
9623 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
9624 | ||
8f9a01ee MS |
9625 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
9626 | (lval_func_check_synthetic_pointer): Ditto. | |
9627 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 9628 | |
477d0d57 TT |
9629 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
9630 | ||
9631 | * psymtab.c (expand_partial_symbol_tables): Use | |
9632 | ALL_OBJFILE_PSYMTABS. | |
9633 | ||
20937029 JK |
9634 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
9635 | ||
9636 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
9637 | ||
907b7f4f MS |
9638 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
9639 | ||
92e96192 MS |
9640 | * python/py-param.c (set_parameter_value): Add missing |
9641 | break statement. | |
9642 | ||
907b7f4f MS |
9643 | * linux-record.c (record_linux_system_call): Add missing |
9644 | break statement. | |
9645 | ||
12c5a436 UW |
9646 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
9647 | ||
9648 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
9649 | argument PRINT_ADDRESS_BITS. Update callers. | |
9650 | (print_one_breakpoint): Likewise. | |
9651 | ||
170b53b2 UW |
9652 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
9653 | ||
9654 | * breakpoint.c (wrap_indent_at_field): New function. | |
9655 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
9656 | Allocate ui_stream locally instead of using STB argument. | |
9657 | (print_one_breakpoint_location): Update call. | |
9658 | * ui-out.c (ui_out_query_field): New function. | |
9659 | * ui-out.h (ui_out_query_field): Add prototype. | |
9660 | ||
8ab1f94d JB |
9661 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
9662 | ||
9663 | From Michael Snyder <msnyder@vmware.com> | |
9664 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
9665 | ||
7d488639 MS |
9666 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
9667 | ||
ae179fba MS |
9668 | * objc-lang.c (selectors_info): Prevent string overrun. |
9669 | ||
086dbf66 MS |
9670 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
9671 | error in strncpy. | |
9672 | ||
f2eb0bc8 | 9673 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
9674 | outer scope. |
9675 | ||
7d488639 MS |
9676 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
9677 | param with a local variable of the same name. | |
9678 | ||
3bd0f5ef MS |
9679 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
9680 | ||
9681 | * value.c (value_from_history_ref): New function. | |
9682 | * value.h (value_from_history_ref): Export. | |
9683 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
9684 | to parse value history references. | |
9685 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
9686 | ||
9687 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
9688 | ||
9689 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
9690 | (kill_inferior_command): Ditto. | |
9691 | (remove_inferior_command): Ditto. | |
9692 | (initialize_inferiors): Make command names plural. | |
9693 | Update help strings. | |
9694 | ||
766062f6 MS |
9695 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
9696 | ||
9697 | * darwin-nat-info.c: Fix comment typo. | |
9698 | * dwarf2expr.h: Ditto. | |
9699 | * fbsd-nat.c: Ditto. | |
9700 | * fbsd-nat.h: Ditto. | |
9701 | * frame-unwind.h: Ditto. | |
9702 | * frame.h: Ditto. | |
9703 | * hppa-hpux-tdep.c: Ditto. | |
9704 | * i386-linux-nat.c: Ditto. | |
9705 | * linux-nat.c: Ditto. | |
9706 | * nbsd-nat.c: Ditto. | |
9707 | * nbsd-nat.h: Ditto. | |
9708 | * ppc-linux-tdep.c: Ditto. | |
9709 | * serial.c: Ditto. | |
9710 | * ui-file.h: Ditto. | |
9711 | * tui/tui-winsource.c: Ditto. | |
9712 | ||
f2c4ead5 MS |
9713 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
9714 | ||
86b887df MS |
9715 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
9716 | ||
66fd3b1e MS |
9717 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
9718 | ||
8c814cdd MS |
9719 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
9720 | with a local variable of the same name. | |
9721 | ||
6d5e094a | 9722 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 9723 | param with a local variable of the same name. |
6d5e094a | 9724 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 9725 | |
5eee517d MS |
9726 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
9727 | that it does not shadow a function parameter. | |
9728 | ||
8fbf6b93 MS |
9729 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
9730 | statement is meant to fall through. | |
9731 | ||
cb969d61 MS |
9732 | * expprint.c (dump_subexp_body_standard): Document that case |
9733 | statement is meant to fall through. | |
9734 | ||
f2c4ead5 MS |
9735 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
9736 | dead if statement. Condition can't be false. | |
9737 | ||
b021a221 MS |
9738 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
9739 | ||
9740 | * arm-tdep.c: Fix typos in comments. | |
9741 | * bsd-uthread.c: Ditto. | |
9742 | * completer.c: Ditto. | |
9743 | * corelow.c: Ditto. | |
9744 | * cp-namespace.c: Ditto. | |
9745 | * cp-support.c: Ditto. | |
9746 | * cris-tdep.c: Ditto. | |
9747 | * dbxread.c: Ditto. | |
9748 | * dwarf2read.c: Ditto. | |
9749 | * frame.h: Ditto. | |
9750 | * gdbtypes.h: Ditto. | |
9751 | * inferior.h: Ditto. | |
9752 | * mdebugread.c: Ditto. | |
9753 | * mips-tdep.c: Ditto. | |
9754 | * ppc-linux-nat.c: Ditto. | |
9755 | * ppc-linux-tdep.c: Ditto. | |
9756 | * printcmd.c: Ditto. | |
9757 | * sol-thread.c: Ditto. | |
9758 | * solib-frv.c: Ditto. | |
9759 | * solist.h: Ditto. | |
9760 | * sparc64-tdep.c: Ditto. | |
9761 | * spu-tdep.c: Ditto. | |
9762 | * stabsread.c: Ditto. | |
9763 | * symfile.c: Ditto. | |
9764 | * valops.c: Ditto. | |
9765 | * varobj.c: Ditto. | |
9766 | * vax-nat.c: Ditto. | |
9767 | * python/py-block.c: Ditto. | |
9768 | * python/py-symbol.c: Ditto. | |
9769 | * python/py-symtab.c: Ditto. | |
9770 | * python/py-value.c: Ditto. | |
9771 | * tui/tui-win.c: Ditto. | |
9772 | ||
c82c0b55 MS |
9773 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
9774 | ||
9775 | * inferior.c (print_inferior): Accept a string instead of an int | |
9776 | for requested_inferiors, and use get_number_or_range to parse it. | |
9777 | (info_inferiors_command): Pass args string to print_inferior. | |
9778 | (initialize_inferiors): Change help string for info inferiors. | |
9779 | * inferior.h (print_inferior): Export prototype change. | |
9780 | ||
ee00cd23 TT |
9781 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
9782 | ||
9783 | * common/ax.def (invalid2): Set to 0x31. | |
9784 | ||
0502ed8c JK |
9785 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
9786 | ||
9787 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
9788 | L and plongest. | |
9789 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
9790 | use L and plongest. | |
9791 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
9792 | ||
2c9de912 MS |
9793 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
9794 | ||
9795 | * Makefile.in (clean): Make clean should remove generated files | |
9796 | observer.h and observer.inc. | |
9797 | ||
a04b0428 JB |
9798 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
9799 | ||
9800 | Revert the following patch (not approved yet): | |
9801 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
9802 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
9803 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
9804 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
9805 | * ax-general.c (ax_memcpy): New function. | |
9806 | (ax_print): Handle "printf". | |
9807 | (ax_reqs): Ditto. | |
9808 | * ax.h (ax_memcpy): Forward declare. | |
9809 | * common/ax.def (invalid2): Removed. | |
9810 | (printf): New entry. | |
9811 | * printcmd.c (printcmd.h): New include. | |
9812 | (string_printf): New function. | |
9813 | (ui_printf): Removed. | |
9814 | (printf_command): Remove static. Call string_printf. | |
9815 | (eval_command): Call string_printf. | |
9816 | * printcmd.h: New file. | |
9817 | * tracepoint.c (validate_actionline, | |
9818 | encode_actions_1): handle printf_command. | |
9819 | ||
2b52013f TT |
9820 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
9821 | ||
9822 | * ax-general.c (ax_pick): Add missing newline. | |
9823 | ||
e5a67952 MS |
9824 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
9825 | ||
9826 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
9827 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 9828 | breakpoints rather than just one. Use new function |
e5a67952 MS |
9829 | 'number_is_in_list' to implement. |
9830 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
9831 | (watchpoints_info): Ditto. | |
9832 | (tracepoints_info): Ditto. | |
9833 | (maintenance_info_breakpoints): Ditto. | |
9834 | (_initialize_breakpoint): Update help strings to reflect the fact | |
9835 | that these functions can now take more than one argument. | |
9836 | * cli/cli-utils.c (number_is_in_list): New function. | |
9837 | * cli/cli-utils.h (number_is_in_list): Export. | |
9838 | ||
9839 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
9840 | |
9841 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
9842 | (mem_disable_command): Ditto. | |
9843 | (mem_delete_command): Ditto. | |
9844 | (_initialize_mem): Tweak usage message to reflect multiple | |
9845 | arguments. | |
9846 | ||
6e6fbe60 DE |
9847 | 2011-02-22 Doug Evans <dje@google.com> |
9848 | ||
9849 | Add gdb.lookup_global_symbol python function. | |
9850 | * NEWS: Add entry. | |
9851 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
9852 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
9853 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
9854 | ||
79b97fa8 TT |
9855 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
9856 | ||
9857 | * language.c (language_class_name_from_physname): Rename | |
9858 | 'curr_language' argument to 'lang'; use in body. | |
9859 | ||
298f437a MS |
9860 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
9861 | ||
9862 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
9863 | ||
b7ea3126 PA |
9864 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
9865 | ||
9866 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
9867 | next. | |
9868 | ||
58ee6d60 TT |
9869 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
9870 | ||
9871 | * symfile.c (auto_solib_limit): Remove. | |
9872 | * symfile.h (auto_solib_limit): Remove. | |
9873 | ||
36238dbc JB |
9874 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
9875 | ||
9876 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
9877 | ||
aea5b279 MS |
9878 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
9879 | ||
9880 | * gdbthread.h (print_thread_info): Change prototype. | |
9881 | * thread.c (print_thread_info): Accept char* instead of int for | |
9882 | requested_threads argument. Use new function number_is_in_list | |
9883 | to determine which threads to list. | |
9884 | (info_threads_command): Pass char* to print_thread_info. | |
9885 | * cli/cli-utils.c (number_is_in_list): New function. | |
9886 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 9887 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
9888 | print_thread_info. |
9889 | (print_one_inferior): Ditto. | |
9890 | (mi_cmd_list_thread_groups): Ditto. | |
9891 | ||
8caa75ee JK |
9892 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
9893 | ||
9894 | * common/Makefile.in (CFLAGS): New. | |
9895 | (COMPILE): Add $(CFLAGS). | |
9896 | ||
ea666128 TT |
9897 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
9898 | ||
9899 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
9900 | ||
e9cafbcc TT |
9901 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
9902 | ||
9903 | * reverse.c: Include cli-utils.h. | |
9904 | * printcmd.c: Include cli-utils.h. | |
9905 | (string_printf): Use skip_spaces. | |
9906 | * cli/cli-utils.h: New file. | |
9907 | * cli/cli-utils.c: New file. | |
9908 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
9909 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
9910 | * breakpoint.h (get_number, get_number_or_range): Move to | |
9911 | cli-utils.h. | |
9912 | * breakpoint.c: Include cli-utils.h. | |
9913 | (get_number_trailer, get_number, get_number_or_range) | |
9914 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
9915 | (create_breakpoint_sal, find_condition_and_thread) | |
9916 | (decode_static_tracepoint_spec, watch_command_1) | |
9917 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
9918 | (catch_fork_command_1, catch_exec_command_1) | |
9919 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
9920 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
9921 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
9922 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
9923 | (cli-utils.o): New target. | |
9924 | ||
f67fd822 PM |
9925 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
9926 | ||
9927 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
9928 | before calling discard_all_inferiors. | |
9929 | ||
c9def01d UW |
9930 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
9931 | ||
9932 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
9933 | (struct builtin_opencl_type): Remove. | |
9934 | (builtin_opencl_type): Change return type to "struct type **". | |
9935 | (lookup_opencl_vector_type): Update caller. | |
9936 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
9937 | (build_opencl_types): Install plain array of "struct type *" | |
9938 | instead of "struct builtin_opencl_type". | |
9939 | ||
e3039479 UW |
9940 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
9941 | Ulrich Weigand <uweigand@de.ibm.com> | |
9942 | ||
9943 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
9944 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
9945 | (struct arm_linux_hwbp_cap): New type. | |
9946 | (arm_linux_get_hwbp_cap): New function. | |
9947 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
9948 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
9949 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
9950 | (arm_hwbp_type): New type. | |
9951 | (arm_hwbp_control_t): Likewise. | |
9952 | (struct arm_linux_hw_breakpoint): Likewise. | |
9953 | (struct arm_linux_thread_points): Likewise. | |
9954 | (arm_threads): New global variable. | |
9955 | (arm_linux_find_breakpoints_by_tid): New function. | |
9956 | (arm_hwbp_control_initialize): Likewise. | |
9957 | (arm_hwbp_control_is_enabled): Likewise. | |
9958 | (arm_hwbp_control_disable): Likewise. | |
9959 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
9960 | (arm_linux_get_hwbp_type): Likewise. | |
9961 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
9962 | (arm_linux_hw_breakpoint_equal): Likewise. | |
9963 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
9964 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
9965 | (arm_linux_insert_hw_breakpoint): Likewise. | |
9966 | (arm_linux_remove_hw_breakpoint): Likewise. | |
9967 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
9968 | (arm_linux_insert_watchpoint): Likewise. | |
9969 | (arm_linux_remove_watchpoint): Likewise. | |
9970 | (arm_linux_stopped_data_address): Likewise. | |
9971 | (arm_linux_stopped_by_watchpoint): Likewise. | |
9972 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
9973 | (arm_linux_new_thread): Likewise. | |
9974 | (arm_linux_thread_exit): Likewise. | |
9975 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
9976 | related target callbacks. Register arm_linux_new_thread and | |
9977 | arm_linux_thread_exit. | |
9978 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
9979 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
9980 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
9981 | ||
b5db5dfc UW |
9982 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
9983 | ||
9984 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
9985 | per-frame locations while within a function epilogue. | |
9986 | ||
e25b2cfa PM |
9987 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
9988 | ||
9989 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
9990 | to GNU coding standards. | |
9991 | ||
4af53f97 PM |
9992 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
9993 | ||
9994 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 9995 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
9996 | (ser_windows_close): Only call CancelIo if function exists. |
9997 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
9998 | to check for existence of CancelIo function in kernel32 DLL. | |
9999 | ||
d0e92d82 HZ |
10000 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
10001 | ||
10002 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
10003 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
10004 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
10005 | * ax-general.c (ax_memcpy): New function. | |
10006 | (ax_print): Handle "printf". | |
10007 | (ax_reqs): Ditto. | |
10008 | * ax.h (ax_memcpy): Forward declare. | |
10009 | * common/ax.def (invalid2): Removed. | |
10010 | (printf): New entry. | |
10011 | * printcmd.c (printcmd.h): New include. | |
10012 | (string_printf): New function. | |
10013 | (ui_printf): Removed. | |
10014 | (printf_command): Remove static. Call string_printf. | |
10015 | (eval_command): Call string_printf. | |
10016 | * printcmd.h: New file. | |
10017 | * tracepoint.c (validate_actionline, | |
10018 | encode_actions_1): handle printf_command. | |
10019 | ||
7d357efd MS |
10020 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
10021 | ||
10022 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
10023 | id rather than pointer to bookmark struct. | |
10024 | (delete_bookmark_command): Use get_number_or_range. | |
10025 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
10026 | (bookmark_1): New function. Print info for one bookmark. | |
10027 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
10028 | ||
7a45ebd7 MS |
10029 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
10030 | ||
f2eb0bc8 | 10031 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 10032 | get_number_or_range. |
65ebfb52 | 10033 | (thread_apply_command): Ditto. |
7a45ebd7 | 10034 | |
94d5e490 TT |
10035 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
10036 | ||
10037 | * common/ax.def: New file. | |
10038 | * ax.h (enum agent_op): Use ax.def. | |
10039 | * ax-general.c (aop_map): Use ax.def. | |
10040 | ||
c7f96d2b TT |
10041 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
10042 | ||
10043 | * ax-general.c (aop_map): Add pick and rot. | |
10044 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
10045 | <DW_OP_rot>: Implement. | |
10046 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
10047 | (ax_pick): Declare. | |
10048 | * ax-general.c (ax_pick): New function. | |
10049 | ||
66694b75 TT |
10050 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
10051 | ||
10052 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
10053 | ||
eeaafae2 JK |
10054 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
10055 | Tom Tromey <tromey@redhat.com> | |
10056 | ||
10057 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
10058 | make_symbol_overload_list_block with NULL BLOCK. | |
10059 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
10060 | ||
3c3fe74c PA |
10061 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
10062 | ||
10063 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
10064 | * breakpoint.h (get_number_or_range): Declare. | |
10065 | * printcmd.c (ALL_DISPLAYS): Declare. | |
10066 | (delete_display): Reimplement taking a display pointer. | |
10067 | (undisplay_command): Accept a range of displays to delete, using | |
10068 | get_number_or_range. | |
10069 | ||
13163d80 PM |
10070 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
10071 | ||
10072 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
10073 | for arrays of unspecified length. | |
10074 | * p-valprint.c (pascal_val_print): Likewise. | |
10075 | ||
b434a28f YQ |
10076 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
10077 | ||
10078 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
10079 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
10080 | (thumb_process_displaced_insn): New. | |
10081 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
10082 | call to arm_process_displaced_insn. | |
10083 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
10084 | ||
9f6f94ff TT |
10085 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
10086 | ||
10087 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
10088 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
10089 | compile_dwarf_to_ax. No longer static. Call | |
10090 | dwarf2_compile_cfa_to_ax. | |
10091 | (locexpr_tracepoint_var_ref): Update. | |
10092 | (loclist_tracepoint_var_ref): Update. | |
10093 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
10094 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
10095 | argument; add 'gdbarch' and 'pc'. | |
10096 | (dwarf2_compile_cfa_to_ax): New function. | |
10097 | (dwarf2_frame_cache): Update. | |
10098 | ||
e67ad678 JB |
10099 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
10100 | ||
10101 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
10102 | in the case of an unconstrained packed array. | |
10103 | ||
946ebb0d YQ |
10104 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
10105 | ||
10106 | * common/Makefile.in: Add more targets for make. | |
10107 | ||
1ba1b353 TT |
10108 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
10109 | ||
10110 | * dwarf2loc.c (unimplemented): Fix typo. | |
10111 | ||
b1bfef65 TT |
10112 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
10113 | ||
10114 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
10115 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
10116 | <DW_OP_deref>: Update. | |
10117 | (disassemble_dwarf_expression): Update. | |
10118 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
10119 | (decode_locdesc): Update. | |
10120 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
10121 | ||
5f1e6f19 TT |
10122 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
10123 | ||
10124 | * ax.h (struct aop_map) <name>: Now const. | |
10125 | ||
a0c78a73 PA |
10126 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
10127 | ||
10128 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
10129 | than axs_rvalue. | |
10130 | ||
946ebb0d | 10131 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
10132 | |
10133 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
10134 | * inferior.h: Declare it. | |
10135 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
10136 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
10137 | returns non-NULL. | |
10138 | ||
08807d5a PA |
10139 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
10140 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10141 | ||
10142 | gdb/ | |
10143 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
10144 | ||
29976f3f PA |
10145 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
10146 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10147 | ||
10148 | * value.c (value_contents_copy_raw): Extend describing comment. | |
10149 | Assert that the destination contents we're overwriting are wholly | |
10150 | available. | |
fb68ae73 | 10151 | (value_contents_copy): Extend describing comment. |
29976f3f | 10152 | |
cd24cfaa PA |
10153 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
10154 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10155 | ||
10156 | * value.c (value_available_contents_eq): Remove redundant local | |
10157 | variables. Fix available contents comparision. | |
10158 | * value.h (value_available_contents_eq): Extend describing | |
10159 | comment. | |
10160 | ||
60bbf338 YQ |
10161 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
10162 | ||
10163 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
10164 | trailing newline. | |
10165 | ||
17450429 PP |
10166 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
10167 | ||
10168 | * breakpoint.c (longjmp_names): New variable. | |
10169 | (struct breakpoint_objfile_data): New type. | |
10170 | (breakpoint_objfile_key): New variable. | |
10171 | (msym_not_found): New variable. | |
10172 | (msym_not_found_p): New predicate. | |
10173 | (get_breakpoint_objfile_data): New function. | |
10174 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
10175 | symbols first. | |
10176 | (create_longjmp_master_breakpoint): Likewise. | |
10177 | (create_std_terminate_master_breakpoint): Likewise. | |
10178 | (create_exception_master_breakpoint): Likewise. | |
10179 | (_initialize_breakpoint): Register per-objfile data key. | |
10180 | ||
af02033e PP |
10181 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
10182 | ||
10183 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
10184 | parameter value. | |
10185 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
10186 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
10187 | value. | |
10188 | (update_breakpoints_after_exec): Adjust. | |
10189 | (breakpoint_re_set): Adjust. | |
10190 | ||
60f98dde MS |
10191 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
10192 | ||
cdf99611 MS |
10193 | * thread.c (info_threads_command): Process arg as thread id, |
10194 | or list of thread ids. | |
10195 | (thread_find_command): New command. | |
10196 | (_initialize_thread): Document argument for info threads. | |
10197 | Document 'thread find' command. | |
10198 | * NEWS: Document new command "thread find". | |
60f98dde | 10199 | |
0feedb2c JK |
10200 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10201 | ||
10202 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
10203 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
10204 | * common/configure: Regenerate with autoconf-2.64. | |
10205 | ||
648cd113 KW |
10206 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
10207 | ||
10208 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
10209 | bool data type to a size of one byte. | |
10210 | ||
5657161f PA |
10211 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
10212 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10213 | ||
10214 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
10215 | look for interface description. | |
10216 | ||
494e194e YQ |
10217 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
10218 | ||
10219 | PR tdep/12352 | |
10220 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
10221 | order to store PC value on stack instead of text section. | |
10222 | ||
d9492458 TJB |
10223 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10224 | ||
10225 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
10226 | the EFP register set size. | |
10227 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
10228 | data from the VMX register. | |
10229 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
10230 | and write data from/to the VMX register. | |
10231 | ||
cdf99611 MS |
10232 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
10233 | ||
10234 | * command.h (enum command_class): New class 'no_set_class', for | |
10235 | "show" commands without a corresponding "set" command. | |
10236 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
10237 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
10238 | "show warranty". | |
10239 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
10240 | "show version". | |
10241 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
10242 | which there is no corresponding "set" command (eg. "show copying"). | |
10243 | ||
424447ee PA |
10244 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10245 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10246 | ||
10247 | * exec.c (section_table_available_memory): Change `len' parameter | |
10248 | type to ULONGEST. | |
10249 | * exec.h (section_table_available_memory): Ditto. | |
10250 | * value.h (read_value_memory): Rename the `offset' parameter to | |
10251 | `embedded_offset'. | |
10252 | ||
c0f61f9c | 10253 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 10254 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
10255 | |
10256 | * memrange.c (compare_mem_ranges): Mention sort order in | |
10257 | describing comment. | |
10258 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
10259 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
10260 | mention what happens to RESULT when the target does not support | |
10261 | the query. | |
10262 | ||
6bfc80c7 PA |
10263 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10264 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10265 | ||
10266 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
10267 | range. | |
10268 | ||
e7303042 PA |
10269 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10270 | ||
10271 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
10272 | No longer handle NULL values. | |
10273 | ||
8af8e3bc PA |
10274 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10275 | ||
10276 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
10277 | * value.c: Include "exceptions.h". | |
10278 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
10279 | generic error. | |
10280 | * cp-abi.c: Include gdb_assert.h. | |
10281 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
10282 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
10283 | errors. | |
10284 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
10285 | parameters. No longer returns -1 on error. | |
10286 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
10287 | `val' parameters. | |
10288 | * cp-valprint.c: Include exceptions.h. | |
10289 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
10290 | the baseclass_offset. Handle unavailable base classes. Use | |
10291 | val_print_invalid_address. | |
10292 | * p-valprint.c: Include exceptions.h. | |
10293 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
10294 | when fetching the baseclass_offset. No longer expect | |
10295 | baseclass_offset returning -1. Handle unavailable base classes. | |
10296 | Use val_print_invalid_address. | |
10297 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
10298 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
10299 | `embedded_offset' and `val' parameters. Adjust. | |
10300 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
10301 | parameter, and change its type to gdb_byte pointer. Add | |
10302 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
10303 | baseclass_offset returning -1. | |
10304 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
10305 | value_contents. Adjust. | |
10306 | (search_struct_field): No longer expect baseclass_offset returning | |
10307 | -1. | |
10308 | (search_struct_method): If reading memory from the target is | |
10309 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
10310 | longer expect baseclass_offset returning -1. | |
10311 | (find_method_list): No longer expect baseclass_offset returning | |
10312 | -1. Use value_contents_for_printing rather than value_contents. | |
10313 | * valprint.c (val_print_invalid_address): New function. | |
10314 | * valprint.h (val_print_invalid_address): Declare. | |
10315 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
10316 | and `val' parameters. No longer expect baseclass_offset returning | |
10317 | -1. Adjust. | |
10318 | * gnu-v2-abi.c: Include "exceptions.h". | |
10319 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
10320 | parameters. Handle unavailable memory. Recurse through | |
10321 | gnuv2_baseclass_offset directly, rather than through | |
10322 | baseclass_offset. No longer returns -1 on not found, instead | |
10323 | throw an error. | |
10324 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
10325 | `val' parameters. Adjust. | |
10326 | ||
1b28d0b3 PA |
10327 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10328 | ||
10329 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
10330 | almost but not quite adjacent. | |
10331 | ||
ec0a52e1 PA |
10332 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10333 | ||
10334 | * value.h (value_entirely_available): Declare. | |
10335 | * value.c (value_entirely_available): New function. | |
10336 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
10337 | real type if the pointer is unavailable. | |
10338 | ||
24e6bcee PA |
10339 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10340 | ||
10341 | * valops.c (value_repeat): Use read_value_memory instead of | |
10342 | read_memory. | |
10343 | ||
39d37385 PA |
10344 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10345 | ||
10346 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
10347 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
10348 | functions. | |
10349 | (value_primitive_field): Use value_contents_copy_raw instead of | |
10350 | memcpy. | |
10351 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
10352 | memcpy. | |
10353 | (value_array, value_slice): Ditto. | |
10354 | * valarith.c (value_subscripted_rvalue): Use | |
10355 | value_contents_copy_raw instead of memcpy. | |
10356 | ||
a3d34bf4 PA |
10357 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10358 | ||
10359 | <unavailable> references. | |
10360 | ||
10361 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
10362 | avoiding read_memory. | |
10363 | ||
9fc6d940 PA |
10364 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10365 | ||
10366 | * c-valprint.c (c_val_print): Print a string with unavailable | |
10367 | contents as an array. | |
10368 | ||
5467c6c8 PA |
10369 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10370 | ||
10371 | * value.h (unpack_bits_as_long): Delete declaration. | |
10372 | (unpack_value_bits_as_long): Declare. | |
10373 | (unpack_value_field_as_long): Declare. | |
10374 | (value_field_bitfield): Declare. | |
10375 | * value.c (unpack_bits_as_long): Rename to... | |
10376 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
10377 | value parameters. Return the extracted result in a new output | |
10378 | parameter. If the value contents are unavailable, return false, | |
10379 | otherwise return true. | |
10380 | (unpack_value_bits_as_long): New. | |
10381 | (unpack_field_as_long): Rename to... | |
10382 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
10383 | Add embedded_offset and value parameters. Return the extracted | |
10384 | result in a new output parameter. If the value contents are | |
10385 | unavailable, return false, otherwise return true. | |
10386 | (unpack_value_field_as_long): New. | |
10387 | (unpack_field_as_long_1): New. | |
10388 | (unpack_field_as_long): Reimplement as wrapper around | |
10389 | unpack_value_field_as_long_1. | |
10390 | (value_field_bitfield): New function. | |
10391 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
10392 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
10393 | is unavailable. | |
10394 | * jv-valprint.c (java_print_value_fields): Use | |
10395 | value_field_bitfield. | |
10396 | * p-valprint.c (pascal_object_print_value_fields): Use | |
10397 | value_field_bitfield. | |
10398 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
10399 | ||
3158c6ed PA |
10400 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10401 | ||
10402 | * value.c (get_internalvar_integer): Also return the int value of | |
10403 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
10404 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
10405 | ||
9fbdca0d PA |
10406 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10407 | ||
10408 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
10409 | INTERNALVAR_POINTER. | |
10410 | <pointer>: Delete. | |
10411 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
10412 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
10413 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
10414 | ||
c8c1c22f PA |
10415 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10416 | ||
10417 | * value.h (value_available_contents_eq): Declare. | |
10418 | * value.c (find_first_range_overlap): New function. | |
10419 | (value_available_contents_eq): New function. | |
10420 | * valprint.c (val_print_array_elements): Use | |
10421 | value_available_contents_eq. | |
10422 | * ada-valprint.c (val_print_packed_array_elements): Use | |
10423 | value_available_contents_eq. | |
10424 | * jv-valprint.c (java_value_print): Use | |
10425 | value_available_contents_eq. | |
10426 | ||
e6e4e701 PA |
10427 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10428 | ||
10429 | * target.c (target_read_live_memory): New function. | |
10430 | (memory_xfer_live_readonly_partial): New. | |
10431 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
10432 | reading unavailable read-only memory from read-only regions of | |
10433 | live target memory. | |
10434 | * tracepoint.c (disconnect_tracing): Adjust. | |
10435 | (set_current_traceframe): New, factored out from | |
10436 | set_traceframe_number. | |
10437 | (set_traceframe_number): Reimplement to only change the traceframe | |
10438 | number on the GDB side. | |
10439 | (do_restore_current_traceframe_cleanup): Adjust. | |
10440 | (make_cleanup_restore_traceframe_number): New. | |
10441 | (cur_traceframe_number): New global. | |
10442 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
10443 | (set_tfile_traceframe): New function. | |
10444 | (tfile_trace_find): If looking up a traceframe using any method | |
10445 | other than by number, make sure the current tfile traceframe | |
10446 | matches gdb's current traceframe. Update the current tfile | |
10447 | traceframe if the lookup succeeded. | |
10448 | (tfile_fetch_registers, tfile_xfer_partial) | |
10449 | (tfile_get_trace_state_variable_value): Make sure the remote | |
10450 | traceframe matches gdb's current traceframe. | |
10451 | * remote.c (remote_traceframe_number): New global. | |
10452 | (remote_open_1): Set it to -1. | |
10453 | (set_remote_traceframe): New function. | |
10454 | (remote_fetch_registers, remote_store_registers) | |
10455 | (remote_xfer_memory, remote_xfer_partial) | |
10456 | (remote_get_trace_state_variable_value): Make sure the remote | |
10457 | traceframe matches gdb's current traceframe. | |
10458 | (remote_trace_find): If looking up a traceframe using any method | |
10459 | other than by number, make sure the current remote traceframe | |
10460 | matches gdb's current traceframe. Update the current remote | |
10461 | traceframe if the lookup succeeded. | |
10462 | * infrun.c (fetch_inferior_event): Adjust. | |
10463 | * tracepoint.h (set_current_traceframe): Declare. | |
10464 | (get_traceframe_number, set_traceframe_number): Add describing | |
10465 | comments. | |
10466 | ||
e6ca34fc PA |
10467 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10468 | ||
10469 | Mark pieces of values as unavailable if the corresponding memory | |
10470 | is unavailable. | |
10471 | ||
10472 | * valops.c: Include tracepoint.h. | |
10473 | (value_fetch_lazy): Use read_value_memory. | |
10474 | (read_value_memory): New. | |
10475 | * value.h (read_value_memory): Declare. | |
10476 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
10477 | * exec.c (section_table_available_memory): New function. | |
10478 | * exec.h (section_table_available_memory): Declare. | |
10479 | ||
2a7498d8 PA |
10480 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10481 | ||
10482 | * Makefile.in (SFILES): Add memrange.c. | |
10483 | (HFILES_NO_SRCDIR): Add memrange.h. | |
10484 | (COMMON_OBS): Add memrange.o. | |
10485 | * memrange.c: New file. | |
10486 | * memrange.h: New file. | |
10487 | * tracepoint.c: Include memrange.h. | |
10488 | (struct mem_range): Delete. | |
10489 | (mem_range_s): Delete. | |
10490 | (traceframe_available_memory): New function. | |
10491 | * tracepoint.h (traceframe_available_memory): Declare. | |
10492 | ||
b3b9301e PA |
10493 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10494 | ||
10495 | * target.h (struct traceframe_info): Forward declare. | |
10496 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
10497 | (struct target_ops) <to_traceframe_info>: New field. | |
10498 | (target_traceframe_info): New. | |
10499 | * target.c (update_current_target): Inherit and default | |
10500 | to_traceframe_info. | |
10501 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
10502 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
10503 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
10504 | (remote_traceframe_info): New. | |
10505 | (init_remote_ops): Install it. | |
10506 | (_initialize_remote): Install "set/show remote traceframe-info" | |
10507 | commands. | |
10508 | * tracepoint.h (parse_traceframe_info): Declare. | |
10509 | * tracepoint.c (struct mem_range): New. | |
10510 | (mem_range_s): New typedef. | |
10511 | (struct traceframe_info): New. | |
10512 | (traceframe_info): New global. | |
10513 | (free_traceframe_info): New function. | |
10514 | (clear_traceframe_info): New function. | |
10515 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
10516 | info. | |
10517 | (build_traceframe_info): New function. | |
10518 | (tfile_traceframe_info): New function. | |
10519 | (init_tfile_ops): Install tfile_traceframe_info. | |
10520 | (traceframe_info_start_memory, free_result): New functions. | |
10521 | (memory_attributes, traceframe_info_elements): New globals. | |
10522 | (parse_traceframe_info, get_traceframe_info): New functions. | |
10523 | * features/traceframe-info.dtd: New file. | |
10524 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
10525 | ||
4e07d55f PA |
10526 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
10527 | ||
10528 | Base support for <unavailable> value contents. | |
10529 | ||
4e07d55f PA |
10530 | * value.h (value_bytes_available): Declare. |
10531 | (mark_value_bytes_unavailable): Declare. | |
10532 | * value.c (struct range): New struct. | |
10533 | (range_s): New typedef. | |
10534 | (ranges_overlap): New function. | |
10535 | (range_lessthan): New function. | |
10536 | (ranges_contain_p): New function. | |
10537 | (struct value) <unavailable>: New field. | |
10538 | (value_bytes_available): New function. | |
10539 | (mark_value_bytes_unavailable): New function. | |
10540 | (require_not_optimized_out): Constify parameter. | |
10541 | (require_available): New function. | |
10542 | (value_contents_all, value_contents): Require all bytes be | |
10543 | available. | |
10544 | (value_free): Free `unavailable'. | |
10545 | (value_copy): Copy `unavailable'. | |
10546 | * valprint.h (val_print_unavailable): Declare. | |
10547 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
10548 | to `embedded_offset'. If printing a scalar, check whether the | |
10549 | value chunk is available. | |
10550 | (val_print_unavailable): New. | |
10551 | (val_print_scalar_formatted): Check whether the value is | |
10552 | available. | |
10553 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
10554 | pretty-printing unavailable values. | |
10555 | ||
bc9a5551 JK |
10556 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
10557 | ||
10558 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
10559 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
10560 | variable param_type, initialize it. Remove const/volatile qualifiers | |
10561 | for language_cplus and !show_artificial. Use param_type. | |
10562 | ||
93b55aa1 JK |
10563 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
10564 | ||
10565 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
10566 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
10567 | * symtab.h (struct symtab) <next>: Comment extension. | |
10568 | ||
181d9476 YQ |
10569 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
10570 | ||
10571 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
10572 | ||
b708a5c7 JK |
10573 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
10574 | ||
10575 | * common/Makefile.in: Add copyright header. | |
10576 | ||
c5187ac6 PA |
10577 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
10578 | ||
10579 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
10580 | here ... | |
10581 | (fetch_inferior_event): ... to here. | |
10582 | ||
4f3e6fb7 YQ |
10583 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
10584 | ||
10585 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
10586 | libcommon.a. | |
10587 | * configure.ac: Add common to sub dir. | |
10588 | * configure: Regenerate. | |
10589 | ||
b708a5c7 JK |
10590 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
10591 | ||
10592 | Build libcommon.a. | |
10593 | ||
10594 | * common/Makefile.in: New. | |
10595 | * common/configure.ac: New. | |
10596 | * common/aclocal.m4: New. | |
10597 | * common/configure: Generate. | |
10598 | ||
2287cc7e PA |
10599 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
10600 | ||
10601 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
10602 | side of the parenthesis. | |
10603 | ||
10604 | Merge from GCC: | |
10605 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 10606 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 10607 | |
fd62cb89 MS |
10608 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
10609 | ||
10610 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
10611 | ||
56d2815c JK |
10612 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10613 | ||
10614 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
10615 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
10616 | psubd and paddd. | |
10617 | ||
4f7d61a8 JK |
10618 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10619 | ||
10620 | PR 12361. | |
10621 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
10622 | phsubsw. | |
10623 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
10624 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
10625 | ||
54fcddd0 UW |
10626 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
10627 | ||
10628 | * dwarf2read.c (read_subroutine_type): Set special calling | |
10629 | convention flag for functions compiled by IBM XL C for OpenCL. | |
10630 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
10631 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
10632 | calling convention. | |
10633 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
10634 | IBM OpenCL vector types calling convention. | |
10635 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
10636 | (ppc_sysv_abi_broken_return_value): Likewise. | |
10637 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
10638 | types calling convention. | |
10639 | (ppc64_sysv_abi_return_value): Likewise. | |
10640 | * spu-tdep.c: Include "dwarf2.h" | |
10641 | (spu_return_value): Implement IBM OpenCL vector types calling | |
10642 | convention. | |
10643 | ||
d6dafb7c UW |
10644 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
10645 | ||
10646 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
10647 | correct ABI for AltiVec vector arguments. | |
10648 | ||
32b72a42 PA |
10649 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
10650 | ||
10651 | * valprint.c (val_print): Extend comment. | |
10652 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
10653 | interface explanation to val_print. | |
10654 | (ada_val_print_array): Adjust comment to current interface. | |
10655 | (print_field_values): Adjust comment to current interface. | |
10656 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
10657 | explanation to val_print. | |
10658 | * f-valprint.c (f_val_print): Ditto. | |
10659 | * jv-valprint.c (java_val_print): Ditto. | |
10660 | * m2-valprint.c (m2_val_print): Ditto. | |
10661 | * p-valprint.c (pascal_val_print): Ditto. | |
10662 | ||
9998af43 TJB |
10663 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10664 | ||
10665 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
10666 | ||
505500db | 10667 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 10668 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
10669 | |
10670 | * python/py-inferior.c (python_on_normal_stop): New function. | |
10671 | (python_on_resume): New function. | |
10672 | (python_inferior_exit): New function. | |
10673 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
10674 | inferior_exit observers. | |
10675 | * python/py-evtregistry.c: New file. | |
10676 | * python/py-threadevent.c : New file. | |
10677 | * python/py-event.c: New file. | |
10678 | * python/py-evts.c: New file. | |
10679 | * python/py-continueevent.c: New file. | |
10680 | * python/py-bpevent.c: New file. | |
10681 | * python/py-signalevent.c: New file. | |
10682 | * python/py-exetiedevent.c: New file. | |
10683 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
10684 | Move struct breakpoint_object from here... | |
10685 | * python/python-internal.h: ... to here. | |
10686 | * python/py-event.h: New file. | |
10687 | * python/py-events.h: New file. | |
10688 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
10689 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
10690 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
10691 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
10692 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
10693 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
10694 | Add build rules for all the above. | |
10695 | ||
9e0ac564 TT |
10696 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
10697 | ||
10698 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
10699 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
10700 | (dwarf2_section_size): New function. | |
10701 | (dwarf2_get_section_info): Unconditionally read section. | |
10702 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
10703 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
10704 | (dwarf2_symbol_mark_computed): Likewise. | |
10705 | ||
eee5b35e DD |
10706 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
10707 | ||
10708 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
10709 | ||
385203ed DD |
10710 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
10711 | ||
10712 | * mips-linux-tdep.c: Include xml-syscall.h. | |
10713 | (mips_linux_get_syscall_number): New function. | |
10714 | (mips_linux_init_abi): Add calls to | |
10715 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
10716 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
10717 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
10718 | * syscalls/mips-n32-linux.xml: New file. | |
10719 | * syscalls/mips-n64-linux.xml: New file. | |
10720 | * syscalls/mips-o32-linux.xml: New file. | |
10721 | ||
9277c30c UW |
10722 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
10723 | ||
10724 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
10725 | Complain about inverted range entries. | |
10726 | (dwarf2_record_block_ranges): Likewise. | |
10727 | ||
a3be7890 TJB |
10728 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
10729 | ||
10730 | Fix some typos. | |
10731 | * breakpoint.c (update_watchpoint): Fix name of the | |
10732 | update_global_location_list function. | |
10733 | (print_one_breakpoint): Fix typo. | |
10734 | (_initialize_breakpoint): Remove extra space in hbreak help | |
10735 | string. | |
10736 | * breakpoint.h (struct bp_location) <length>: Fix field | |
10737 | description. | |
10738 | ||
041274d8 PA |
10739 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
10740 | ||
10741 | * regcache.c (registers_changed_ptid): Don't explictly always | |
10742 | clear `current_regcache'. Only clear current_thread_ptid and | |
10743 | current_thread_arch when PTID matches. Only reinit the frame | |
10744 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
10745 | call to ... | |
10746 | (registers_changed): ... here. | |
10747 | ||
c1c2ab58 UW |
10748 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
10749 | ||
10750 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
10751 | starts with __stack_chk_guard as stack guard symbol. | |
10752 | ||
9011945e AB |
10753 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
10754 | ||
10755 | * disasm.c (compare_lines): Handle the end of sequence markers | |
10756 | within the line table to better support disassembling over | |
10757 | compilation unit boundaries. | |
10758 | ||
e0634ccf UW |
10759 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
10760 | ||
10761 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
10762 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
10763 | implementation even if no symbols are available. | |
10764 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
10765 | (arm_analyze_prologue): Likewise. | |
10766 | ||
0e9e9abd UW |
10767 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
10768 | ||
10769 | * arm-tdep.c: Include "observer.h". | |
10770 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
10771 | (arm_exidx_data_key): New static variable. | |
10772 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
10773 | (struct arm_exidx_data): Likewise. | |
10774 | (arm_exidx_data_free): New function. | |
10775 | (arm_compare_exidx_entries): Likewise. | |
10776 | (arm_obj_section_from_vma): Likewise. | |
10777 | (arm_exidx_new_objfile): Likewise. | |
10778 | (arm_find_exidx_entry): Likewise. | |
10779 | (arm_exidx_fill_cache): Likewise. | |
10780 | (arm_exidx_unwind_sniffer): Likewise. | |
10781 | (arm_exidx_unwind): New global variable. | |
10782 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
10783 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
10784 | observer. Register arm_exidx_data_key as objfile data. | |
10785 | ||
2e9e421f UW |
10786 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
10787 | ||
10788 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
10789 | due to accessing uninitialized variable. Fix indentation. | |
10790 | ||
580688f3 PA |
10791 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
10792 | ||
10793 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
10794 | adjustment, create a new value with adjusted contents rather than | |
10795 | changing the contents of the value being printed (and getting it | |
10796 | wrong). | |
10797 | ||
3d2c1d41 PA |
10798 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
10799 | ||
10800 | * xml-support.c (xml_find_attribute): New. | |
10801 | (xinclude_start_include): Use it. | |
10802 | * xml-support.h (xml_find_attribute): Declare. | |
10803 | * memory-map.c (memory_map_start_memory) | |
10804 | (memory_map_start_property): Use xml_find_attribute. | |
10805 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
10806 | xml_find_attribute. | |
10807 | * remote.c (start_thread): Use xml_find_attribute. | |
10808 | * solib-target.c (library_list_start_segment) | |
10809 | (library_list_start_section, library_list_start_library) | |
10810 | (library_list_start_list): Use xml_find_attribute. | |
10811 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
10812 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
10813 | (tdesc_start_field): Use xml_find_attribute. | |
10814 | ||
0af3e2db UW |
10815 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
10816 | ||
10817 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
10818 | (BUILD_OCL_VTYPES): Update. | |
10819 | ||
c1039e3c JB |
10820 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
10821 | ||
10822 | * configure.ac: Work around non-GNU sed limitation when computing | |
10823 | python version number. | |
10824 | * configure: Regenerate. | |
10825 | ||
600ea1be JK |
10826 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10827 | ||
10828 | Fix debug printing of TYPE_INSTANCE. | |
10829 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
10830 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
10831 | ||
56c12414 JK |
10832 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10833 | ||
10834 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
10835 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
10836 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
10837 | * ada-operator.inc: Rename the file to ... | |
10838 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
10839 | * expprint.c (op_name_standard): Remove all the entries. Include | |
10840 | "std-operator.def" instead. | |
10841 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
10842 | "ada-operator.def". Move all the entries ... | |
10843 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
10844 | ||
c52b559d PP |
10845 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
10846 | ||
10847 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
10848 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
10849 | * jit.c (jit_descriptor_addr): Delete. | |
10850 | (registering_code): Delete. | |
10851 | (clear_int): Delete. | |
10852 | (jit_inferior_data): New variable. | |
10853 | (struct jit_inferior_data): New type. | |
10854 | (get_jit_inferior_data): New function. | |
10855 | (jit_inferior_data_cleanup): New function. | |
10856 | (jit_read_descriptor): Adjust. | |
10857 | (jit_register_code): Adjust. | |
10858 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
10859 | (jit_inferior_init): ... from here. | |
10860 | (jit_breakpoint_re_set): Adjust. | |
10861 | (jit_reset_inferior_data_and_breakpoints): New function. | |
10862 | (jit_inferior_created_observer): Adjust. | |
10863 | (jit_inferior_exit_hook): Adjust. | |
10864 | (jit_executable_changed_observer): New function. | |
10865 | (jit_event_handler): Adjust. | |
10866 | (_initialize_jit): Adjust. | |
10867 | ||
e839132d MS |
10868 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
10869 | ||
10870 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
10871 | line. | |
10872 | ||
47a80e90 TT |
10873 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
10874 | ||
10875 | PR python/12216: | |
10876 | * python/python.c (execute_gdb_command): Call | |
10877 | prevent_dont_repeat. | |
10878 | * top.c (suppress_dont_repeat): New global. | |
10879 | (dont_repeat): Use it. | |
10880 | (prevent_dont_repeat): New function. | |
10881 | * command.h (prevent_dont_repeat): Declare. | |
10882 | ||
45a43567 TT |
10883 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
10884 | ||
10885 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
10886 | * python/py-breakpoint.c (bppy_set_silent): Use | |
10887 | breakpoint_set_silent. | |
10888 | (bppy_set_thread): Use breakpoint_set_thread. | |
10889 | (bppy_set_task): Use breakpoint_set_task. | |
10890 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
10891 | (breakpoint_set_task): Declare. | |
10892 | (make_breakpoint_silent): Remove. | |
10893 | * breakpoint.c (breakpoint_set_silent): New function. | |
10894 | (breakpoint_set_thread): Likewise. | |
10895 | (breakpoint_set_task): Likewise. | |
10896 | (make_breakpoint_silent): Remove. | |
10897 | ||
09d682a4 TT |
10898 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
10899 | ||
10900 | * breakpoint.h (user_breakpoint_p): Declare. | |
10901 | * breakpoint.c (user_breakpoint_p): New function. | |
10902 | (breakpoint_1): Use it. | |
10903 | (save_breakpoints): Likewise. | |
10904 | ||
9c4ea6c5 JB |
10905 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10906 | ||
10907 | * configure.ac: Add handling of Python distribution on Windows. | |
10908 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
10909 | sysconfig variables are not defined, then do not use them. | |
10910 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
10911 | instead. On Windows, return all paths using forward-slashes | |
10912 | rather than backslashes. | |
10913 | ||
ac534cba JB |
10914 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10915 | ||
10916 | * configure.ac: Remove fallback behavior for building | |
10917 | against Python. Remove tweaking of Python include path. | |
10918 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
10919 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
10920 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
10921 | Always restore CPPFLAGS and LIBS after linking test. | |
10922 | * configure: Regenerated. | |
10923 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
10924 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
10925 | * python/python-internal.h: Adjust includes of Python .h files. | |
10926 | ||
c2f0d045 JB |
10927 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10928 | ||
10929 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
10930 | in error message. | |
10931 | ||
6b0c4c1f JB |
10932 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
10933 | ||
10934 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
10935 | value test. | |
10936 | ||
672c9795 YQ |
10937 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
10938 | ||
10939 | * arm-linux-nat.c: Update calls to regcache_register_status | |
10940 | instead of regcache_valid_p. | |
10941 | * aix-thread.c: Likewise. | |
10942 | * i386gnu-nat.c: Likewise. | |
10943 | ||
80b23b6a JK |
10944 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
10945 | ||
10946 | Fix crash. | |
10947 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
10948 | touching TYPE_FIELD_ARTIFICIAL. | |
10949 | ||
4cd712bd RE |
10950 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
10951 | ||
10952 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
10953 | Committers. | |
10954 | ||
ffd5ec24 PA |
10955 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10956 | ||
10957 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
10958 | selected, don't try iterating over the traceframe's blocks. | |
10959 | (tfile_has_stack): If there's no traceframe selected, then there's | |
10960 | no stack. | |
10961 | (tfile_has_registers): If there's no traceframe selected, then | |
10962 | there's no registers. | |
10963 | ||
e8c9e0a1 PA |
10964 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10965 | ||
10966 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
10967 | haven't read anything. | |
10968 | ||
de15c4ab PA |
10969 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
10970 | ||
10971 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
10972 | and val_print_scalar_formatted. | |
10973 | ||
9f41c731 PA |
10974 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
10975 | ||
10976 | * tracepoint.c (tfile_read): New. | |
10977 | (tfile_open): Use it. | |
10978 | (tfile_get_traceframe_address): Use it. | |
10979 | (tfile_trace_find): Use it. | |
10980 | (walk_blocks_callback_func): New typedef. | |
10981 | (match_blocktype): New function. | |
10982 | (traceframe_walk_blocks): New function. | |
10983 | (traceframe_find_block_type): New function. | |
10984 | (tfile_fetch_registers, tfile_xfer_partial) | |
10985 | (tfile_get_trace_state_variable_value): Use | |
10986 | traceframe_find_block_type and tfile_read. | |
10987 | ||
cdefc55d KB |
10988 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
10989 | ||
10990 | * remote-mips.c: Add internationalization mark ups. Remove | |
10991 | trailing \n from already marked up strings. | |
10992 | ||
a81766d8 TT |
10993 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
10994 | ||
10995 | * python/py-prettyprint.c (print_string_repr): Clear | |
10996 | 'addressprint' option when calling val_print_string. | |
10997 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
10998 | option when calling val_print_string. | |
10999 | ||
74aedc46 TT |
11000 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
11001 | ||
11002 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
11003 | GDB_PY_LL_ARG. | |
11004 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
11005 | macros. | |
11006 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
11007 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
11008 | (gdb_py_long_as_ulongest): New defines. | |
11009 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
11010 | (gdb_py_int_as_long): Declare. | |
11011 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
11012 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
11013 | (valpy_long): Add comment. | |
11014 | * python/py-utils.c (get_addr_from_python): Use | |
11015 | gdb_py_long_as_ulongest. Handle overflow properly. | |
11016 | (gdb_py_object_from_longest): New function. | |
11017 | (gdb_py_object_from_ulongest): Likewise. | |
11018 | (gdb_py_int_as_long): Likewise. | |
11019 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
11020 | * python/py-symtab.c (salpy_get_pc): Use | |
11021 | gdb_py_long_from_ulongest. | |
11022 | (salpy_get_line): Use PyInt_FromLong. | |
11023 | * python/py-param.c (set_parameter_value): Use | |
11024 | gdb_py_int_as_long. | |
11025 | * python/py-lazy-string.c (stpy_get_address): Use | |
11026 | gdb_py_long_from_ulongest. | |
11027 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
11028 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
11029 | * python/py-breakpoint.c (bppy_set_thread): Use | |
11030 | gdb_py_int_as_long. | |
11031 | (bppy_set_task): Likewise. | |
11032 | (bppy_set_ignore_count): Likewise. | |
11033 | (bppy_set_hit_count): Likewise. | |
11034 | * python/py-block.c (blpy_get_start): Use | |
11035 | gdb_py_object_from_ulongest. | |
11036 | (blpy_get_end): Likewise. | |
11037 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
11038 | ||
e4f6d2ec TJB |
11039 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
11040 | ||
11041 | PR/symtab 11766: | |
11042 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
11043 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
11044 | equality test for objfile, initialize addr_low if needed. | |
11045 | ||
b30aa278 PA |
11046 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11047 | ||
11048 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
11049 | ||
ab2188aa PA |
11050 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11051 | ||
11052 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
11053 | instead of print_scalar_formatted. | |
11054 | (print_scalar_formatted): Don't handle 's' format strings here, | |
11055 | and add an assertion that we never see such format here. | |
11056 | * valprint.h (val_print_scalar_formatted): Declare. | |
11057 | * valprint.c (val_print_scalar_formatted): New. | |
11058 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
11059 | instead of print_scalar_formatted. | |
11060 | * jv-valprint.c (java_val_print): Ditto. | |
11061 | * p-valprint.c (pascal_val_print): Ditto. | |
11062 | * ada-valprint.c (ada_val_print_1): Ditto. | |
11063 | * f-valprint.c (f_val_print): Ditto. | |
11064 | * infcmd.c (registers_info): Ditto. | |
11065 | * m2-valprint.c (m2_val_print): Ditto. | |
11066 | ||
66d61a4c PA |
11067 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11068 | ||
11069 | * m2-valprint.c (print_unbounded_array): Pass | |
11070 | value_contents_for_printing rather than value_contents, to | |
11071 | m2_print_array_contents. Also pass in the value. | |
11072 | ||
831adc1f JK |
11073 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
11074 | ||
11075 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
11076 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
11077 | ||
20622269 PA |
11078 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11079 | ||
11080 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
11081 | than frame_register, and always pass a valid value to val_print. | |
11082 | ||
585fdaa1 PA |
11083 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11084 | ||
11085 | Centralize printing "<optimized out>". | |
11086 | ||
11087 | * valprint.h (val_print_optimized_out): Declare. | |
11088 | * cp-valprint.c (cp_print_value_fields): Use | |
11089 | val_print_optimized_out. | |
11090 | * jv-valprint.c (java_print_value_fields): Ditto. | |
11091 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
11092 | * printcmd.c (print_formatted): Ditto. | |
11093 | * valprint.c (valprint_check_validity): Ditto. | |
11094 | (value_check_printable): Ditto. | |
11095 | (val_print_optimized_out): New. | |
11096 | ||
29ec5263 PA |
11097 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11098 | ||
11099 | * infcmd.c (default_print_registers_info): Allocate values so to | |
11100 | never pass a NULL value to val_print. | |
11101 | ||
de4127a3 PA |
11102 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11103 | ||
11104 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
11105 | boolean. Make sure to always pass a value that matches the | |
11106 | contents buffer to callees. Preserve `address' for following | |
11107 | iterations. | |
11108 | * value.c (value_contents_for_printing_const): New. | |
11109 | (value_address): Constify value argument. | |
11110 | * value.h (value_contents_for_printing_const): Declare. | |
11111 | (value_address): Constify value argument. | |
11112 | ||
ee99023e PA |
11113 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11114 | ||
11115 | * regcache.c (struct regcache_descr): Rename | |
11116 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
11117 | and sizeof_cooked_register_valid_p to | |
11118 | sizeof_cooked_register_status. | |
11119 | (init_regcache_descr): Adjust. | |
11120 | (struct regcache): Rename register_valid_p field to | |
11121 | register_status. | |
11122 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
11123 | (do_cooked_read): Adjust. | |
11124 | (regcache_valid_p): Rename to ... | |
11125 | (regcache_register_status): ... this. Adjust. | |
11126 | (regcache_invalidate): Adjust. | |
11127 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
11128 | Adjust. | |
11129 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
11130 | as unavailable, not valid. | |
11131 | (regcache_dump): Adjust. | |
11132 | * regcache.h (enum register_status): New. | |
11133 | (regcache_register_status): Declare. | |
11134 | (regcache_invalidate): Delete declaration. | |
11135 | * corelow.c (get_core_registers): Adjust. | |
11136 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
11137 | * trad-frame.c (REG_VALUE): Rename to ... | |
11138 | (TF_REG_VALUE): ... this. | |
11139 | (REG_UNKNOWN): Rename to ... | |
11140 | (TF_REG_UNKNOWN): ... this. | |
11141 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
11142 | * mi/mi-main.c (register_changed_p): Adjust. | |
11143 | ||
99e42fd8 PA |
11144 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11145 | ||
11146 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
11147 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
11148 | overallocate hack. | |
11149 | (regcache_xmalloc): Rename to ... | |
11150 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
11151 | Allocate the regcache type accordingly. | |
11152 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
11153 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
11154 | cooked registers, not raw. | |
11155 | (regcache_dup_no_passthrough): Delete. | |
11156 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
11157 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
11158 | mention obsolete write_register_bytes. | |
11159 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
11160 | ||
f7605bc2 PA |
11161 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11162 | ||
11163 | Stop remote_read_bytes from handling partial reads itself. | |
11164 | ||
11165 | * remote-fileio.c: Include target.h. | |
11166 | (remote_fileio_write_bytes): Delete. | |
11167 | (remote_fileio_func_open, remote_fileio_func_write) | |
11168 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
11169 | target_read_memory. | |
11170 | (remote_fileio_func_stat): Use target_read_memory and | |
11171 | target_write_memory. | |
11172 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
11173 | (remote_fileio_func_system): Use target_read_memory. | |
11174 | * remote.c (remote_write_bytes): Make it static. | |
11175 | (remote_read_bytes): Don't handle partial reads here. | |
11176 | * remote.h (remote_read_bytes): Delete declaration. | |
11177 | ||
efc0eabd PA |
11178 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11179 | ||
11180 | Simplify XML parsing a bit. | |
11181 | ||
11182 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
11183 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
11184 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
11185 | parameter. | |
11186 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
11187 | gdb_xml_create_parser_and_cleanup_1. | |
11188 | (gdb_xml_parse_quick): New. | |
11189 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
11190 | * osdata.c (osdata_parse): Ditto. | |
11191 | * remote.c (remote_threads_info): Ditto. | |
11192 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
11193 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
11194 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
11195 | ||
314d366a KB |
11196 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
11197 | ||
11198 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
11199 | with remote-mips.o added to gdb_target_obs. | |
11200 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
11201 | ||
a491d753 PA |
11202 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
11203 | ||
11204 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
11205 | correct struct value to val_print. | |
11206 | (ada_val_print_1): Ditto. | |
11207 | ||
490f124f PA |
11208 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
11209 | ||
11210 | Don't lose embedded_offset in printing routines throughout. | |
11211 | ||
11212 | * valprint.h (val_print_array_elements): Change prototype. | |
11213 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
11214 | parameter, and adjust to pass it down to val_print, while passing | |
11215 | `valaddr' or `address' unmodified. Take embedded_offset into | |
11216 | account when checking repetitions. | |
11217 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
11218 | val_print_array_elements instead of adjusting `valaddr' and | |
11219 | `address'. | |
11220 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
11221 | embedded_offset to val_print_array_elements instead of adjusting | |
11222 | `valaddr'. | |
11223 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
11224 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
11225 | val_print_array_elements and pascal_object_print_value_fields | |
11226 | instead of adjusting `valaddr'. | |
11227 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
11228 | adjust to use it. | |
11229 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
11230 | use it. | |
11231 | (pascal_object_print_static_field): Use | |
11232 | value_contents_for_printing/value_embedded_offset, rather than | |
11233 | value_contents. | |
11234 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
11235 | parameter, and adjust to use it. Use | |
11236 | value_contents_for_printing/value_embedded_offset, rather than | |
11237 | value_contents. | |
11238 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
11239 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
11240 | it. | |
11241 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
11242 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
11243 | Instead work with offsets. Use | |
11244 | value_contents_for_printing/value_embedded_offset, rather than | |
11245 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
11246 | and use value_from_pointer to extract a target pointer, rather | |
11247 | than value_from_longest. | |
11248 | (print_variant_part): Add `offset' parameter. Replace | |
11249 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
11250 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
11251 | (ada_value_print): Use | |
11252 | value_contents_for_printing/value_embedded_offset, rather than | |
11253 | value_contents. | |
11254 | (print_record): Add `offset' parameter, and adjust to pass it | |
11255 | down. | |
11256 | (print_field_values): Add `offset' parameter. Replace | |
11257 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
11258 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
11259 | Use value_contents_for_printing/value_embedded_offset, rather than | |
11260 | value_contents. | |
11261 | * d-valprint.c (dynamic_array_type): Use | |
11262 | value_contents_for_printing/value_embedded_offset, rather than | |
11263 | value_contents. | |
11264 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
11265 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
11266 | (java_print_value_fields): Take `offset' into account. Don't | |
11267 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
11268 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
11269 | java_print_value_fields. | |
11270 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
11271 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
11272 | down adjusted offsets. | |
11273 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
11274 | (f_val_print): Take `embedded_offset' into account. | |
11275 | ||
7bfc9434 JB |
11276 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
11277 | ||
11278 | * inflow.c: Include "gdbcmd.h". | |
11279 | (interactive_mode): New static global, moved here from top.c. | |
11280 | (show_interactive_mode): New function, moved here from top.c. | |
11281 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
11282 | determine the current mode. | |
11283 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
11284 | setting. | |
11285 | (_initialize_inflow): Add the "set/show interactive-mode" | |
11286 | commands. Moved here from top.c, after having adjusted slightly | |
11287 | the help text. | |
11288 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
11289 | to inflow.c. | |
11290 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
11291 | setting, moved to infow.c. | |
11292 | (init_main): Remove creation of the "set/show interactive-mode" | |
11293 | commands, moved to inflow.c. | |
11294 | ||
44603653 JB |
11295 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
11296 | ||
11297 | * NEWS: Add entry for native ia64-hpux support. | |
11298 | ||
4694da01 TT |
11299 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
11300 | ||
11301 | PR mi/8618: | |
11302 | * thread.c (free_thread): Free 'name'. | |
11303 | (print_thread_info): Emit thread name. Change CLI output. | |
11304 | (thread_name_command): New function. | |
11305 | (do_captured_thread_select): Emit newline. | |
11306 | (_initialize_thread): Register 'thread name' command. | |
11307 | * target.h (struct target_ops) <to_thread_name>: New field. | |
11308 | (target_thread_name): New macro. | |
11309 | * target.c (update_current_target): Handle to_thread_name. | |
11310 | * python/py-infthread.c (thpy_get_name): New function. | |
11311 | (thpy_set_name): Likewise. | |
11312 | (thread_object_getset): Add "name". | |
11313 | * linux-nat.c (linux_nat_thread_name): New function. | |
11314 | (linux_nat_add_target): Set to_thread_name. | |
11315 | * gdbthread.h (struct thread_info) <name>: New field. | |
11316 | ||
10d44370 JB |
11317 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
11318 | ||
11319 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
11320 | (ada_val_print_1): Likewise. | |
11321 | ||
e3acb115 JB |
11322 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
11323 | ||
11324 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
11325 | upper limit address is not greater than the function end address | |
11326 | when the upper limit could not be computed using the debugging | |
11327 | info. | |
11328 | ||
dc92e161 TT |
11329 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
11330 | ||
11331 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
11332 | get_regcomp_error. | |
11333 | * utils.c: Include gdb_regex.h. | |
11334 | (do_regfree_cleanup): New function. | |
11335 | (make_regfree_cleanup): Likewise. | |
11336 | (get_regcomp_error): Likewise. | |
11337 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
11338 | ||
f55af66d TT |
11339 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
11340 | ||
11341 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
11342 | re_compile_fastmap. | |
11343 | ||
a5a44b53 PM |
11344 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
11345 | ||
11346 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
11347 | for internal variables. | |
11348 | (last_was_structop): New static variable. | |
11349 | (COMPLETE): New token. | |
11350 | (field_exp): New rule to group all '.' suffix handling. | |
11351 | Add mark_struct_expression calls when approriate to be able | |
11352 | to correctly find fields for completion. | |
11353 | (yylex): Adapt to handle field completion and set INTVAR when | |
11354 | required. | |
11355 | ||
2c291032 YQ |
11356 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
11357 | ||
11358 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
11359 | save_reggroup, restore_reggroup and all_reggroup. | |
11360 | ||
447b483c JB |
11361 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
11362 | ||
11363 | * ada-valprint. (ada_printchar): Use the correct type length | |
11364 | in call to ada_emit_char. | |
11365 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
11366 | ||
7b64a93b PM |
11367 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
11368 | ||
11369 | * solib-som.h (hpux_major_release): Declare variable here. | |
11370 | * solib-som.c: Remove <sys/utsname.h> header. | |
11371 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
11372 | (hpux_major_release): Make global, change default value to | |
11373 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 11374 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
11375 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
11376 | Add "solib-som.h" header. | |
11377 | (set_hpux_major_release): New function. | |
11378 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
11379 | ||
4e18c053 MF |
11380 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
11381 | ||
11382 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
11383 | ||
a9df6b22 JB |
11384 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
11385 | ||
11386 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
11387 | new-line at end of warning message. | |
11388 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
11389 | error message. | |
11390 | * ia64-hpux-tdep.c: Rephrase comment. | |
11391 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
11392 | dld_flags from "long long" to ULONGEST. | |
11393 | ||
ecb956dd PA |
11394 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
11395 | ||
11396 | * target.h (deprecated_child_ops): Delete declaration. | |
11397 | * target.c (deprecated_child_ops): Delete definition. | |
11398 | ||
76adfcae PA |
11399 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
11400 | ||
11401 | * Makefile.in (hpux-thread.o): Delete rule. | |
11402 | * configure.ac: Don't check for HPUX DCE threads support. | |
11403 | * configure, config.in: Regenerate. | |
11404 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
11405 | (hppa_hpux_child_can_run): Delete. | |
11406 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
11407 | * hpux-thread.c: Delete. | |
11408 | ||
042e866e JB |
11409 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11410 | ||
11411 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
11412 | ||
4ffa5a33 JB |
11413 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11414 | ||
11415 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
11416 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
11417 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
11418 | ||
de8fa76c JB |
11419 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11420 | ||
11421 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
11422 | to the case where instream is stdin. | |
11423 | ||
c4de7027 JB |
11424 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11425 | ||
11426 | * ia64-tdep.h (struct regcache): Forward declare. | |
11427 | (struct ia64_infcall_ops): New struct type. | |
11428 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
11429 | and "infcall_ops". | |
11430 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
11431 | Renames ia64_find_global_pointer. | |
11432 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
11433 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
11434 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
11435 | methods. | |
11436 | (ia64_infcall_ops): New static global constant. | |
11437 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
11438 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
11439 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
11440 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
11441 | (ia64_hpux_dummy_code): New static global constant. | |
11442 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
11443 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
11444 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
11445 | New function. | |
11446 | (ia64_hpux_infcall_ops): New static global constant. | |
11447 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
11448 | for inferior function calls to work properly on ia64-hpux. | |
11449 | ||
77ca787b JB |
11450 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11451 | ||
11452 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
11453 | * ia64-tdep.h (struct frame_info): forward declaration. | |
11454 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
11455 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
11456 | to determine the size of the register frame. | |
11457 | (ia64_size_of_register_frame): New function. | |
11458 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
11459 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
11460 | (IA64_HPUX_UREG_REASON): New macro. | |
11461 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
11462 | New functions. | |
11463 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
11464 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
11465 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
11466 | objects. | |
11467 | ||
92c9a463 JB |
11468 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11469 | ||
11470 | Add support for ia64-hpux. | |
11471 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
11472 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
11473 | ||
11474 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
11475 | floatformats. | |
11476 | * configure.tgt: Add handling for ia64-hpux targets. | |
11477 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
11478 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
11479 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
11480 | ||
f688d93f JB |
11481 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11482 | ||
11483 | [ttrace] Compute thread list immediately after attach. | |
11484 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
11485 | New subprogram. | |
11486 | (inf_ttrace_attach): Use it. | |
11487 | ||
1b89e62f JB |
11488 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11489 | ||
11490 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
11491 | if we could not determine the frame's function address. Instead, | |
11492 | use the frame's PC, and then continue. | |
11493 | ||
3e5e6e2a JB |
11494 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11495 | ||
11496 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
11497 | not already defined. | |
11498 | ||
825d6d8a JB |
11499 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11500 | ||
11501 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
11502 | (ia64_extract_return_value): Handle integral values that are | |
11503 | less than 8 bytes long. | |
11504 | (ia64_push_dummy_call): Likewise. | |
11505 | ||
7458e667 JB |
11506 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
11507 | ||
11508 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
11509 | floatformat_ia64_ext. | |
11510 | (floatformat_ia64_ext_big): New static const. | |
11511 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
11512 | ||
1b05df00 TT |
11513 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
11514 | ||
11515 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
11516 | messages. | |
11517 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
11518 | (mi_cmd_thread_list_ids): Likewise. | |
11519 | (mi_cmd_data_list_changed_registers): Likewise. | |
11520 | (mi_cmd_data_list_register_values): Likewise. | |
11521 | (mi_cmd_data_write_register_values): Likewise. | |
11522 | (mi_cmd_data_evaluate_expression): Likewise. | |
11523 | (mi_cmd_data_read_memory): Likewise. | |
11524 | (mi_cmd_data_read_memory_bytes): Likewise. | |
11525 | (mi_cmd_data_write_memory): Likewise. | |
11526 | (mi_cmd_enable_timings): Likewise. | |
11527 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
11528 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
11529 | (mi_cmd_var_delete): Likewise. | |
11530 | (mi_cmd_var_set_format): Likewise. | |
11531 | (mi_cmd_var_show_format): Likewise. | |
11532 | (mi_cmd_var_info_num_children): Likewise. | |
11533 | (mi_cmd_var_list_children): Likewise. | |
11534 | (mi_cmd_var_info_type): Likewise. | |
11535 | (mi_cmd_var_info_expression): Likewise. | |
11536 | (mi_cmd_var_show_attributes): Likewise. | |
11537 | (mi_cmd_var_assign): Likewise. | |
11538 | (mi_cmd_var_update): Likewise. | |
11539 | (mi_cmd_enable_pretty_printing): Likewise. | |
11540 | (mi_cmd_var_set_update_range): Likewise. | |
11541 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
11542 | messages. | |
11543 | (mi_cmd_target_file_put): Likewise. | |
11544 | (mi_cmd_target_file_delete): Likewise. | |
11545 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
11546 | messages. | |
11547 | (mi_cmd_stack_info_depth): Likewise. | |
11548 | (mi_cmd_stack_list_locals): Likewise. | |
11549 | (mi_cmd_stack_list_args): Likewise. | |
11550 | (mi_cmd_stack_select_frame): Likewise. | |
11551 | (mi_cmd_stack_select_frame): Likewise. | |
11552 | (mi_cmd_stack_info_frame): Likewise. | |
11553 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
11554 | messages. | |
11555 | (mi_cmd_file_list_exec_source_files): Likewise. | |
11556 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
11557 | (mi_cmd_env_cd): Likewise. | |
11558 | (mi_cmd_env_path): Likewise. | |
11559 | (mi_cmd_env_dir): Likewise. | |
11560 | (mi_cmd_inferior_tty_show): Likewise. | |
11561 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
11562 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
11563 | (mi_cmd_break_watch): Likewise. | |
11564 | ||
ad422571 TJB |
11565 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
11566 | ||
11567 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
11568 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
11569 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
11570 | (ppc_linux_insert_watchpoint): Likewise. | |
11571 | ||
c2ff108b JK |
11572 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
11573 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
11574 | ||
11575 | PR fortran/11104 and DWARF unbound arrays detection. | |
11576 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
11577 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
11578 | unspecified upper bound. | |
11579 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
11580 | variables array_size_array, tmp_type and offset_item. New variable | |
11581 | array. Remove call to f77_get_upperbound. New variables array_type | |
11582 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
11583 | the final call to deprecated_set_value_type. | |
11584 | ||
41e8491f JK |
11585 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
11586 | ||
11587 | Make value allocations more lazy. | |
11588 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
11589 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 11590 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
11591 | instead of allocate_value and set_value_lazy. |
11592 | * findvar.c (value_of_register_lazy): Likewise. | |
11593 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 11594 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
11595 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
11596 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
11597 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
11598 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
11599 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
11600 | the end, remove set_value_lazy there. | |
11601 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
11602 | instead of allocate_value and set_value_lazy when possible. | |
11603 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
11604 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
11605 | of allocate_value and set_value_lazy. | |
11606 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
11607 | allocate_value and set_value_lazy when possible. | |
11608 | ||
b716877b AB |
11609 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
11610 | ||
11611 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
11612 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
11613 | dumping of instruction opcodes. | |
11614 | ||
d5ae309f JB |
11615 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
11616 | ||
11617 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
11618 | appropiately. | |
11619 | ||
98871305 TT |
11620 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
11621 | ||
11622 | * thread.c (do_captured_thread_select): Emit newline before | |
11623 | printing frame. | |
11624 | ||
c378eb4e MS |
11625 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
11626 | ||
11627 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
11628 | * score-tdep.c: Ditto. | |
11629 | * score-tdep.h: Ditto. | |
11630 | * ser-base.c: Ditto. | |
11631 | * ser-go32.c: Ditto. | |
11632 | * serial.c: Ditto. | |
11633 | * serial.h: Ditto. | |
11634 | * ser-mingw.c: Ditto. | |
11635 | * ser-pipe.c: Ditto. | |
11636 | * ser-tcp.c: Ditto. | |
11637 | * ser-unix.c: Ditto. | |
11638 | * sh64-tdep.c: Ditto. | |
11639 | * shnbsd-nat.c: Ditto. | |
11640 | * sh-tdep.c: Ditto. | |
11641 | * sh-tdep.h: Ditto. | |
11642 | * solib.c: Ditto. | |
11643 | * solib-darwin.c: Ditto. | |
11644 | * solib-frv.c: Ditto. | |
11645 | * solib.h: Ditto. | |
11646 | * solib-irix.c: Ditto. | |
11647 | * solib-osf.c: Ditto. | |
11648 | * solib-pa64.c: Ditto. | |
11649 | * solib-som.c: Ditto. | |
11650 | * solib-spu.c: Ditto. | |
11651 | * solib-sunos.c: Ditto. | |
11652 | * solib-svr4.c: Ditto. | |
11653 | * solist.h: Ditto. | |
11654 | * sol-thread.c: Ditto. | |
11655 | * somread.c: Ditto. | |
11656 | * source.c: Ditto. | |
11657 | * source.h: Ditto. | |
11658 | * sparc64-linux-tdep.c: Ditto. | |
11659 | * sparc64-tdep.c: Ditto. | |
11660 | * sparc-linux-nat.c: Ditto. | |
11661 | * sparc-linux-tdep.c: Ditto. | |
11662 | * sparc-sol2-nat.c: Ditto. | |
11663 | * sparc-sol2-tdep.c: Ditto. | |
11664 | * sparc-tdep.c: Ditto. | |
11665 | * sparc-tdep.h: Ditto. | |
11666 | * spu-tdep.c: Ditto. | |
11667 | * stabsread.c: Ditto. | |
11668 | * stabsread.h: Ditto. | |
11669 | * stack.c: Ditto. | |
11670 | * symfile.c: Ditto. | |
11671 | * symfile.h: Ditto. | |
11672 | * symmisc.c: Ditto. | |
11673 | * symtab.c: Ditto. | |
11674 | * symtab.h: Ditto. | |
11675 | * target.c: Ditto. | |
11676 | * target-descriptions.c: Ditto. | |
11677 | * target-descriptions.h: Ditto. | |
11678 | * target.h: Ditto. | |
11679 | * target-memory.c: Ditto. | |
11680 | * terminal.h: Ditto. | |
11681 | * thread.c: Ditto. | |
11682 | * top.c: Ditto. | |
11683 | * tracepoint.c: Ditto. | |
11684 | * tracepoint.h: Ditto. | |
11685 | * trad-frame.h: Ditto. | |
11686 | * typeprint.c: Ditto. | |
11687 | ||
581e13c1 MS |
11688 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
11689 | ||
11690 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
11691 | * ui-file.h: Ditto. | |
11692 | * ui-out.c: Ditto. | |
11693 | * ui-out.h: Ditto. | |
11694 | * utils.c: Ditto. | |
11695 | * v850-tdep.c: Ditto. | |
11696 | * valarith.c: Ditto. | |
11697 | * valops.c: Ditto. | |
11698 | * valprint.c: Ditto. | |
11699 | * valprint.h: Ditto. | |
11700 | * value.c: Ditto. | |
11701 | * value.h: Ditto. | |
11702 | * varobj.c: Ditto. | |
11703 | * varobj.h: Ditto. | |
11704 | * vax-tdep.c: Ditto. | |
11705 | * vec.c: Ditto. | |
11706 | * vec.h: Ditto. | |
11707 | * version.h: Ditto. | |
11708 | * windows-nat.c: Ditto. | |
11709 | * windows-tdep.c: Ditto. | |
11710 | * xcoffread.c: Ditto. | |
11711 | * xcoffsolib.c: Ditto. | |
11712 | * xml-support.c: Ditto. | |
11713 | * xstormy16-tdep.c: Ditto. | |
11714 | * xtensa-tdep.c: Ditto. | |
11715 | * xtensa-tdep.h: Ditto. | |
11716 | ||
90e4670f TJB |
11717 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
11718 | ||
11719 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
11720 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
11721 | ||
e09342b5 TJB |
11722 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
11723 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
11724 | ||
11725 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 11726 | * breakpoint.h |
e09342b5 TJB |
11727 | (struct breakpoint_ops) <resources_needed>: New method. |
11728 | Initialize to NULL in all existing breakpoint_ops instances. | |
11729 | (struct breakpoint) <exact>: New field. | |
11730 | (target_exact_watchpoints): Declare external global. | |
11731 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
11732 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
11733 | b->enable_state to bp_enabled before calling | |
11734 | hw_watchpoint_used_count. | |
11735 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
11736 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
11737 | if available. | |
11738 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
11739 | if the watchpoint is exact. | |
11740 | (resources_needed_watchpoint): New function. | |
11741 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
11742 | (watch_command_1): Set b->exact if the user asked for an exact | |
11743 | watchpoint and one can be set. | |
11744 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
11745 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
11746 | the user asks for an exact watchpoint and one can be set. Return | |
11747 | number of needed debug registers to watch the expression. | |
11748 | * gdbtypes.c (is_scalar_type): New function, based on | |
11749 | valprint.c:scalar_type_p. | |
11750 | (is_scalar_type_recursive): New function. | |
11751 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
11752 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
11753 | handle regions when ranged watchpoints are available. | |
11754 | (create_watchpoint_request): New function. | |
11755 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
11756 | create_watchpoint_request. | |
11757 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
11758 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
11759 | `set powerpc' and `show powerpc' commands. | |
11760 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
11761 | Mention documentation comment in the target macro. | |
11762 | (target_region_ok_for_hw_watchpoint): Document return value. | |
11763 | ||
9fa40276 TJB |
11764 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
11765 | ||
11766 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
11767 | hardware watchpoint after the bp_locations are created. | |
11768 | ||
77b06cd7 TJB |
11769 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
11770 | ||
11771 | Convert hardware watchpoints to use breakpoint_ops. | |
11772 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
11773 | <insert_location>: ... this. Return int instead of void. | |
11774 | Accept pointer to struct bp_location instead of pointer to | |
11775 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 11776 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
11777 | <remove_location>: ... this. Accept pointer to struct bp_location |
11778 | instead of pointer to struct breakpoint. Adapt all implementations. | |
11779 | * breakpoint.c (insert_catchpoint): Delete function. | |
11780 | (insert_bp_location): Call the watchpoint or catchpoint's | |
11781 | breakpoint_ops.insert method. | |
11782 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
11783 | breakpoint_ops.remove method. | |
11784 | (insert_watchpoint, remove_watchpoint): New functions. | |
11785 | (watchpoint_breakpoint_ops): New structure. | |
11786 | (watch_command_1): Initialize the OPS field. | |
11787 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
11788 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
11789 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
11790 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
11791 | Delete functions. | |
11792 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
11793 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
11794 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
11795 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
11796 | * target.c (update_current_target): Change default implementation of | |
11797 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
11798 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
11799 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
11800 | to_set_syscall_catchpoint to return_one. | |
11801 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
11802 | (debug_to_insert_exec_catchpoint): Report return value. | |
11803 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
11804 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
11805 | of void. | |
11806 | ||
9b20d036 MS |
11807 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
11808 | ||
11809 | * arm-tdep.c: Internationalization. | |
11810 | * c-lang.c: Ditto. | |
11811 | * charset.c: Ditto. | |
11812 | * fork-child.c: Ditto. | |
11813 | * nto-procfs.c: Ditto. | |
11814 | * ppc-sysv-tdep.c: Ditto. | |
11815 | * procfs.c: Ditto. | |
11816 | * remote-mips.c: Ditto. | |
11817 | * remote.c: Ditto. | |
11818 | * rs6000-nat.c: Ditto. | |
11819 | * rs6000-tdep.c: Ditto. | |
11820 | * target.c: Ditto. | |
11821 | * valops.c: Ditto. | |
11822 | * value.c: Ditto. | |
11823 | * xml-support.c: Ditto. | |
11824 | * mi/mi-cmd-break.c: Ditto. | |
11825 | * mi/mi-cmd-var.c: Ditto. | |
11826 | * mi/mi-interp.c: Ditto. | |
11827 | * mi/mi-main.c: Ditto. | |
11828 | ||
dae477fe AB |
11829 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
11830 | ||
11831 | * remote-sim.c (gdbsim_store_register): Update API to | |
11832 | sim_store_register to check more error conditions. | |
11833 | ||
0df8b418 MS |
11834 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
11835 | ||
11836 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
11837 | * nto-tdep.c: Ditto. | |
11838 | * nto-tdep.h: Ditto. | |
11839 | * objc-exp.y: Ditto. | |
11840 | * objc-lang.c: Ditto. | |
11841 | * objfiles.c: Ditto. | |
11842 | * objfiles.h: Ditto. | |
11843 | * observer.c: Ditto. | |
11844 | * opencl-lang.c: Ditto. | |
11845 | * osabi.c: Ditto. | |
11846 | * parse.c: Ditto. | |
11847 | * parser-defs.h: Ditto. | |
11848 | * p-exp.y: Ditto. | |
11849 | * p-lang.c: Ditto. | |
11850 | * posix-hdep.c: Ditto. | |
11851 | * ppcbug-rom.c: Ditto. | |
11852 | * ppc-linux-nat.c: Ditto. | |
11853 | * ppc-linux-tdep.c: Ditto. | |
11854 | * ppc-linux-tdep.h: Ditto. | |
11855 | * ppcnbsd-tdep.c: Ditto. | |
11856 | * ppcobsd-tdep.c: Ditto. | |
11857 | * ppcobsd-tdep.h: Ditto. | |
11858 | * ppc-sysv-tdep.c: Ditto. | |
11859 | * ppc-tdep.h: Ditto. | |
11860 | * printcmd.c: Ditto. | |
11861 | * proc-abi.c: Ditto. | |
11862 | * proc-flags.c: Ditto. | |
11863 | * procfs.c: Ditto. | |
11864 | * proc-utils.h: Ditto. | |
11865 | * progspace.h: Ditto. | |
11866 | * prologue-value.c: Ditto. | |
11867 | * prologue-value.h: Ditto. | |
11868 | * psympriv.h: Ditto. | |
11869 | * psymtab.c: Ditto. | |
11870 | * p-typeprint.c: Ditto. | |
11871 | * p-valprint.c: Ditto. | |
11872 | * ravenscar-sparc-thread.c: Ditto. | |
11873 | * ravenscar-thread.c: Ditto. | |
11874 | * ravenscar-thread.h: Ditto. | |
11875 | * record.c: Ditto. | |
11876 | * regcache.c: Ditto. | |
11877 | * regcache.h: Ditto. | |
11878 | * remote.c: Ditto. | |
11879 | * remote-fileio.c: Ditto. | |
11880 | * remote-fileio.h: Ditto. | |
11881 | * remote.h: Ditto. | |
11882 | * remote-m32r-sdi.c: Ditto. | |
11883 | * remote-mips.c: Ditto. | |
11884 | * remote-sim.c: Ditto. | |
11885 | * rs6000-aix-tdep.c: Ditto. | |
11886 | * rs6000-nat.c: Ditto. | |
11887 | * rs6000-tdep.c: Ditto. | |
11888 | ||
0d7a18f7 MS |
11889 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
11890 | ||
11891 | * charset.c (validate): Internationalization. | |
11892 | * coffread.c (read_one_sym): Ditto. | |
11893 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
11894 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
11895 | * inflow.c (new_tty): Ditto. | |
11896 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
11897 | * m32c-tdep.c (m32c_return_value): Ditto. | |
11898 | * mep-tdep.c (mep_store_return_value): Ditto. | |
11899 | * score-tdep.c (score7_fetch_insn): Ditto. | |
11900 | * ser-mingw.c (pipe_windows_open): Ditto. | |
11901 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
11902 | * spu-tdep.c (spu_register_type): Ditto. | |
11903 | * tracepoint.c (trace_find_command): Ditto. | |
11904 | * valarith.c (value_pos): Ditto. | |
11905 | ||
9a153e0b JB |
11906 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
11907 | ||
11908 | * ada-valprint.c (printstr): Minor comment reformatting. | |
11909 | ||
35ecd2d6 MS |
11910 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
11911 | ||
11912 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
11913 | markup. | |
11914 | ||
1777feb0 MS |
11915 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
11916 | ||
11917 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
11918 | * hppa-hpux-tdep.c: Ditto. | |
11919 | * hppa-linux-nat.c: Ditto. | |
11920 | * hppa-linux-tdep.c: Ditto. | |
11921 | * hppanbsd-tdep.c: Ditto. | |
11922 | * hppa-tdep.c: Ditto. | |
11923 | * hppa-tdep.h: Ditto. | |
11924 | * hpux-thread.c: Ditto. | |
11925 | * i386-cygwin-tdep.c: Ditto. | |
11926 | * i386-darwin-nat.c: Ditto. | |
11927 | * i386gnu-nat.c: Ditto. | |
11928 | * i386-linux-nat.c: Ditto. | |
11929 | * i386-linux-tdep.c: Ditto. | |
11930 | * i386-nat.c: Ditto. | |
11931 | * i386-nat.h: Ditto. | |
11932 | * i386nbsd-tdep.c: Ditto. | |
11933 | * i386-sol2-nat.c: Ditto. | |
11934 | * i386-stub.c: Ditto. | |
11935 | * i386-tdep.c: Ditto. | |
11936 | * i386-tdep.h: Ditto. | |
11937 | * i387-tdep.c: Ditto. | |
11938 | * ia64-linux-nat.c: Ditto. | |
11939 | * ia64-linux-tdep.c: Ditto. | |
11940 | * ia64-tdep.c: Ditto. | |
11941 | * infcall.c: Ditto. | |
11942 | * infcall.h: Ditto. | |
11943 | * infcmd.c: Ditto. | |
11944 | * inferior.c: Ditto. | |
11945 | * inferior.h: Ditto. | |
11946 | * infloop.c: Ditto. | |
11947 | * inflow.c: Ditto. | |
11948 | * infrun.c: Ditto. | |
11949 | * interps.c: Ditto. | |
11950 | * interps.h: Ditto. | |
11951 | * iq2000-tdep.c: Ditto. | |
11952 | * irix5-nat.c: Ditto. | |
11953 | * jit.c: Ditto. | |
11954 | * jit.h: Ditto. | |
11955 | * jv-exp.y: Ditto. | |
11956 | * jv-lang.c: Ditto. | |
11957 | * jv-lang.h: Ditto. | |
11958 | * jv-typeprint.c: Ditto. | |
11959 | * jv-valprint.c: Ditto. | |
11960 | * language.c: Ditto. | |
11961 | * language.h: Ditto. | |
11962 | * linespec.c: Ditto. | |
11963 | * linux-fork.c: Ditto. | |
11964 | * linux-nat.c: Ditto. | |
11965 | * linux-thread-db.c: Ditto. | |
11966 | * lm32-tdep.c: Ditto. | |
11967 | ||
025bb325 MS |
11968 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
11969 | ||
11970 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
11971 | * m2-lang.c: Ditto. | |
11972 | * m2-typeprint.c: Ditto. | |
11973 | * m2-valprint.c: Ditto. | |
11974 | * m32c-tdep.c: Ditto. | |
11975 | * m32r-linux-nat.c: Ditto. | |
11976 | * m32r-rom.c: Ditto. | |
11977 | * m32r-tdep.c: Ditto. | |
11978 | * m32r-tdep.h: Ditto. | |
11979 | * m68hc11-tdep.c: Ditto. | |
11980 | * m58klinux-nat.c: Ditto. | |
11981 | * m68k-tdep.c: Ditto. | |
11982 | * m88k-tdep.c: Ditto. | |
11983 | * m88k-tdep.h: Ditto. | |
11984 | * machoread.c: Ditto. | |
11985 | * macrocmd.c: Ditto. | |
11986 | * macroexp.c: Ditto. | |
11987 | * macrotab.c: Ditto. | |
11988 | * main.c: Ditto. | |
11989 | * maint.c: Ditto. | |
11990 | * mdebugread.c: Ditto. | |
11991 | * mdebugread.h: Ditto. | |
11992 | * memattr.c: Ditto. | |
11993 | * memattr.h: Ditto. | |
11994 | * memory-map.h: Ditto. | |
11995 | * mep-tdep.c: Ditto. | |
11996 | * microblaze-rom.c: Ditto. | |
11997 | * microblaze-tdep.c: Ditto. | |
11998 | * minsyms.c: Ditto. | |
11999 | * mips-irix-tdep.c: Ditto. | |
12000 | * mips-linux-nat.c: Ditto. | |
12001 | * mips-linux-tdep.c: Ditto. | |
12002 | * mips-linux-tdep.h: Ditto. | |
12003 | * mipsnbsd-nat.c: Ditto. | |
12004 | * mipsnbsd-tdep.c: Ditto. | |
12005 | * mipsread.c: Ditto. | |
12006 | * mips-tdep.c: Ditto. | |
12007 | * mips-tdep.h: Ditto. | |
12008 | * mn10300-linux-tdep.c: Ditto. | |
12009 | * mn10300-tdep.c: Ditto. | |
12010 | * mn10300-tdep.h: Ditto. | |
12011 | * monitor.c: Ditto. | |
12012 | * monitor.h: Ditto. | |
12013 | * moxie-tdep.c: Ditto. | |
12014 | * moxie-tdep.h: Ditto. | |
12015 | * mt-tdep.c: Ditto. | |
12016 | ||
1642781b MF |
12017 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
12018 | ||
12019 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
12020 | ||
394b0adb JB |
12021 | 2011-01-08 Robert Millan <rmh@gnu.org> |
12022 | ||
12023 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
12024 | ||
b670013c MS |
12025 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
12026 | ||
12027 | * charset.c (_initialize_charset): Fix typo in string. | |
12028 | ||
a743e542 MS |
12029 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
12030 | ||
12031 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
12032 | for i18n. | |
f2eb0bc8 | 12033 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
12034 | Split line so that operator goes to beginning of line. |
12035 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
12036 | assignment out of if statement. | |
12037 | ||
0963b4bd MS |
12038 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
12039 | ||
12040 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
12041 | * ada-lang.h: Ditto. | |
12042 | * ada-tasks.c: Ditto. | |
12043 | * ada-valprint.c: Ditto. | |
12044 | * aix-threads.c: Ditto. | |
12045 | * alpha-linux-nat.c: Ditto. | |
12046 | * alpha-linux-tdep.c: Ditto. | |
12047 | * alpha-mdebug-tdep.c: Ditto. | |
12048 | * alpha-nat.c: Ditto. | |
12049 | * alpha-osf1-tdep.c: Ditto. | |
12050 | * alpha-tdep.c: Ditto. | |
12051 | * alphabsd-nat.c: Ditto. | |
12052 | * alphabsd-tdep.c: Ditto. | |
12053 | * amd64-darwin-tdep.c: Ditto. | |
12054 | * amd64-linux-nat.c: Ditto. | |
12055 | * amd64-linux-tdep.c: Ditto. | |
12056 | * amd64-sol2-tdep.c: Ditto. | |
12057 | * amd64-tdep.c: Ditto. | |
12058 | * amd64-fbsd-tdep.c: Ditto. | |
12059 | * amd64-nbsd-tdep.c: Ditto. | |
12060 | * amd64-obsd-tdep.c: Ditto. | |
12061 | * amd64-linux-nat.c: Ditto. | |
12062 | * amd64-linux-tdep.c: Ditto. | |
12063 | * arm-tdep.c: Ditto. | |
12064 | * arm-tdep.h: Ditto. | |
12065 | * armnbsd-nat.c: Ditto. | |
12066 | * avr-tdep.c: Ditto. | |
12067 | * bfin-tdep.c: Ditto. | |
12068 | * bsd-kvm.c: Ditto. | |
12069 | * c-typeprintc: Ditto. | |
12070 | * c-valprint.c: Ditto. | |
12071 | * coff-pe-read.h: Ditto. | |
12072 | * coffreead.c: Ditto. | |
12073 | * cris-tdep.c: Ditto. | |
12074 | * d-lang.c: Ditto. | |
12075 | * darwin-nat-info.c: Ditto. | |
12076 | * darwin-nat.c: Ditto. | |
12077 | * dbug-rom.c: Ditto. | |
12078 | * dbxread.c: Ditto. | |
12079 | * dcache.c: Ditto. | |
12080 | * dcache.h: Ditto. | |
12081 | * dec-thread.c: Ditto. | |
12082 | * defs.h: Ditto. | |
12083 | * demangle.c: Ditto. | |
12084 | * dicos-tdep.c: Ditto. | |
12085 | * dictionary.c: Ditto. | |
12086 | * dictionary.h: Ditto. | |
12087 | * dink32-rom.c: Ditto. | |
12088 | * disasm.c: Ditto. | |
12089 | * doublest.c: Ditto. | |
12090 | * dsrec.c: Ditto. | |
12091 | * dummy-frame.c: Ditto. | |
12092 | * dwarf2-frame.c: Ditto. | |
12093 | * dwarf2expr.c: Ditto. | |
12094 | * dwarf2loc.c: Ditto. | |
12095 | * dwarf2read.c: Ditto. | |
12096 | * elfread.c: Ditto. | |
12097 | * environ.c: Ditto. | |
12098 | * eval.c: Ditto. | |
12099 | * event-top.h: Ditto. | |
12100 | * exceptions.c: Ditto. | |
12101 | * exceptions.h: Ditto. | |
12102 | * exec.c: Ditto. | |
12103 | * expprint.c: Ditto. | |
12104 | * expression.h: Ditto. | |
12105 | * f-exp.y: Ditto. | |
12106 | * f-lang.c: Ditto. | |
12107 | * f-lang.h: Ditto. | |
12108 | * f-typeprint.c: Ditto. | |
12109 | * f-valprint.c: Ditto. | |
12110 | * fbsd-nat.c: Ditto. | |
12111 | * findvar.c: Ditto. | |
12112 | * fork-child.c: Ditto. | |
12113 | * frame.c: Ditto. | |
12114 | * frame.h: Ditto. | |
12115 | * frv-linux-tdep.c: Ditto. | |
12116 | * frv-tdep.c: Ditto. | |
12117 | * gcore.c: Ditto. | |
12118 | * gdb-stabs.h: Ditto. | |
12119 | * gdb_assert.h: Ditto. | |
12120 | * gdb_string.h: Ditto. | |
12121 | * gdb_thread_db.h: Ditto. | |
12122 | * gdb_wait.h: Ditto. | |
12123 | * gdbarch.sh: Ditto. | |
12124 | * gdbcore.h: Ditto. | |
12125 | * gdbthread.h: Ditto. | |
12126 | * gdbtypes.c: Ditto. | |
12127 | * gdbtypes.h: Ditto. | |
12128 | * gnu-nat.c: Ditto. | |
12129 | * gnu-nat.h: Ditto. | |
12130 | * gnu-v2-abi.c: Ditto. | |
12131 | * gnu-v3-abi.c: Ditto. | |
12132 | * go32-nat.c: Ditto. | |
12133 | * gdbarch.c: Regenerate. | |
12134 | * gdbarch.h: Regenerate. | |
12135 | ||
ac74f770 MS |
12136 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
12137 | ||
12138 | * ax-gdb.c: Adjust some long output strings. | |
12139 | * breakpoint.c: Ditto. | |
12140 | * charset.c: Ditto. | |
12141 | * cp-abi.c: Ditto. | |
12142 | * infcall.c: Ditto. | |
12143 | * infrun.c: Ditto. | |
12144 | * linux-nat.c: Ditto. | |
12145 | * solib-pa64.c: Ditto. | |
12146 | * solib-som.c: Ditto. | |
12147 | ||
d8e22779 TT |
12148 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
12149 | ||
12150 | PR python/12367: | |
12151 | * NEWS: Add item. | |
12152 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
12153 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
12154 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
12155 | ||
a255712f PP |
12156 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
12157 | ||
12158 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
12159 | * jit.c (jit_debug): New variable. | |
12160 | (show_jit_debug): New function. | |
12161 | (struct target_buffer): Use ULONGEST. | |
12162 | (bfd_open_from_target_memory): Likewise. | |
12163 | (jit_register_code, jit_inferior_init): Add debug output. | |
12164 | (_initialize_jit): Register "debug jit" command. | |
12165 | ||
ccfc3d6e TT |
12166 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
12167 | ||
12168 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
12169 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
12170 | and ARCH_FRAME. | |
12171 | ||
57126e4a TT |
12172 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
12173 | ||
12174 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
12175 | ||
16dfc9ce JB |
12176 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
12177 | ||
12178 | Do not stop on SIGPRIO signals by default | |
12179 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
12180 | signal_print for TARGET_SIGNAL_PRIO. | |
12181 | ||
b1ce2347 JB |
12182 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
12183 | ||
12184 | * ada-tasks.c: Fix style violation in comment. | |
12185 | ||
8f7e195f JB |
12186 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
12187 | ||
12188 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
12189 | at end of error string. | |
12190 | * solib-irix.c (irix_current_sos): Likewise. | |
12191 | * varobj.c (uninstall_variable): Likewise. | |
12192 | ||
e9bdf92c JB |
12193 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
12194 | ||
12195 | * copyright.py: New script. | |
12196 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
12197 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
12198 | ||
3e43a32a MS |
12199 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
12200 | ||
12201 | * addrmap.c: Shorten lines of >= 80 columns. | |
12202 | * arch-utils.c: Ditto. | |
12203 | * arch-utils.h: Ditto. | |
12204 | * ax-gdb.c: Ditto. | |
12205 | * ax-general.c: Ditto. | |
12206 | * bcache.c: Ditto. | |
12207 | * blockframe.c: Ditto. | |
12208 | * breakpoint.c: Ditto. | |
12209 | * buildsym.c: Ditto. | |
12210 | * c-lang.c: Ditto. | |
12211 | * c-typeprint.c: Ditto. | |
12212 | * charset.c: Ditto. | |
12213 | * coffread.c: Ditto. | |
12214 | * command.h: Ditto. | |
12215 | * corelow.c: Ditto. | |
12216 | * cp-abi.c: Ditto. | |
12217 | * cp-namespace.c: Ditto. | |
12218 | * cp-support.c: Ditto. | |
12219 | * dbug-rom.c: Ditto. | |
12220 | * dbxread.c: Ditto. | |
12221 | * defs.h: Ditto. | |
12222 | * dfp.c: Ditto. | |
12223 | * dfp.h: Ditto. | |
12224 | * dictionary.c: Ditto. | |
12225 | * disasm.c: Ditto. | |
12226 | * doublest.c: Ditto. | |
12227 | * dwarf2-frame.c: Ditto. | |
12228 | * dwarf2expr.c: Ditto. | |
12229 | * dwarf2loc.c: Ditto. | |
12230 | * dwarf2read.c: Ditto. | |
12231 | * elfread.c: Ditto. | |
12232 | * eval.c: Ditto. | |
12233 | * event-loop.c: Ditto. | |
12234 | * event-loop.h: Ditto. | |
12235 | * exceptions.h: Ditto. | |
12236 | * exec.c: Ditto. | |
12237 | * expprint.c: Ditto. | |
12238 | * expression.h: Ditto. | |
12239 | * f-lang.c: Ditto. | |
12240 | * f-valprint.c: Ditto. | |
12241 | * findcmd.c: Ditto. | |
12242 | * frame-base.c: Ditto. | |
12243 | * frame-unwind.c: Ditto. | |
12244 | * frame-unwind.h: Ditto. | |
12245 | * frame.c: Ditto. | |
12246 | * frame.h: Ditto. | |
12247 | * gcore.c: Ditto. | |
12248 | * gdb-stabs.h: Ditto. | |
12249 | * gdb_assert.h: Ditto. | |
12250 | * gdb_dirent.h: Ditto. | |
12251 | * gdb_obstack.h: Ditto. | |
12252 | * gdbcore.h: Ditto. | |
12253 | * gdbtypes.c: Ditto. | |
12254 | * gdbtypes.h: Ditto. | |
12255 | * inf-ttrace.c: Ditto. | |
12256 | * infcall.c: Ditto. | |
12257 | * infcmd.c: Ditto. | |
12258 | * inflow.c: Ditto. | |
12259 | * infrun.c: Ditto. | |
12260 | * inline-frame.h: Ditto. | |
12261 | * language.c: Ditto. | |
12262 | * language.h: Ditto. | |
12263 | * libunwind-frame.c: Ditto. | |
12264 | * libunwind-frame.h: Ditto. | |
12265 | * linespec.c: Ditto. | |
12266 | * linux-nat.c: Ditto. | |
12267 | * linux-nat.h: Ditto. | |
12268 | * linux-thread-db.c: Ditto. | |
12269 | * machoread.c: Ditto. | |
12270 | * macroexp.c: Ditto. | |
12271 | * macrotab.c: Ditto. | |
12272 | * main.c: Ditto. | |
12273 | * maint.c: Ditto. | |
12274 | * mdebugread.c: Ditto. | |
12275 | * memattr.c: Ditto. | |
12276 | * minsyms.c: Ditto. | |
12277 | * monitor.c: Ditto. | |
12278 | * monitor.h: Ditto. | |
12279 | * objfiles.c: Ditto. | |
12280 | * objfiles.h: Ditto. | |
12281 | * osabi.c: Ditto. | |
12282 | * p-typeprint.c: Ditto. | |
12283 | * p-valprint.c: Ditto. | |
12284 | * parse.c: Ditto. | |
12285 | * printcmd.c: Ditto. | |
12286 | * proc-events.c: Ditto. | |
12287 | * procfs.c: Ditto. | |
12288 | * progspace.c: Ditto. | |
12289 | * progspace.h: Ditto. | |
12290 | * psympriv.h: Ditto. | |
12291 | * psymtab.c: Ditto. | |
12292 | * record.c: Ditto. | |
12293 | * regcache.c: Ditto. | |
12294 | * regcache.h: Ditto. | |
12295 | * remote-fileio.c: Ditto. | |
12296 | * remote.c: Ditto. | |
12297 | * ser-mingw.c: Ditto. | |
12298 | * ser-tcp.c: Ditto. | |
12299 | * ser-unix.c: Ditto. | |
12300 | * serial.c: Ditto. | |
12301 | * serial.h: Ditto. | |
12302 | * solib-frv.c: Ditto. | |
12303 | * solib-irix.c: Ditto. | |
12304 | * solib-osf.c: Ditto. | |
12305 | * solib-pa64.c: Ditto. | |
12306 | * solib-som.c: Ditto. | |
12307 | * solib-sunos.c: Ditto. | |
12308 | * solib-svr4.c: Ditto. | |
12309 | * solib-target.c: Ditto. | |
12310 | * solib.c: Ditto. | |
12311 | * somread.c: Ditto. | |
12312 | * source.c: Ditto. | |
12313 | * stabsread.c: Ditto. | |
12314 | * stabsread.c: Ditto. | |
12315 | * stack.c: Ditto. | |
12316 | * stack.h: Ditto. | |
12317 | * symfile-mem.c: Ditto. | |
12318 | * symfile.c: Ditto. | |
12319 | * symfile.h: Ditto. | |
12320 | * symmisc.c: Ditto. | |
12321 | * symtab.c: Ditto. | |
12322 | * symtab.h: Ditto. | |
12323 | * target-descriptions.c: Ditto. | |
12324 | * target-memory.c: Ditto. | |
12325 | * target.c: Ditto. | |
12326 | * target.h: Ditto. | |
12327 | * terminal.h: Ditto. | |
12328 | * thread.c: Ditto. | |
12329 | * top.c: Ditto. | |
12330 | * tracepoint.c: Ditto. | |
12331 | * tracepoint.h: Ditto. | |
12332 | * ui-file.c: Ditto. | |
12333 | * ui-file.h: Ditto. | |
12334 | * ui-out.h: Ditto. | |
12335 | * user-regs.c: Ditto. | |
12336 | * user-regs.h: Ditto. | |
12337 | * utils.c: Ditto. | |
12338 | * valarith.c: Ditto. | |
12339 | * valops.c: Ditto. | |
12340 | * valprint.c: Ditto. | |
12341 | * valprint.h: Ditto. | |
12342 | * value.c: Ditto. | |
12343 | * varobj.c: Ditto. | |
12344 | * varobj.h: Ditto. | |
12345 | * vec.h: Ditto. | |
12346 | * xcoffread.c: Ditto. | |
12347 | * xcoffsolib.c: Ditto. | |
12348 | * xcoffsolib.h: Ditto. | |
12349 | * xml-syscall.c: Ditto. | |
12350 | * xml-tdesc.c: Ditto. | |
12351 | ||
9a2b4c1b MS |
12352 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
12353 | ||
12354 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
12355 | * cli/cli-decode.c: Ditto. | |
12356 | * cli/cli-dump.c: Ditto. | |
12357 | * cli/cli-logging.c: Ditto. | |
12358 | * cli/cli-script.c: Ditto. | |
12359 | * cli/cli-setshow.c: Ditto. | |
12360 | * common/signals.c: Ditto. | |
12361 | * mi/mi-cmd-break.c: Ditto. | |
12362 | * mi/mi-cmd-disas.c: Ditto. | |
12363 | * mi/mi-cmd-stack.c: Ditto. | |
12364 | * mi/mi-cmd-var.c: Ditto. | |
12365 | * mi/mi-cmds.c: Ditto. | |
12366 | * mi/mi-common.h: Ditto. | |
12367 | * mi/mi-console.c: Ditto. | |
12368 | * mi/mi-interp.c: Ditto. | |
12369 | * mi/mi-main.c: Ditto. | |
12370 | * osf-share/cma_attr.c: Ditto. | |
12371 | * osf-share/cma_deb_core.h: Ditto. | |
12372 | * osf-share/cma_debug_client.h: Ditto. | |
12373 | * osf-share/cma_handle.h: Ditto. | |
12374 | * osf-share/cma_mutex.h: Ditto. | |
12375 | * osf-share/cma_stack_int.h: Ditto. | |
12376 | * osf-share/cma_tcb_defs.h: Ditto. | |
12377 | * python/py-auto-load.c: Ditto. | |
12378 | * python/py-breakpoint.c: Ditto. | |
12379 | * python/py-cmd.c: Ditto. | |
12380 | * python/py-frame.c: Ditto. | |
12381 | * python/py-objfile.c: Ditto. | |
12382 | * python/py-param.c: Ditto. | |
12383 | * python/py-progspace.c: Ditto. | |
12384 | * python/py-symbol.c: Ditto. | |
12385 | * python/py-value.c: Ditto. | |
12386 | * python/python-internal.h: Ditto. | |
12387 | * python/python.c: Ditto. | |
12388 | * tui/tui-data.c: Ditto. | |
12389 | * tui/tui-disasm.c: Ditto. | |
12390 | * tui/tui-hooks.c: Ditto. | |
12391 | * tui/tui-io.c: Ditto. | |
12392 | * tui/tui-layout.c: Ditto. | |
12393 | * tui/tui-regs.c: Ditto. | |
12394 | * tui/tui-source.c: Ditto. | |
12395 | * tui/tui-stack.c: Ditto. | |
12396 | * tui/tui-win.c: Ditto. | |
12397 | * tui/tui-windata.c: Ditto. | |
12398 | * tui/tui-winsource.c: Ditto. | |
12399 | ||
44944448 JB |
12400 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
12401 | ||
12402 | * configure.ac, gdb.1: Copyright year update. | |
12403 | ||
ebedcab5 JK |
12404 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
12405 | ||
12406 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
12407 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
12408 | "__morestack" minimal symbol there. | |
12409 | ||
e5cc9f32 JB |
12410 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
12411 | ||
12412 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
12413 | ||
7b6bb8da JB |
12414 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
12415 | ||
12416 | Copyright year update in most files (performed by copyright.sh). | |
12417 | ||
71ce852c JB |
12418 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
12419 | ||
12420 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 12421 | |
c3c1ebe8 | 12422 | For older changes see ChangeLog-2010. |
c906108c SS |
12423 | \f |
12424 | Local Variables: | |
12425 | mode: change-log | |
12426 | left-margin: 8 | |
12427 | fill-column: 74 | |
12428 | version-control: never | |
57da7796 | 12429 | coding: utf-8 |
c906108c | 12430 | End: |