Commit | Line | Data |
---|---|---|
c8d895f1 GB |
1 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
2 | ||
3 | * MAINTAINERS: Add myself to write-after-approval section. | |
4 | ||
56a9aa1d MF |
5 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
6 | ||
7 | * remote-sim.c (sim_command_completer): New function. | |
8 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
9 | ||
ba770c9c TJB |
10 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
11 | ||
12 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
13 | (print_it_exception_catchpoint): ... this. | |
14 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
15 | for print_it_exception_catchpoint. | |
16 | ||
51bf2553 EBM |
17 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
18 | ||
19 | * MAINTAINERS: Add myself for write after approval privileges. | |
20 | ||
d242658c MP |
21 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
22 | ||
23 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
24 | ||
4a4106ca TJB |
25 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
26 | ||
27 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
28 | ||
26063d49 TJB |
29 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
30 | ||
31 | * breakpoint.c (save_breakpoints): Verify whether | |
32 | breakpoint_ops.print_recreate is defined before calling it. | |
33 | ||
7782b183 GB |
34 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
35 | ||
36 | Fix failure with --enable-maintainer-mode. | |
37 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
38 | ||
e8930875 JK |
39 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
40 | ||
41 | Code cleanup. | |
42 | * symtab.c (search_symbols): Reorder the KIND description in the | |
43 | function comment. Remove the unused 4th element of types, types2, | |
44 | types3 and types4. New gdb_assert on KIND. | |
45 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
46 | New gdb_assert on KIND. | |
47 | * symtab.h (enum search_domain): New warning in the enum comment. | |
48 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
49 | TYPES_DOMAIN. | |
50 | ||
b4f2f049 JK |
51 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
52 | ||
53 | Fix crash of gdb save-index on a STABS file. | |
54 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
55 | PSYMTABS_ADDRMAP. | |
56 | ||
60d5a603 JK |
57 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
58 | ||
59 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
60 | * dwarf2read.c: Include ctype.h. | |
61 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
62 | functions. | |
63 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
64 | dwarf2_default_access_attribute. Restructure setting accessibility | |
65 | vs. virtuality. | |
66 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
67 | is_private and is_protected by calling | |
68 | dwarf2_default_access_attribute. | |
69 | ||
e0f68161 KB |
70 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
71 | ||
72 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
73 | to the initialization. | |
74 | ||
2e1aae43 SE |
75 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
76 | ||
77 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
78 | initalization. | |
79 | ||
c6ca3dab PM |
80 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
81 | ||
82 | Remove support for old Cygwin 1.5 versions. | |
83 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
84 | function on old Cygwin version. | |
85 | * windows-nat.c: Remove cygwin version check and always define | |
86 | __USEWIDE for Cygwin compilation. | |
87 | ||
bd18283a YQ |
88 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
89 | ||
90 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
91 | and TO. | |
92 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
93 | (arm_copy_svc): Remove parameters INSN and TO. | |
94 | (decode_svc_copro): Update caller. | |
95 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
96 | from function pointer `copy_svc_os'. | |
97 | ||
8c8dba6d YQ |
98 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
99 | ||
100 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
101 | LR for ARM and Thumb. | |
102 | ||
59d7bcaf JK |
103 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
104 | ||
105 | Code cleanup. | |
106 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
107 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
108 | in the function comment, a new note on values compatibility. | |
109 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
110 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
111 | ||
e7db58ea TJB |
112 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
113 | ||
114 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
115 | Set it based on the memory region referenced in the condition | |
116 | expression. Update all callers. | |
117 | ||
9f743ef6 JK |
118 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
119 | ||
120 | Fix crash regression on systems featuring .gdb_index. | |
121 | * objfiles.c (free_objfile): Move the | |
122 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
123 | Extend the comment for objfile_free_data. | |
124 | ||
9182c5bc JK |
125 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
126 | ||
127 | Fix regression of displaying the debug format. | |
128 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
129 | subfile. | |
130 | ||
04bd08de TT |
131 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
132 | ||
133 | * cli/cli-interp.c (struct captured_execute_command_args): | |
134 | Remove. | |
135 | (do_captured_execute_command): Remove. | |
136 | (safe_execute_command): Use TRY_CATCH. | |
137 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
138 | Remove. | |
139 | (wrapped_read_command_file): Remove. | |
140 | (script_from_file): Use TRY_CATCH. | |
141 | * exceptions.c (catch_exception): Remove. | |
142 | * exceptions.h (catch_exception): Remove. | |
143 | (deprecated_throw_reason): Update comment. | |
144 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
145 | argument to 'context'. | |
146 | (mi_execute_command): Use TRY_CATCH. | |
147 | * remote.c (struct start_remote_args): Remove. | |
148 | (remote_start_remote): Update; change arguments. | |
149 | (remote_open_1): Use TRY_CATCH. | |
150 | ||
58438ac1 TT |
151 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
152 | ||
153 | * tracepoint.c (scope_info): Update. | |
154 | * symtab.c (decode_line_spec): Update. | |
155 | * python/python.c (gdbpy_decode_line): Update. | |
156 | * linespec.h (decode_line_1): Update. | |
157 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
158 | (decode_compound, find_method, symtab_from_filename) | |
159 | (decode_variable): Likewise. | |
160 | * cli/cli-cmds.c (edit_command): Update. | |
161 | (list_command): Update. | |
162 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
163 | argument. | |
164 | (create_breakpoint): Update. | |
165 | (until_break_command): Update. | |
166 | (addr_string_to_sals): Update. | |
167 | (decode_line_spec_1): Update. | |
168 | ||
b78a6381 TT |
169 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
170 | ||
171 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
172 | (do_captured_parse_breakpoint): Remove. | |
173 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
174 | Use TRY_CATCH directly. | |
175 | ||
00174a86 TT |
176 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
177 | ||
178 | * symtab.h (free_symtab): Remove. | |
179 | (forget_cached_source_info_for_objfile): Declare. | |
180 | * symmisc.c (free_symtab): Remove. | |
181 | * source.c (forget_cached_source_info_for_objfile): New function. | |
182 | (forget_cached_source_info): Use it. | |
183 | * objfiles.c (free_objfile): Simplify check before calling | |
184 | clear_current_source_symtab_and_line. Call | |
185 | forget_cached_source_info_for_objfile. | |
186 | ||
30cc903e TT |
187 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
188 | ||
189 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
190 | (new_symtab): Don't set `free_code' on symtab. | |
191 | (new_linetable): Properly handle size==0. | |
192 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
193 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
194 | free_func. | |
195 | * jv-lang.c (struct jv_per_objfile_data): New. | |
196 | (jv_per_objfile_free): Free the data. | |
197 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
198 | (get_java_class_symtab): Set the `dict' field on the | |
199 | jv_per_objfile_data. | |
200 | (free_class_block): Remove. | |
201 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
202 | the symtab. | |
203 | ||
0c2e6019 TT |
204 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
205 | ||
206 | * symfile.c (reread_symbols): Update. | |
207 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
208 | field. | |
209 | * objfiles.c (allocate_objfile): Update. | |
210 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
211 | declare. | |
212 | * cp-namespace.c (lookup_symbol_file): Don't call | |
213 | lookup_possible_namespace_symbol. | |
214 | (initialize_namespace_symtab, get_possible_namespace_block) | |
215 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
216 | (check_possible_namespace_symbols_loop) | |
217 | (check_one_possible_namespace_symbol) | |
218 | (lookup_possible_namespace_symbol): Remove. | |
219 | (maintenance_cplus_namespace): Replace with notice. | |
220 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
221 | ||
554d387d TT |
222 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
223 | ||
224 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
225 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
226 | * symmisc.c (free_symtab): Don't free debugformat. | |
227 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
228 | (record_debugformat, record_producer): Document. | |
229 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
230 | names on obstack. | |
231 | (end_symtab): Don't free debugformat and producer fields. | |
232 | (record_debugformat): Don't call xstrdup. | |
233 | (record_producer): Likewise. | |
234 | ||
d4d4db8a TT |
235 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
236 | ||
237 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
238 | (source_line_charpos, source_charpos_line): Remove. | |
239 | ||
8903c50d TT |
240 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
241 | ||
242 | * symtab.h (domain_enum): Split in two... | |
243 | (enum search_domain): New. | |
244 | (search_symbols): Update. | |
245 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
246 | redundant declarations. | |
247 | (search_symbols): Change 'kind' argument to search_domain. | |
248 | Update. | |
249 | (print_symbol_info): Likewise. | |
250 | (symtab_symbol_info): Likewise. | |
251 | * symfile.h (struct quick_symbol_functions) | |
252 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
253 | <expand_symtabs_matching>: Likewise. | |
254 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
255 | (expand_symtabs_matching_via_partial): Update. | |
256 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
257 | (dw2_expand_symtabs_for_function): Update. | |
258 | * block.h: Moved anonymous enum... | |
259 | * defs.h (enum block_enum): ... here. Now named. | |
260 | ||
d9351f5f | 261 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
262 | ||
263 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
264 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
265 | ||
d6e00af6 JB |
266 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
267 | ||
268 | * NEWS: Create a new section for the next release branch. | |
269 | Rename the section of the current branch, now that it has | |
270 | been cut. | |
271 | ||
2b9e5ea6 UW |
272 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
273 | ||
274 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
275 | for "fpscr" in target description. | |
276 | ||
0cf03b49 JK |
277 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
278 | ||
279 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
280 | initialize it. Delay HASH initialization. Strip the part after open | |
281 | parenthesis for languages with qualifiers. Call do_cleanups. | |
282 | ||
5d901a73 TT |
283 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
284 | ||
285 | * utils.c (report_command_stats): Don't print `-' for negative | |
286 | number. | |
287 | ||
b0dd7688 JB |
288 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
289 | ||
290 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
291 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
292 | typedefs. | |
293 | ||
956a9fb9 JB |
294 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
295 | ||
296 | * breakpoint.h (bpdisp_text): Add declaration. | |
297 | * breakpoint.c (bpdisp_text): Make non-static. | |
298 | * ada-lang.c: #include "mi/mi-common.h". | |
299 | (print_it_exception): Rewrite to improve GDB/MI output. | |
300 | ||
3352110b PA |
301 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
302 | ||
303 | * arm-tdep.h (struct address_space): Add forward declaration. | |
304 | ||
18819fa6 UW |
305 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
306 | ||
307 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
308 | * arm-tdep.c (arm_override_mode): New global. | |
309 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
310 | execution mode heuristics. | |
311 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
312 | second single-step breakpoint if needed, using | |
313 | arm_insert_single_step_breakpoint. | |
314 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
315 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
316 | (arm_get_next_pc): Encode execution mode in return value. Call | |
317 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
318 | (arm_insert_single_step_breakpoint): New function. | |
319 | (arm_software_single_step): Call it. | |
320 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
321 | argument to return execution mode of sigreturn target. | |
322 | (arm_linux_syscall_next_pc): Use it. | |
323 | (arm_linux_copy_svc): Update call. | |
324 | (arm_linux_software_single_step): Call | |
325 | arm_insert_single_step_breakpoint. | |
326 | ||
a6e293d1 JK |
327 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
328 | ||
329 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
330 | the comment. | |
331 | ||
a4c8e806 TT |
332 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
333 | ||
334 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
335 | errors from iterator. | |
336 | ||
df5c6c50 JK |
337 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
338 | ||
339 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
340 | struct linkage name twice. | |
341 | ||
1dae3efc TT |
342 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
343 | ||
344 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
345 | missing ">" to message. | |
346 | ||
f4f7ab05 TT |
347 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
348 | ||
349 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
350 | 'return'. | |
351 | ||
fcf250e2 UW |
352 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
353 | ||
354 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
355 | if neither saved value nor register available (e.g. signal frame). | |
356 | ||
ee6436e3 TJB |
357 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
358 | ||
359 | * macroexp.c (expand): Avoid uninitialized variable | |
360 | compiler warning. | |
361 | ||
423f41a5 TJB |
362 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
363 | ||
364 | * breakpoint.c (break_range_command): Fix typo in comment. | |
365 | ||
f1310107 TJB |
366 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
367 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
368 | ||
369 | Implement support for PowerPC BookE ranged breakpoints. | |
370 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
371 | * breakpoint.h (struct bp_target_info) <length>: New member | |
372 | variable. | |
373 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
374 | instead of struct breakpoint as argument, and also add ASPACE | |
375 | and BP_ADDR arguments. Update all callers. | |
376 | (struct breakpoint_ops) <print_one_detail>: New method. | |
377 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
378 | * breakpoint.c (breakpoint_location_address_match): Add function | |
379 | prototype. | |
380 | (insert_bp_location): Set bl->target_info.length. | |
381 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
382 | (moribund_breakpoint_here_p): Likewise. | |
383 | (regular_breakpoint_inserted_here_p): Likewise. | |
384 | (breakpoint_thread_match): Likewise. | |
385 | (bpstat_stop_status): Likewise. | |
386 | (bpstat_check_location): Move call to | |
387 | breakpoint_ops.breakpoint_hit to the top. | |
388 | (print_one_breakpoint_location): Call | |
389 | breakpoint_ops.print_one_detail if available. | |
390 | (breakpoint_address_match_range): New function. | |
391 | (breakpoint_location_address_match): Likewise. | |
392 | (breakpoint_locations_match): Compare the length field of the | |
393 | locations too. | |
394 | (hw_breakpoint_used_count): Count resources used by all locations | |
395 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
396 | available. | |
397 | (breakpoint_hit_ranged_breakpoint): New function. | |
398 | (resources_needed_ranged_breakpoint): Likewise. | |
399 | (print_it_ranged_breakpoint): Likewise. | |
400 | (print_one_ranged_breakpoint): Likewise. | |
401 | (print_one_detail_ranged_breakpoint): Likewise. | |
402 | (print_mention_ranged_breakpoint): Likewise. | |
403 | (print_recreate_ranged_breakpoint): Likewise. | |
404 | (ranged_breakpoint_ops): New structure. | |
405 | (find_breakpoint_range_end): New function. | |
406 | (break_range_command): Likewise. | |
407 | (delete_breakpoint): Free addr_string_range_end. | |
408 | (update_breakpoint_locations): Add SALS_END argument. Update | |
409 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
410 | is given. Call breakpoint_locations_match instead of | |
411 | breakpoint_address_match. | |
412 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
413 | ranged breakpoint. | |
414 | (_initialize_breakpoint): Register break-range command. | |
415 | * defs.h (print_core_address): Add function prototype. | |
416 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
417 | function. | |
418 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
419 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
420 | (_initialize_ppc_linux_nat): Initialize | |
421 | to_ranged_break_num_registers. | |
422 | * target.c (update_current_target): Add comment about | |
423 | to_ranged_break_num_registers. | |
424 | (target_ranged_break_num_registers): New function. | |
425 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
426 | New method. | |
427 | (target_ranged_break_num_registers): Add function prototype. | |
428 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
429 | * utils.c (print_core_address): ... here. | |
430 | ||
02d20e4a UW |
431 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
432 | ||
433 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
434 | variable compiler warning. | |
435 | ||
ef23e705 TJB |
436 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
437 | ||
438 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
439 | code from here ... | |
440 | (re_set_breakpoint): ... to here ... | |
441 | (addr_string_to_sals): ... and here. | |
442 | ||
311e6ab3 PM |
443 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
444 | ||
445 | * Makefile.in (SFILES): Add missing C sources. | |
446 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
447 | Add missing headers. | |
448 | ||
acd1d99c MF |
449 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
450 | ||
451 | * .gitignore: New file. | |
452 | ||
66ee2731 MF |
453 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
454 | ||
455 | * NEWS: Mention new cfi device simulation. | |
456 | ||
53832f31 TT |
457 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
458 | ||
459 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
460 | otherwise anonymous types. | |
461 | (dwarf2_name): Likewise. | |
462 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
463 | type logic. Call error if j==-1. | |
464 | ||
09b58708 JK |
465 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
466 | ||
467 | Fix false GCC warning. | |
468 | * infcall.c (find_function_addr): Initialize funaddr. | |
469 | ||
6023c606 PM |
470 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
471 | ||
472 | Fix mingw compilation with --enable-targets=all. | |
473 | * remote-mips.c (gdb_usleep.h): Include header. | |
474 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
475 | ||
0e30163f JK |
476 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
477 | ||
478 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
479 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
480 | bp_gnu_ifunc_resolver_return. | |
481 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
482 | the loop. Support bp_gnu_ifunc_resolver and | |
483 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
484 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
485 | breakpoints. | |
486 | (bptype_string, print_one_breakpoint_location): Support | |
487 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
488 | (user_settable_breakpoint): Return true also for | |
489 | bp_gnu_ifunc_resolver. | |
490 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
491 | bp_gnu_ifunc_resolver_return. | |
492 | (set_breakpoint_location_function): New parameter explicit_loc, | |
493 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
494 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
495 | EXPLICIT_LOC is not set. | |
496 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
497 | set_breakpoint_location_function. | |
498 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
499 | set_breakpoint_location_function. | |
500 | (mention): Support bp_gnu_ifunc_resolver and | |
501 | bp_gnu_ifunc_resolver_return. | |
502 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
503 | set_breakpoint_location_function. | |
504 | (update_breakpoint_locations): Remove static. | |
505 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
506 | bp_gnu_ifunc_resolver_return. | |
507 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
508 | bp_gnu_ifunc_resolver_return. | |
509 | (update_breakpoint_locations): New declaration. | |
510 | * elfread.c: Include gdbthread.h and regcache.h. | |
511 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
512 | functions. | |
513 | (elf_gnu_ifunc_fns): Install them. | |
514 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
515 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
516 | (stub_gnu_ifunc_fns): Install them. | |
517 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
518 | and gnu_ifunc_resolver_return_stop. | |
519 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
520 | ||
07be84bf JK |
521 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
522 | ||
523 | STT_GNU_IFUNC reader implementation. | |
524 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
525 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
526 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
527 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
528 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
529 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
530 | (elf_gnu_ifunc_resolve_addr): New. | |
531 | (elf_symfile_read): Call elf_rel_plt_read. | |
532 | (elf_gnu_ifunc_fns): New. | |
533 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
534 | Install elf_gnu_ifunc_fns. | |
535 | * infcall.c (find_function_return_type): New function. | |
536 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
537 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
538 | (stub_gnu_ifunc_resolve_name): New functions. | |
539 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
540 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
541 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
542 | ||
300f8e10 JK |
543 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
544 | ||
545 | Code cleanup for later STT_GNU_IFUNC support. | |
546 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
547 | dereferences for it. Move VALUE_TYPE initialization later. | |
548 | ||
11c81455 JK |
549 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
550 | ||
551 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
552 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
553 | (clear_pc_function_cache): Clear it. | |
554 | (find_pc_partial_function): Rename to ... | |
555 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
556 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
557 | (find_pc_partial_function): New wrapper for this function. | |
558 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
559 | ||
0875794a JK |
560 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
561 | ||
562 | GDB internal type support for STT_GNU_IFUNC. | |
563 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
564 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
565 | BSF_GNU_INDIRECT_FUNCTION. | |
566 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
567 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
568 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
569 | nodebug_got_plt_symbol. | |
570 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
571 | (TYPE_GNU_IFUNC): New. | |
572 | (struct main_type): New field flag_gnu_ifunc. | |
573 | (struct builtin_type): New field builtin_func_func. | |
574 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
575 | nodebug_got_plt_symbol. | |
576 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
577 | (in_gnu_ifunc_stub): New. | |
578 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
579 | mst_text_gnu_ifunc. | |
580 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
581 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
582 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
583 | in_gnu_ifunc_stub. | |
584 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
585 | * symtab.c (search_symbols): Likewise. | |
586 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
587 | and mst_slot_got_plt. | |
588 | (in_gnu_ifunc_stub): New declaration. | |
589 | ||
d0fb5eae JK |
590 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
591 | ||
592 | Support a ring of related breakpoints. | |
593 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
594 | other functions, add gdb_assert. | |
595 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
596 | watchpoint_del_at_next_stop. | |
597 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
598 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
599 | (set_raw_breakpoint_without_location): Initialize ring in | |
600 | related_breakpoint. | |
601 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
602 | watchpoint_del_at_next_stop. | |
603 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
604 | ||
9cded63f TT |
605 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
606 | ||
607 | PR symtab/12441: | |
608 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
609 | with `language_minimal'. | |
610 | ||
467d42c4 UW |
611 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
612 | ||
613 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
614 | instead of checking for STT_ARM_TFUNC symbol type. | |
615 | ||
62853458 TT |
616 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
617 | ||
618 | * linespec.c (symbol_found): Restore line-based result for | |
619 | non-LOC_LABEL symbols. | |
620 | ||
a7417d46 KT |
621 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
622 | ||
623 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
624 | instead of strcmp for comparison. | |
625 | (tui_source_is_displayed): Likewise. | |
626 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
627 | ||
55f1336d TT |
628 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
629 | ||
630 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in | |
631 | complaint. | |
632 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
633 | (find_partial_die_in_comp_unit): Likewise in comment. | |
634 | (read_attribute_value): Likewise. | |
635 | (lookup_die_type): Likewise. | |
636 | (dwarf_form_name): Likewise. | |
637 | (dump_die_shallow): Likewise. | |
638 | (follow_die_ref_or_sig): Likewise. | |
639 | ||
9ef07c8c TT |
640 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
641 | ||
642 | PR breakpoints/11816: | |
643 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
644 | (decode_compound): Update. | |
645 | (find_function_symbol): New function. | |
646 | (decode_dollar): Update. | |
647 | (decode_label): Add 'function_symbol' parameter. Handle | |
648 | function-relative labels. | |
649 | (decode_variable): Update. | |
650 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
651 | not its line. Set `special_display' and canonical name for | |
652 | labels. | |
653 | ||
56435ebe TT |
654 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
655 | ||
656 | * linespec.h (struct linespec_result) <special_display>: New | |
657 | field. | |
658 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
659 | field. | |
660 | * breakpoint.c (print_breakpoint_location): Respect | |
661 | display_canonical. | |
662 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
663 | (create_breakpoints_sal): Update. | |
664 | (create_breakpoint): Update. | |
665 | ||
7efd8fc2 TT |
666 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
667 | ||
668 | * symtab.c (decode_line_spec): Update. | |
669 | * linespec.c (build_canonical_line_spec): Change type of | |
670 | 'canonical'. | |
671 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
672 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
673 | (symbol_found): Likewise. | |
674 | (init_linespec_result): New function. | |
675 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
676 | <canonical_p>: New field, replaces addr_string_p. | |
677 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
678 | 'addr_string'. | |
679 | (parse_breakpoint_sals): Likewise. | |
680 | (do_captured_parse_breakpoint): Update. | |
681 | (create_breakpoint): Use struct linespec_result. | |
682 | (until_break_command): Update. | |
683 | (breakpoint_re_set_one): Update. | |
684 | (decode_line_spec_1): Update. | |
685 | * linespec.h (struct linespec_result): New. | |
686 | (init_linespec_result): Declare. | |
687 | ||
788c8b10 PA |
688 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
689 | ||
690 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
691 | given raw register, mark it as unavailable. | |
692 | ||
0ba1096a KT |
693 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
694 | ||
695 | * breakpoint.c (clear_command): Use filename_cmp | |
696 | instead of strcmp for comparison. | |
697 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
698 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
699 | checking just for slash. | |
700 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
701 | strrchr and filename_cmp instead of strcmp for filenames. | |
702 | (add_old_header_file): Use filename_cmp | |
703 | instead of strcmp for comparison. | |
704 | * exec.c (exec_set_section_address): Likewise. | |
705 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
706 | (macro_lookup_inclusion): Likewise. | |
707 | * elfread.c (_initialize_elfread): Likewise. | |
708 | (elfstab_offset_sections): Likewise. | |
709 | (elfstab_offset_sections): Use lbasename instead of | |
710 | strrchr. | |
711 | * mdebugread.c (parse_partial_symbols): Likewise. | |
712 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
713 | str(n)cmp for comparison. | |
714 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
715 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
716 | * solib.c (solib_read_symbols): Likewise. | |
717 | (reload_shared_libraries_1): Likewise. | |
718 | * symmisc.c (maintenance_print_symbols): Likewise. | |
719 | * symfile.c (separate_debug_file_exists): Likewise. | |
720 | (reread_symbols): Likewise. | |
721 | (find_separate_debug_file_by_debuglink): Likewise. | |
722 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
723 | * source.c (add_path): Likewise. | |
724 | * symtab.c (filename_seen): Likewise. | |
725 | (file_matches): Likewise. | |
726 | (print_symbol_info): Likewise. | |
727 | (maybe_add_partial_symtab_filename): Likewise. | |
728 | (make_source_files_completion_list): Likewise. | |
729 | * xml-syscall.c (init_sysinfo): Likewise. | |
730 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
731 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
732 | ||
dd90784c JK |
733 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
734 | ||
735 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
736 | label abort_expression. | |
737 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
738 | DWARF_VALUE_OPTIMIZED_OUT. | |
739 | ||
3167638f JK |
740 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
741 | ||
742 | Code cleanup. | |
743 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
744 | to linkage_name. Invert its value. Update the function comment. | |
745 | (c_type_print_varspec_suffix): Invert it at the caller. | |
746 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
747 | ||
ce406537 PA |
748 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
749 | ||
750 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
751 | errors when reading the `stop_pc'. | |
752 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
753 | get_frame_pc. | |
754 | ||
da5d4055 PM |
755 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
756 | ||
757 | * NEWS: Document gdb.Write stream keyword. | |
758 | ||
29e0eb9c JK |
759 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
760 | ||
761 | Revert: | |
762 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
763 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
764 | (dwarf2_add_field): Fix new_field->accessibility for | |
765 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
766 | ||
05775840 PM |
767 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
768 | ||
769 | PR python/12183 | |
770 | ||
771 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
772 | other error classes. Do not print stack trace. | |
773 | ||
a0cb7835 JK |
774 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
775 | ||
776 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
777 | (dwarf2_add_field): Fix new_field->accessibility for | |
778 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
779 | ||
d19f7eee UW |
780 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
781 | ||
782 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
783 | encountering a load via a non-SP register. | |
784 | ||
4a2fbb50 UW |
785 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
786 | ||
787 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
788 | field in returned unwinder. | |
789 | ||
3489610d JB |
790 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
791 | ||
792 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
793 | ||
8c1a34e7 JB |
794 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
795 | ||
796 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
797 | of xmalloc. | |
798 | ||
8fbca658 PA |
799 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
800 | ||
801 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
802 | register failed. | |
803 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
804 | an unwind stop reason. | |
805 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
806 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
807 | UNWIND_UNAVAILABLE>: New. | |
808 | * inline-frame.c (inline_frame_unwind): Install | |
809 | default_frame_unwind_stop_reason. | |
810 | * frame-unwind.c: Include "exceptions.h". | |
811 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
812 | (default_frame_unwind_stop_reason): New. | |
813 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
814 | (default_frame_unwind_stop_reason): Declare. | |
815 | (struct frame_unwind) <stop_reason>: New function pointer. | |
816 | ||
817 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
818 | * dwarf2-frame.c: Include exceptions.h. | |
819 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
820 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
821 | computing the CFA. If such an error was thrown, set | |
822 | unavailable_retaddr. | |
823 | (dwarf2_frame_unwind_stop_reason): New. | |
824 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
825 | unavailable. | |
826 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
827 | (dwarf2_signal_frame_unwind): Ditto. | |
828 | ||
829 | * amd64-tdep.c: Include "exceptions.h". | |
830 | (struct amd64_frame_cache): New field "base_p". | |
831 | (amd64_init_frame_cache): Clear it. | |
832 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
833 | Avoid reading registers with functions that throw if the register | |
834 | is not necessary to compute the frame base. | |
835 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
836 | swallowing NOT_AVAILABLE_ERROR. | |
837 | (amd64_frame_unwind_stop_reason): New. | |
838 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
839 | was unavailable. | |
840 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
841 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
842 | base_p if the frame base was computable. | |
843 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
844 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
845 | frame base was unavailable. | |
846 | (amd64_sigtramp_frame_unwind): Install | |
847 | amd64_sigtramp_frame_unwind_stop_reason. | |
848 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
849 | base_p if the frame base was computable. | |
850 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
851 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
852 | frame base was unavailable. | |
853 | (amd64_epilogue_frame_unwind): Install | |
854 | amd64_epilogue_frame_unwind_stop_reason. | |
855 | * i386-tdep.c: Include "exceptions.h". | |
856 | (struct i386_frame_cache): New field "base_p". | |
857 | (i386_init_frame_cache): Clear it. | |
858 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
859 | Avoid reading registers with functions that throw if the register | |
860 | is not necessary to compute the frame base. | |
861 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
862 | swallowing NOT_AVAILABLE_ERROR. | |
863 | (i386_frame_unwind_stop_reason): New. | |
864 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
865 | unavailable. | |
866 | (i386_frame_prev_register): Handle unavailable SP. | |
867 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
868 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
869 | base_p if the frame base was computable. | |
870 | (i386_epilogue_frame_unwind_stop_reason): New. | |
871 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
872 | base was unavailable. | |
873 | (i386_epilogue_frame_unwind): Install | |
874 | i386_epilogue_frame_unwind_stop_reason. | |
875 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
876 | base_p if the frame base was computable. | |
877 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
878 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
879 | base was unavailable. | |
880 | (i386_sigtramp_frame_unwind): Install | |
881 | i386_sigtramp_frame_unwind_stop_reason. | |
882 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
883 | type's size, not the register's. | |
884 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
885 | ||
886 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
887 | default_frame_unwind_stop_reason. | |
888 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
889 | (alpha_heuristic_frame_unwind): Ditto. | |
890 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
891 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
892 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
893 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
894 | Ditto. | |
895 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
896 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
897 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
898 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
899 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
900 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
901 | (hppa_stub_frame_unwind): Ditto. | |
902 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
903 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
904 | (ia64_libunwind_frame_unwind) | |
905 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
906 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
907 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
908 | * m32c-tdep.c (m32c_unwind): Ditto. | |
909 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
910 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
911 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
912 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
913 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
914 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
915 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
916 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
917 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
918 | (mips_stub_frame_unwind): Ditto. | |
919 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
920 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
921 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
922 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
923 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
924 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
925 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
926 | (s390_sigtramp_frame_unwind): Ditto. | |
927 | * score-tdep.c (score_prologue_unwind): Ditto. | |
928 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
929 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
930 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
931 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
932 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
933 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
934 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
935 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
936 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
937 | (sparc64obsd_trapframe_unwind): Ditto. | |
938 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
939 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
940 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
941 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
942 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
943 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
944 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
945 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
946 | ||
f23d1b92 PA |
947 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
948 | ||
949 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
950 | there's always a frame. Use get_frame_pc_if_available instead of | |
951 | get_frame_pc, and if there's no PC available, don't look up a | |
952 | symtab. | |
953 | ||
1d4f5741 PA |
954 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
955 | ||
956 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
957 | unavailable PC. | |
958 | ||
dba09041 PA |
959 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
960 | ||
961 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
962 | gracefully. | |
963 | ||
9a26e44c PA |
964 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
965 | ||
966 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
967 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
968 | * stack.c (frame_info): Handle unavailable PC. | |
969 | ||
970 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
971 | ||
972 | * frame.c (frame_unwind_pc): Rename to ... | |
973 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
974 | parameter. Change return type to int. Gracefully handle | |
975 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
976 | happened, or 1 otherwise. | |
977 | (frame_unwind_pc): Reimplement on top of | |
978 | frame_unwind_pc_if_available. | |
979 | (get_frame_func): Rename to ... | |
980 | (get_frame_func_if_available): New `pc' output parameter. Change | |
981 | return type to int. Gracefully handle the PC not being available. | |
982 | (get_frame_func): Reimplement on top of | |
983 | get_frame_func_if_available. | |
984 | (select_frame): Handle the PC being unavailable. | |
985 | (get_prev_frame): Handle the PC being unavailable. | |
986 | (get_frame_pc_if_available): New. | |
987 | (get_frame_address_in_block_if_available): New. | |
988 | (find_frame_sal): Handle the frame PC not being available. | |
989 | * frame.h (get_frame_pc_if_available): Declare. | |
990 | (get_frame_address_in_block_if_available): Declare. | |
991 | (get_frame_func_if_available): Declare. | |
992 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
993 | (find_frame_funname): Ditto. | |
994 | (print_frame): Handle the PC being unavailable. | |
995 | (get_frame_language): Ditto. | |
996 | * blockframe.c (get_frame_block): Ditto. | |
997 | * macroscope.c (default_macro_scope): Ditto. | |
998 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
999 | ||
1000 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
1001 | ||
1002 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
1003 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
1004 | ||
1005 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
1006 | ||
1007 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
1008 | returning that the register piece is unavailable/optimized out. | |
1009 | (write_pieced_value): Handle get_frame_register_bytes returning | |
1010 | that the register piece is unavailable/optimized out when doing a | |
1011 | read-modify write of a bitfield. | |
1012 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
1013 | returning that the register piece is unavailable/optimized out. | |
1014 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
1015 | and `unavailablep'. Throw error on bad debug info. Use | |
1016 | frame_register instead of frame_register_read, to fill in the new | |
1017 | arguments. | |
1018 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
1019 | and `unavailablep'. | |
1020 | * valops.c: (value_assign): Adjust, and handle | |
1021 | get_frame_register_bytes failing. | |
1022 | * spu-tdep.c: Include exceptions.h. | |
1023 | (spu_software_single_step): Adjust, and handle | |
1024 | get_frame_register_bytes failing. | |
1025 | (spu_get_longjmp_target): Ditto. | |
1026 | * gdbarch.sh (register_to_value): Change to return int. New | |
1027 | parameters `optimizedp' and `unavailablep'. | |
1028 | * gdbarch.h, gdbarch.c: Regenerate. | |
1029 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
1030 | gdbarch_register_to_value interface. | |
1031 | * i387-tdep.c (i387_register_to_value): Ditto. | |
1032 | * i387-tdep.h (i387_register_to_value): Ditto. | |
1033 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
1034 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
1035 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
1036 | * mips-tdep.c (mips_register_to_value): Ditto. | |
1037 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
1038 | ||
0fdb4f18 PA |
1039 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
1040 | ||
1041 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
1042 | the register is unavailable. | |
1043 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
1044 | (frame_register): New `unavailablep' parameter. | |
1045 | (frame_register_read): Update comment. | |
1046 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
1047 | Set it if the register is unavailable. If the register is | |
1048 | unavailable, clear the output buffer. | |
1049 | (frame_register): New `unavailablep' parameter. Pass it down. | |
1050 | (frame_unwind_register): Adjust. | |
1051 | (put_frame_register): Adjust. | |
1052 | (frame_register_read): Adjust. Also return false if the register | |
1053 | is not available. | |
1054 | (frame_register_unwind_location): Adjust. | |
1055 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
1056 | is unavailable, mark the value accordingly. | |
1057 | * stack.c (frame_info): Handle unavailable registers. | |
1058 | ||
e69aa73e PA |
1059 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
1060 | ||
1061 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
1062 | simplify, using regcache_cooked_read. | |
1063 | ||
05d1431c PA |
1064 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
1065 | ||
1066 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
1067 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
1068 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
1069 | (regcache_cooked_read, regcache_cooked_read_signed) | |
1070 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
1071 | (regcache_cooked_read_ftype): Change return to enum | |
1072 | register_status. | |
1073 | * regcache.c: Include exceptions.h | |
1074 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
1075 | (do_cooked_read): Change return to enum register_status. Always | |
1076 | forward to regcache_cooked_read. | |
1077 | (regcache_raw_read): Change return to enum register_status. If | |
1078 | the register is not REG_VALID, memset the buffer. Return the | |
1079 | register's status. | |
1080 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
1081 | return the register's status. | |
1082 | (regcache_raw_read_unsigned): Ditto. | |
1083 | (regcache_cooked_read): Change return to enum register_status. | |
1084 | Assert that with read-only regcaches, the register's status must | |
1085 | be known. If the regcache is read-only, and the register is not | |
1086 | REG_VALID, memset the buffer. Return the register's status. | |
1087 | (regcache_cooked_read_signed): Change return to enum | |
1088 | register_status. Handle non-REG_VALID registers and return the | |
1089 | register's status. | |
1090 | (regcache_cooked_read_unsigned): Change return to enum | |
1091 | register_status. Handle non-REG_VALID registers and return the | |
1092 | register's status. | |
1093 | (regcache_xfer_part, regcache_raw_read_part) | |
1094 | (regcache_cooked_read_part): Change return to enum | |
1095 | register_status. Return the register's status. | |
1096 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
1097 | unavailable. | |
1098 | (regcache_dump): Handle unavailable cooked registers. | |
1099 | * frame.c (do_frame_register_read): Adjust interface to match | |
1100 | regcache_cooked_read_ftype. | |
1101 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
1102 | register_status. | |
1103 | * gdbarch.h, gdbarch.c: Regenerate. | |
1104 | ||
1105 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
1106 | register_status. | |
1107 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
1108 | register_status. If reading a raw register indicates the raw | |
1109 | register is not valid, return the raw register's status, | |
1110 | otherwise, return REG_VALID. | |
1111 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
1112 | register_status. Handle non-REG_VALID raw registers and return | |
1113 | the register's status. | |
1114 | * arm-tdep.c (arm_neon_quad_read) | |
1115 | (arm_pseudo_read): Change return to enum register_status. Handle | |
1116 | non-REG_VALID raw registers and return the register's status. | |
1117 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
1118 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
1119 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
1120 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
1121 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
1122 | register_status. | |
1123 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
1124 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
1125 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
1126 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
1127 | (m32c_pseudo_register_read): Change return to enum | |
1128 | register_status. Adjust. | |
1129 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
1130 | enum register_status. Return the register's status. | |
1131 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
1132 | register_status. Return the register's status. | |
1133 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
1134 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
1135 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
1136 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
1137 | (e500_move_ev_register): Use it. Change return to enum | |
1138 | register_status. Return the register's status. | |
1139 | (do_regcache_raw_read): New function. | |
1140 | (do_regcache_raw_write): New function. | |
1141 | (e500_pseudo_register_read): Change return to enum | |
1142 | register_status. Return the register's status. Use | |
1143 | do_regcache_raw_read. | |
1144 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
1145 | (dfp_pseudo_register_read): Change return to enum register_status. | |
1146 | Return the register's status. | |
1147 | (vsx_pseudo_register_read): Ditto. | |
1148 | (efpr_pseudo_register_read): Ditto. | |
1149 | (rs6000_pseudo_register_read): Ditto. | |
1150 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
1151 | register_status. Return the register's status. | |
1152 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
1153 | (sh64_pseudo_register_read): Change return to enum | |
1154 | register_status. Use pseudo_register_read_portions. Return the | |
1155 | register's status. | |
1156 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
1157 | register_status. Return the register's status. | |
1158 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
1159 | (sh_pseudo_register_read): Change return to enum register_status. | |
1160 | Use pseudo_register_read_portions. Return the register's status. | |
1161 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
1162 | enum register_status. Return the register's status. | |
1163 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
1164 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
1165 | (spu_pseudo_register_read): Ditto. | |
1166 | * xtensa-tdep.c (xtensa_register_read_masked) | |
1167 | (xtensa_pseudo_register_read): Ditto. | |
1168 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
1169 | ||
e10abd8f PM |
1170 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1171 | ||
1172 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
1173 | call. | |
1174 | ||
7ea6d463 PM |
1175 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1176 | ||
1177 | ARI fixes: Add missing internationalization markups throughout | |
1178 | C source files. | |
1179 | * darwin-nat-info.c: Ditto. | |
1180 | * record.c: Ditto. | |
1181 | * remote.c: Ditto. | |
1182 | * mi/mi-main.c: Ditto. | |
1183 | ||
001083c6 PM |
1184 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1185 | ||
1186 | ARI fixes: Add missing internationalization markups throughout | |
1187 | yacc files. | |
1188 | * c-exp.y: Ditto. | |
1189 | * cp-name-parser.y: Ditto. | |
1190 | * f-exp.y: Ditto. | |
1191 | * m2-exp.y: Ditto. | |
1192 | * objc-exp.y: Ditto. | |
1193 | * p-exp.y: Ditto. | |
1194 | ||
4f1cdeec PM |
1195 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1196 | ||
1197 | ARI fixes: Messages should have no trailing new lines. | |
1198 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
1199 | warning function call message. | |
1200 | * record.c (bfdcore_read): Idem for error call. | |
1201 | ||
28e698f1 PM |
1202 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1203 | ||
1204 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
1205 | function call message. | |
1206 | (target_signal_to_host): Add _ markup and remove trailing new line | |
1207 | from warning call message. | |
1208 | (target_signal_from_command): Add _ markup to error function call | |
1209 | message. | |
1210 | ||
99c3dc11 PM |
1211 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
1212 | ||
1213 | PR python/12149 | |
1214 | ||
1215 | * python/python.c (gdbpy_write): Accept a stream argument and | |
1216 | operate to the appropriate stream. | |
1217 | (gdbpy_flush): Likewise. | |
1218 | (_initialize_python): Add stream constants. | |
1219 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
1220 | ||
c20800be KY |
1221 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
1222 | ||
1223 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
1224 | ||
f4a1794a KY |
1225 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
1226 | ||
1227 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
1228 | to store_signed_integer. Add debug message when relocating CALL | |
1229 | instructions. Fix formatting of debug message. | |
1230 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
1231 | ||
d4862372 JB |
1232 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
1233 | ||
1234 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
1235 | (target_lookup_symbol): Delete macro. | |
1236 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
1237 | (update_current_target, setup_target_debug): Remove handling | |
1238 | of to_lookup_symbol target_ops field. | |
1239 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
1240 | target_lookup_symbol. | |
1241 | * coffread.c (coff_symtab_read): Likewise. | |
1242 | * dbxread.c (read_dbx_symtab): Ditto. | |
1243 | ||
d645e32e JB |
1244 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
1245 | ||
1246 | PR gdb/12116: | |
1247 | * configure.ac: Add getthrds declaration check. | |
1248 | * configure, config.in: Regenerate. | |
1249 | * aix-thread.c (getthrds): Declare only if not already declared | |
1250 | in procinfo.h. More declaration out of get_signaled_thread to | |
1251 | global scope. | |
1252 | ||
29703da4 PM |
1253 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
1254 | ||
1255 | * python/py-symtab.c: Populate symtab_object_methods, | |
1256 | sal_object_methods. | |
1257 | (stpy_is_valid): New function. | |
1258 | (salpy_is_valid): Ditto. | |
1259 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
1260 | (sympy_is_valid): New function. | |
1261 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
1262 | (objfpy_is_valid): New function. | |
1263 | * python/py-inferior.c: Populate inferior_object_methods. | |
1264 | (infpy_is_valid): New function. | |
1265 | * python/py-infthread.c: Populate thread_object_methods. | |
1266 | (thpy_is_valid): New function. | |
1267 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
1268 | block_iterator_object_methods. Populate. | |
1269 | (blpy_is_valid): New function. | |
1270 | (blpy_iter_is_valid): Ditto. | |
1271 | ||
c00f8484 KS |
1272 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
1273 | ||
1274 | * linespec.c (find_methods): Canonicalize NAME before looking | |
1275 | up the symbol. | |
1276 | (name_end): New function. | |
1277 | (keep_name_info): New function. | |
1278 | (decode_line_1): Use keep_name_info. | |
1279 | (decode_compound): Likewise. | |
1280 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
1281 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
1282 | ||
1283 | PR c++/12273 | |
1284 | * linespec.c (locate_first_half): Keep overload information, too. | |
1285 | (decode_compound): Use a string to represent break characters | |
1286 | to escape the loop. | |
1287 | If P points to a break character, do not increment it. | |
1288 | For C++ and Java, keep overload information and relevant keywords. | |
1289 | If we cannot find a symbol, search the minimal symbols. | |
1290 | ||
1291 | PR c++/11734 | |
1292 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
1293 | THE_REAL_SAVED_ARG. | |
1294 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
1295 | single-quotes. | |
1296 | Pass a valid block to lookup_symbol. | |
1297 | (lookup_prefix_sym): Likewise. | |
1298 | (find_method): Construct search name based on SYM_CLASS instead | |
1299 | of SAVED_ARG. | |
1300 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
1301 | (lookup_symbol_aux_psymtabs): Likewise. | |
1302 | Don't assume that the psymtab we found was the right one. Search | |
1303 | for the desired symbol in the symtab to be certain. | |
1304 | (psymtab_search_name): New function. | |
1305 | (lookup_partial_symbol): Use psymtab_search_name. | |
1306 | Add language parameter. | |
1307 | (read_symtabs_for_function): Add language parameter and pass to | |
1308 | lookup_partial_symbol. | |
1309 | (find_symbol_file_from_partial): Likewise. | |
1310 | ||
c91513d8 PP |
1311 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
1312 | ||
1313 | PR gdb/12528 | |
1314 | * dwarf2read.c (noop_record_line): New function. | |
1315 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
1316 | ||
b37520b6 PM |
1317 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
1318 | ||
1319 | Fix ARI warnings about new lines at the end of messages, which | |
1320 | are unneeded as there is a new line added at the end of the message | |
1321 | automatically. | |
1322 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
1323 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
1324 | * dfp.c (decimal_to_number): Ditto. | |
1325 | * exec.c (print_section_info): Ditto. | |
1326 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
1327 | * osdata.c (get_osdata): Ditto. | |
1328 | * record.c (bfdcore_write): Ditto. | |
1329 | * remote-mips.c (mips_readchar): Ditto. | |
1330 | * remote.c (read_ptid): Ditto. | |
1331 | * ser-mingw.c (ser_windows_raw): Ditto. | |
1332 | * tracepoint.c (add_local_symbols): Ditto. | |
1333 | * windows-nat.c (fake_create_process): Ditto. | |
1334 | ||
b08ee6a2 TT |
1335 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
1336 | ||
1337 | * tracepoint.c (stop_tracing): Don't declare. | |
1338 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
1339 | ||
9a6f1302 PM |
1340 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
1341 | ||
1342 | * NEWS: Add Parameter sub-classing description. | |
1343 | ||
7ceb86b1 KT |
1344 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
1345 | ||
1346 | * MAINTAINERS: Update my e-mail address. | |
1347 | ||
efeff6cf AT |
1348 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
1349 | ||
1350 | * MAINTAINERS: Add myself for write after approval privileges. | |
1351 | ||
681c238c MS |
1352 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
1353 | ||
f3df5b08 MS |
1354 | * frame.c (find_frame_sal): Assert sym is not null. |
1355 | ||
13f6513c MS |
1356 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
1357 | ||
50412521 MS |
1358 | * objc-lang.c (selectors_info): Check strchr for null result. |
1359 | ||
681c238c MS |
1360 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
1361 | ||
6ced1581 PM |
1362 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
1363 | ||
1364 | Remove trailing spaces and tabulations from pascal language | |
1365 | support sources. | |
1366 | p-exp.y: Ditto. | |
1367 | p-lang.c: Ditto. | |
1368 | p-lang.h: Ditto. | |
1369 | p-valprint.c: Ditto. | |
1370 | ||
9373cf26 JK |
1371 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1372 | ||
1373 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
1374 | than LOW. Comment it. | |
1375 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
1376 | HIGHPC not strictly higher than LOWPC. | |
1377 | ||
9a1edae6 PM |
1378 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
1379 | ||
1380 | Fix formatting of function declarations returning a pointer in | |
1381 | previous commit. | |
1382 | * varobj.c (varobj_add_child): Ditto. | |
1383 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
1384 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
1385 | ||
24e9cda0 UW |
1386 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
1387 | ||
1388 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
1389 | for the "generic" vector ABI used with GCC 4.3 and later. | |
1390 | (ppc64_sysv_abi_return_value): Likewise. | |
1391 | ||
1392 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
1393 | |
1394 | * infcall.c (call_function_by_hand): Function return value is | |
1395 | always a non_lval, even when using struct_return. | |
1396 | ||
c9174737 PA |
1397 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
1398 | ||
1399 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
1400 | (map_display_numbers): New. | |
1401 | (do_delete_display): New. | |
1402 | (undisplay_command): Use map_display_numbers. | |
1403 | (do_enable_disable_display): New. | |
1404 | (enable_disable_display_command): New function. | |
1405 | (enable_display): Delete. | |
1406 | (enable_display_command): New. | |
1407 | (disable_display_command): Reimplement. | |
1408 | (_initialize_printcmd): Adjust "enable display" command to use | |
1409 | `enable_display_command' as callback. | |
1410 | ||
350c6c65 PM |
1411 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
1412 | ||
1413 | * NEWS: Add Python breakpoint 'stop' operation. | |
1414 | ||
824446ad PM |
1415 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
1416 | ||
1417 | * NEWS: Delete duplicate entry. Fix typo. | |
1418 | ||
2021ad3a PM |
1419 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
1420 | ||
1421 | Fix ARI warning about function names in first column. | |
1422 | Put prototype declaration on same line as return type. | |
1423 | * objc-exp.y: Ditto. | |
1424 | * p-exp.y: Ditto. | |
1425 | * python/py-stopevent.h: Ditto. | |
1426 | For long function names, split parameters to | |
1427 | allow function name on same line as return type. | |
1428 | * solib-pa64.c: Ditto. | |
1429 | * varobj.c: Ditto. | |
1430 | * varobj.h: Ditto. | |
1431 | For long function declaration, use single line. | |
1432 | * hppa-tdep.h: Ditto. | |
1433 | * inferior.h: Ditto. | |
1434 | ||
7371cf6d PM |
1435 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
1436 | ||
1437 | * python/python.h: Declare gdbpy_should_stop and | |
1438 | gdbpy_breakpoint_has_py_cond. | |
1439 | * python/python.c: Add python.h to includes. Remove python.h from | |
1440 | HAVE_PYTHON definition | |
1441 | (gdbpy_should_stop): New dummy function. | |
1442 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
1443 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
1444 | sub-classing capabilities. | |
1445 | (gdbpy_should_stop): New function. | |
1446 | (gdbpy_breakpoint_has_py_cond): New function. | |
1447 | (local_setattro): New function. | |
1448 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
1449 | operation. | |
1450 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
1451 | operation function as part of stop/continue tests. | |
1452 | ||
37b50a69 TT |
1453 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
1454 | ||
1455 | PR gdb/12576: | |
1456 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
1457 | (needs_frame_dwarf_call): Likewise. | |
1458 | ||
eeae04df PM |
1459 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
1460 | ||
1461 | Fix ARI warning about functions without parameters that do not | |
1462 | use (void). | |
1463 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
1464 | * f-exp.y (match_string_literal): Ditto. | |
1465 | (yylex): Ditto. | |
1466 | * m2-exp.y (yylex): Ditto. | |
1467 | * mep-tdep.c (current_me_module): Ditto. | |
1468 | (current_options): Ditto. | |
1469 | (current_cop_data_bus_width): Ditto. | |
1470 | (current_cr_names): Ditto. | |
1471 | (current_cr_is_float): Ditto. | |
1472 | (current_ccr_names): Ditto. | |
1473 | * objc-exp.y (yylex): Ditto. | |
1474 | * p-exp.y (yylex): Ditto. | |
1475 | * remote.c (send_interrupt_sequence): Ditto. | |
1476 | * tracepoint.c (current_trace_status): Ditto. | |
1477 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
1478 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
1479 | ||
6dc3565d MS |
1480 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
1481 | ||
1427fe5e MS |
1482 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
1483 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
1484 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
1485 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
1486 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
1487 | ||
60bc018f MS |
1488 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
1489 | (delete_async_event_handler): Ditto. | |
1490 | ||
f3be5b64 MS |
1491 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
1492 | ||
4c2d5724 MS |
1493 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
1494 | ||
6dc3565d MS |
1495 | * top.c (set_verbose): Assert showcmd was found. |
1496 | ||
4e6ca6d5 MG |
1497 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
1498 | ||
1499 | * xtensa-tdep.c (warning_once): Correct style issues. | |
1500 | ||
815a83e4 YQ |
1501 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
1502 | ||
1503 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
1504 | ||
f2eb0bc8 AS |
1505 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
1506 | ||
1507 | * common/aclocal.m4: Remove. | |
1508 | ||
b801de47 MG |
1509 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
1510 | ||
1511 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
1512 | (xtensa_write_register, xtensa_read_register): Likewise. | |
1513 | (xtensa_hextochar): Removed. | |
1514 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
1515 | ||
dbab50de MG |
1516 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
1517 | ||
1518 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 1519 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
1520 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
1521 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
1522 | (warning_once): New function. | |
1523 | (xtensa_insn_kind): New item c0opc_and. | |
1524 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
1525 | (call0_track_op): Change arguments. New local variable litbase. |
1526 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
1527 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
1528 | in the prologue. | |
dbab50de | 1529 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 1530 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
1531 | Add the variety of updates to handle extended prologues, which now can |
1532 | conduct dynamic stack adjustments. | |
1533 | (call0_frame_cache): Likewise. | |
1534 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
1535 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
1536 | ||
b2c04452 MS |
1537 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
1538 | ||
f8f67713 MS |
1539 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
1540 | (cmd_qtframe): Ditto. | |
1541 | (cmd_qtbuffer): Ditto. | |
1542 | (cmd_bigqtbuffer): Ditto. | |
1543 | ||
197f0a60 TT |
1544 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
1545 | ||
1546 | * tracepoint.c (trace_actions_command): Update. | |
1547 | * thread.c (thread_apply_command): Update. | |
1548 | * reverse.c (delete_bookmark_command): Update. | |
1549 | (bookmarks_info): Update. | |
1550 | * printcmd.c (undisplay_command): Update. | |
1551 | * memattr.c (mem_enable_command): Update. | |
1552 | (mem_disable_command): Update. | |
1553 | (mem_delete_command): Update. | |
1554 | * inferior.c (detach_inferior_command): Update. | |
1555 | (kill_inferior_command): Update. | |
1556 | (remove_inferior_command): Update. | |
1557 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
1558 | (init_number_or_range): Declare. | |
1559 | (get_number_or_range): Update. | |
1560 | * cli/cli-utils.c (init_number_or_range): New function. | |
1561 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
1562 | static variables. | |
1563 | (number_is_in_list): Update. | |
1564 | * breakpoint.h (get_tracepoint_by_number): Update. | |
1565 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
1566 | get_number_or_range. | |
1567 | (find_location_by_number): Use get_number, not | |
1568 | get_number_or_range. | |
1569 | (trace_pass_set_count): New function. | |
1570 | (trace_pass_command): Update for change to get_number_or_range. | |
1571 | Rework loop logic. | |
1572 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
1573 | 'state' parameter. | |
1574 | ||
ecec24e6 PM |
1575 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
1576 | ||
1577 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
1578 | parameters. Register Python object context. | |
1579 | (get_show_value): New function. | |
1580 | (get_set_value): New function. | |
1581 | (call_doc_function): New function. | |
1582 | (get_doc_string): Move behind get_show_value/get_set_value. | |
1583 | ||
6d6c6b1f JK |
1584 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
1585 | ||
1586 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
1587 | ||
68d6df83 MG |
1588 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
1589 | ||
dbab50de | 1590 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
1591 | (xtensa_write_register): Likewise. |
1592 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
1593 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
1594 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
1595 | (xtensa_exception_handler_t): Update to match coding conventions. | |
1596 | (xtensa_insn_kind): Likewise. | |
1597 | ||
85c9d6a6 MS |
1598 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
1599 | ||
1600 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
1601 | ||
91495617 PA |
1602 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
1603 | ||
1604 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
1605 | ||
eb8c0621 TT |
1606 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
1607 | ||
1608 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
1609 | (make_cleanup_restore_current_thread): Use | |
1610 | get_selected_frame_if_set. | |
1611 | * frame.h (get_selected_frame_if_set): Declare. | |
1612 | * frame.c (get_selected_frame_if_set): New function. | |
1613 | ||
9f37bbcc PA |
1614 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
1615 | ||
1616 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
1617 | * coffread.c (coff_start_symtab): Constify parameter. | |
1618 | (complete_symtab): Constify `name' parameter. | |
1619 | (coff_symtab_read): Constify `filestring' local. | |
1620 | (coff_getfilename): Constify return and `result' local. | |
1621 | Use lbasename. | |
1622 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
1623 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
1624 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
1625 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
1626 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
1627 | * procfs.c (procfs_make_note_section): Use lbasename. | |
1628 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
1629 | Use lbasename. | |
1630 | (print_filename): Constify parameters, and local `s'. | |
1631 | (tui_rl_display_match_list): Constify local `temp'. | |
1632 | ||
f8de3c55 JK |
1633 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1634 | ||
1635 | Revert: | |
1636 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1637 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
1638 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
1639 | cu->header.version >= 3. | |
1640 | ||
d9837b00 YQ |
1641 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
1642 | ||
1643 | * common/Makefile.in: Remove. | |
1644 | * common/configure: Remove. | |
1645 | * common/configure.ac: Remove. | |
1646 | ||
e637a4f5 YQ |
1647 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
1648 | ||
1649 | Revert: | |
1650 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
1651 | ||
1652 | * common/Makefile.in: Add copyright header. | |
1653 | ||
1654 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
1655 | ||
1656 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
1657 | libcommon.a. | |
1658 | * configure.ac: Add common to sub dir. | |
1659 | * configure: Regenerate. | |
1660 | ||
f976a05d MG |
1661 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
1662 | ||
1663 | * xtensa-tdep.c (call0_ret): New function. | |
1664 | (xtensa_skip_prologue): Speed up analysis. | |
1665 | ||
57041825 MG |
1666 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
1667 | ||
1668 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
1669 | while executing MI command -data-list-changed-registers. | |
1670 | ||
08b9c608 MG |
1671 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
1672 | ||
1673 | * xtensa-tdep.c (xtensa_read_register): New function. | |
1674 | (xtensa_write_register): New function. | |
1675 | (xtensa_find_register_by_name): New function. | |
1676 | (xtensa_windowed_frame_cache): Update comments in type description. | |
1677 | (xtensa_frame_cache): Likewise. | |
1678 | (xtensa_window_interrupt_insn): New function. | |
1679 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
1680 | (xtensa_insn_kind): Add new instructions. | |
1681 | (rwx_special_register): New function. | |
1682 | (call0_classify_opcode): Add new instructions to the analysis. | |
1683 | (a0_saved, a7_saved, a11_saved): New variables. | |
1684 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
1685 | (execute_l32e): New function. | |
1686 | (execute_s32e): New function. | |
1687 | (xtensa_exception_handler_t): New type. | |
1688 | (execute_code): New function. | |
1689 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
1690 | analysis for Xtensa Window Exception handlers. | |
1691 | ||
4d1acb11 MG |
1692 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
1693 | ||
98689b25 MG |
1694 | * xtensa-tdep.c (TX_PS): New. |
1695 | (windowing_enabled): Update to count for Call0 ABI. | |
1696 | (xtensa_hextochar): New. | |
1697 | (xtensa_init_reggroups): Make algorithm generic. | |
1698 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
1699 | ||
1700 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
1701 | ||
1702 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 1703 | |
d3f323f3 MS |
1704 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
1705 | ||
3dcabaa8 MS |
1706 | * i386-tdep.c (i386_follow_jump): Check return value of |
1707 | target_read_memory. | |
1708 | (i386_analyze_struct_return): Ditto. | |
1709 | (i386_skip_probe): Ditto. | |
1710 | (i386_match_insn): Ditto. | |
1711 | (i386_skip_noop): Ditto. | |
1712 | (i386_analyze_frame_setup): Ditto. | |
1713 | (i386_analyze_register_saves): Ditto. | |
1714 | (i386_skip_prologue): Ditto. | |
1715 | (i386_skip_main_prologue): Ditto. | |
1716 | ||
13b3fd9b MS |
1717 | * target.c (read_whatever_is_readable): Fix memory leak. |
1718 | ||
d3f323f3 MS |
1719 | * i386-tdep.c (i386_process_record): Document fall through. |
1720 | ||
421d5c74 JK |
1721 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1722 | ||
1723 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
1724 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
1725 | cu->header.version >= 3. | |
1726 | ||
63154eca PA |
1727 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
1728 | ||
1729 | * remote.c (remote_check_symbols): Skip if the target has no | |
1730 | execution. | |
1731 | ||
f1a507a1 JB |
1732 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
1733 | ||
1734 | * target.c (read_whatever_is_readable): Reformat comment, | |
1735 | with a minor typo fix. Minor reformatting of the code. | |
1736 | ||
36073a92 YQ |
1737 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
1738 | ||
1739 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
1740 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
1741 | Use cached result instead of calling displaced_in_arm_mode again. | |
1742 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
1743 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
1744 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
1745 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
1746 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
1747 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
1748 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
1749 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
1750 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
1751 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
1752 | (arm_catch_kernel_helper_return): Likewise. | |
1753 | * gdb/arm-tdep.h : Update function declarations. | |
1754 | ||
d3f323f3 | 1755 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 1756 | |
e0e40094 MS |
1757 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
1758 | ||
0b2381f5 MS |
1759 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
1760 | ||
0350914a MS |
1761 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
1762 | ||
69feea6f MS |
1763 | * elfread.c (elf_symtab_read): Stop memory leak. |
1764 | ||
e6040cbd MS |
1765 | * main.c (captured_main): Fix memory leak. |
1766 | ||
052874e8 AS |
1767 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
1768 | ||
1769 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
1770 | instead of string2. | |
1771 | ||
b11896a5 TT |
1772 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
1773 | ||
1774 | * xcoffread.c (xcoff_sym_fns): Update. | |
1775 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
1776 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
1777 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
1778 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
1779 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
1780 | * somread.c (som_sym_fns): Update. | |
1781 | * psymtab.h (require_partial_symbols): Declare. | |
1782 | * psymtab.c (require_partial_symbols): New function. | |
1783 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
1784 | (ALL_OBJFILE_PSYMTABS): Undef. | |
1785 | (ALL_PSYMTABS): Move from psympriv.h. | |
1786 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
1787 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
1788 | (find_last_source_symtab_from_partial) | |
1789 | (forget_cached_source_info_partial) | |
1790 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
1791 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
1792 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
1793 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
1794 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
1795 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
1796 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
1797 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
1798 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
1799 | psymtabs. | |
1800 | * mipsread.c (ecoff_sym_fns): Update. | |
1801 | * machoread.c (macho_sym_fns): Update. | |
1802 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
1803 | (read_psyms): New function. | |
1804 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
1805 | (elf_sym_fns_lazy_psyms): New global. | |
1806 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
1807 | dwarf2_build_psymtabs. | |
1808 | * dbxread.c (aout_sym_fns): Update. | |
1809 | * coffread.c (coff_sym_fns): Update. | |
1810 | ||
fda326dd TT |
1811 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
1812 | ||
1813 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
1814 | message. | |
1815 | ||
aeaec162 TT |
1816 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
1817 | ||
1818 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
1819 | parameter. | |
1820 | (target_has_execution_1): Update. | |
1821 | (target_has_execution_current): Declare. | |
1822 | (target_has_execution): Call target_has_execution_current. | |
1823 | (default_child_has_execution): Update. | |
1824 | * target.c (default_child_has_execution): Add 'the_ptid' | |
1825 | parameter. | |
1826 | (target_has_execution_1): Likewise. | |
1827 | (target_has_execution_current): New function. | |
1828 | (add_target): Update. | |
1829 | (init_dummy_target): Update. | |
1830 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
1831 | (init_m32r_ops): Use it. | |
1832 | * record.c (record_core_has_execution): Now static. Add | |
1833 | 'the_ptid' parameter. | |
1834 | * inferior.c (have_live_inferiors): Don't save current thread. | |
1835 | Use target_has_execution_1. | |
1836 | ||
08e14083 YQ |
1837 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
1838 | ||
1839 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
1840 | ||
c05d19c5 JB |
1841 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
1842 | ||
1843 | * elfread.c (elf_symtab_read): Minor reformatting. | |
1844 | ||
3e6ef9e4 JB |
1845 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
1846 | ||
1847 | * objc-lang.c (selectors_info): Minor reformatting. | |
1848 | ||
dbb8534f JB |
1849 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
1850 | ||
1851 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
1852 | ||
dd70cc93 JB |
1853 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
1854 | Michael Snyder <msnyder@vmware.com> | |
1855 | ||
1856 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
1857 | "byte_order" and "elttype" inside the block where these variables | |
1858 | are actually used. Remove some special handling for the case | |
1859 | where "elttype" and "eltlen" are null. Replace by a comment | |
1860 | and a couple of assertion checks. | |
1861 | ||
b27cf2b3 MS |
1862 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
1863 | ||
1864 | * source.c (add_path): Replace semicolon at end of block. | |
1865 | * dwarf2expr.c (execute_stack_op): Ditto. | |
1866 | ||
5387a0c6 MF |
1867 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
1868 | ||
1869 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
1870 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
1871 | (bfin-*-*): Likewise. | |
1872 | ||
e3aa49af MS |
1873 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
1874 | ||
82ae4854 MS |
1875 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
1876 | * mdebugread.c (parse_symbol): Ditto. | |
1877 | * parse.c (parse_exp_in_context): Ditto. | |
1878 | * source.c (add_path): Ditto. | |
1879 | * utils.c (gnu_debuglink_crc32): Ditto. | |
1880 | * varobj.c (variable_language): Ditto. | |
1881 | ||
e3aa49af MS |
1882 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
1883 | ||
154f592e MS |
1884 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
1885 | ||
da3ecdc6 MS |
1886 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
1887 | ||
9cc89665 MS |
1888 | * symfile.c (simple_overlay_update): Check for null return value |
1889 | from lookup_minimal_symbol. | |
1890 | ||
154f592e MS |
1891 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
1892 | ||
63ffa6ee TJB |
1893 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1894 | ||
1895 | * eval.c (parse_and_eval_address_1): Remove function. | |
1896 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
1897 | instead of parse_and_eval_address_1. | |
1898 | * value.h (parse_and_eval_address_1): Remove prototype. | |
1899 | ||
a17d146e MS |
1900 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
1901 | ||
1902 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
1903 | ||
1a6a67de TJB |
1904 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1905 | ||
1906 | * breakpointc (print_it_typical): Move NULL check from here... | |
1907 | (print_bp_stop_message): ... to here. | |
1908 | ||
488919c4 MS |
1909 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
1910 | ||
1911 | * breakpoint.c (enable_command): Use break instead of continue, | |
1912 | and fill in a missing break. | |
1913 | (disable_command): Ditto. | |
1914 | ||
1e182ce8 UW |
1915 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
1916 | ||
1917 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
1918 | (terminal_save_ours): Remove misleading comment. | |
1919 | (inflow_inferior_data_cleanup): Free ttystate. | |
1920 | (inflow_inferior_exit): Likewise. | |
1921 | (copy_terminal_info): Copy ttystate. | |
1922 | ||
1923 | * serial.c (serial_copy_tty_state): New function. | |
1924 | * serial.h (serial_copy_tty_state): Add prototype. | |
1925 | (struct serial_ops): Add copy_tty_state callback. | |
1926 | * ser-base.c (ser_base_copy_tty_state): New function. | |
1927 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
1928 | * ser-go32.c (dos_copy_tty_state): New function. | |
1929 | (dos_ops): Install copy_tty_state callback. | |
1930 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
1931 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
1932 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
1933 | (_initialize_ser_hardwire): Install it. | |
1934 | ||
b2c5f112 MS |
1935 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
1936 | ||
2abae994 MS |
1937 | * breakpoint.c (create_breakpoint): Add missing break statement. |
1938 | ||
7f5936f9 MS |
1939 | Reverting this patch: |
1940 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
1941 | ||
b2c5f112 MS |
1942 | Reverting this patch: |
1943 | * cli/cli-script.c (script_from_file): Add break for lint. | |
1944 | ||
42b1321c MS |
1945 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
1946 | ||
1947 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
1948 | ||
3e2a0cee TT |
1949 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
1950 | ||
1951 | PR gdb/12538: | |
1952 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
1953 | DW_STRING is NULL. | |
1954 | ||
58397cb7 MS |
1955 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
1956 | ||
2e3fd767 MS |
1957 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
1958 | fields of struct 'st' to zero. | |
1959 | ||
58397cb7 MS |
1960 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
1961 | sal.pspace before calling set_current_source_symtab_and_line. | |
1962 | ||
ced54c8f YQ |
1963 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
1964 | ||
1965 | * Makefile.in (configure-common): Remove. Let Makefile | |
1966 | in dir common to rebuild itself. | |
1967 | (common/Makefile): Likewise. | |
1968 | ||
3351ea09 JB |
1969 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
1970 | ||
1971 | * utils.c (parse_escape): Add i18n markup in error message. | |
1972 | ||
bf9f652a YQ |
1973 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
1974 | ||
1975 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
1976 | ARM_PC_REGNUM. | |
1977 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
1978 | (displaced_write_reg, displaced_read_reg): Likewise. | |
1979 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
1980 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
1981 | (cleanup_branch): Replace magic number 14 and 15 with | |
1982 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
1983 | ||
d42de051 MS |
1984 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
1985 | ||
240f9570 MS |
1986 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
1987 | ||
10dd8b54 MS |
1988 | * cli/cli-script.c (script_from_file): Add break for lint. |
1989 | ||
b98bd911 MS |
1990 | * mdebugread.c (parse_partial_symbols): Fix indent. |
1991 | ||
3494b66d MS |
1992 | * target-descriptions.c (tdesc_gdb_type): No need to call |
1993 | xstrdup, callee saves a copy. | |
1994 | ||
daac021a MS |
1995 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
1996 | ||
c38d16a7 MS |
1997 | * infcall.c (call_function_by_hand): Add break statements for lint. |
1998 | ||
905b671b MS |
1999 | * utils.c (parse_escape): Escape the escape char. |
2000 | ||
f2eb0bc8 | 2001 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
2002 | PyList_Append fails. |
2003 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
2004 | ||
8c6a60d1 MS |
2005 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
2006 | a function call. | |
2007 | ||
d42de051 MS |
2008 | * record.c (record_restore): Move printf to before error return. |
2009 | ||
4db71c0b YQ |
2010 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
2011 | ||
2012 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
2013 | is_thumb and insn_size. | |
2014 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
2015 | on both ARM and Thumb mode. | |
2016 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
2017 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
2018 | (arm_displaced_step_fixup): Likewise. | |
2019 | ||
a9dc8dcc MS |
2020 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
2021 | ||
53624a93 MS |
2022 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
2023 | ||
77766669 MS |
2024 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
2025 | ||
62d5b8da MS |
2026 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
2027 | ||
5e9e105f MS |
2028 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
2029 | ||
dc19db01 MS |
2030 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
2031 | with xmalloc. | |
2032 | ||
5ce64950 MS |
2033 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
2034 | which shadows function parameter. | |
2035 | ||
a0aa2878 MS |
2036 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
2037 | to xstrdup. Callee already calls xstrdup. | |
2038 | ||
e325fb69 MS |
2039 | * linespec.c (decode_line_1): Remove unnecessary null check. |
2040 | ||
21cbba77 MS |
2041 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
2042 | variable. | |
2043 | ||
63360adc MS |
2044 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
2045 | superfluous null check. | |
2046 | ||
18ea20ac | 2047 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 2048 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 2049 | |
d014929c MS |
2050 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
2051 | ||
6e9130cf MS |
2052 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
2053 | be null. | |
2054 | ||
5f01dbc0 MS |
2055 | * linespec.c (decode_line_1): Check for null before dereference. |
2056 | ||
d684ab85 MS |
2057 | * reverse.c (record_restore): Move null-check to before pointer |
2058 | dereference. | |
2059 | ||
bfffb7e3 MS |
2060 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
2061 | ||
a9dc8dcc MS |
2062 | * objc-lang.c (selectors_info): Add explanitory comment. |
2063 | (classes_info): Ditto. | |
2064 | ||
478fd957 UW |
2065 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
2066 | ||
2067 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
2068 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
2069 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
2070 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
2071 | (arm_linux_init_abi): Install it. | |
2072 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
2073 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
2074 | ||
0480cefa MS |
2075 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
2076 | ||
ac50ab3b MS |
2077 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
2078 | a little bigger, to avoid possibility of an overflow. | |
2079 | ||
f63fbe86 MS |
2080 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
2081 | buffers a little bigger, to avoid possibility of an overflow. | |
2082 | ||
9e91a352 MS |
2083 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
2084 | ||
f2eb0bc8 | 2085 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
2086 | avoid overflow. |
2087 | (classes_info): Error out on too long REGEXP. | |
2088 | ||
098ab512 MS |
2089 | * infrun.c (handle_inferior_event): Remove unused function call. |
2090 | ||
bcbd1de9 MS |
2091 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
2092 | unused variable. | |
2093 | ||
2e456570 MS |
2094 | * linux-thread-db.c (attach_thread): Discard unused value. |
2095 | ||
14571dad MS |
2096 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
2097 | ||
a9cbf802 MS |
2098 | * remote.c (remote_get_noisy_reply): Discard unused value. |
2099 | (remote_vcont_resume): Ditto. | |
2100 | (remote_stop_ns): Ditto. | |
2101 | ||
5715d26e MS |
2102 | * linespec.c (decode_objc): Delete unused variable. |
2103 | ||
4a9bca80 MS |
2104 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
2105 | ||
f47fb265 MS |
2106 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
2107 | (read_base_type): Delete unused variable. | |
2108 | ||
e81cff30 MS |
2109 | * dbxread.c (read_dbx_symtab): Discard unused value. |
2110 | ||
262acaeb MS |
2111 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
2112 | and discard unused values. | |
2113 | ||
df983543 MS |
2114 | * infcmd.c (_initialize_infcmd): Discard unused values. |
2115 | ||
89acf84d MS |
2116 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
2117 | ||
ab8b8aca MS |
2118 | * dbxread.c (process_one_symbol): Discard unused value. |
2119 | ||
6b4511ab MS |
2120 | * coffread.c (coff_end_symtab): Delete unused variable. |
2121 | ||
e8e80198 MS |
2122 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
2123 | (dwarf2_add_typedef): Delete unused variable. | |
2124 | (read_namespace): Ditto. | |
2125 | (dwarf_decode_macros): Ditto. | |
2126 | ||
976aa66e MS |
2127 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
2128 | ||
5b92b49f MS |
2129 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
2130 | ||
91e8df85 MS |
2131 | * p-valprint.c (pascal_val_print): Discard unused value. |
2132 | ||
899500d6 MS |
2133 | * utils.c (nquery): Call va_end before return; |
2134 | (yquery): Ditto. | |
2135 | (query): Ditto. | |
2136 | ||
0480cefa MS |
2137 | * proc-service.c (ps_plog): Call va_end before return. |
2138 | ||
fb6a3ed3 TT |
2139 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
2140 | ||
2141 | * python/python.c (gdbpy_value_cst): New global. | |
2142 | (_initialize_python): Initialize it. | |
2143 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
2144 | * python/py-value.c (convert_value_from_python): Use | |
2145 | gdbpy_value_cst. | |
2146 | ||
c05202a1 MS |
2147 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
2148 | ||
e463f587 MS |
2149 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
2150 | ||
c38eea1a MS |
2151 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
2152 | ||
3ef09ab5 MS |
2153 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
2154 | ||
8f9a01ee MS |
2155 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
2156 | (lval_func_check_synthetic_pointer): Ditto. | |
2157 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 2158 | |
477d0d57 TT |
2159 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
2160 | ||
2161 | * psymtab.c (expand_partial_symbol_tables): Use | |
2162 | ALL_OBJFILE_PSYMTABS. | |
2163 | ||
20937029 JK |
2164 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2165 | ||
2166 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
2167 | ||
907b7f4f MS |
2168 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
2169 | ||
92e96192 MS |
2170 | * python/py-param.c (set_parameter_value): Add missing |
2171 | break statement. | |
2172 | ||
907b7f4f MS |
2173 | * linux-record.c (record_linux_system_call): Add missing |
2174 | break statement. | |
2175 | ||
12c5a436 UW |
2176 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
2177 | ||
2178 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
2179 | argument PRINT_ADDRESS_BITS. Update callers. | |
2180 | (print_one_breakpoint): Likewise. | |
2181 | ||
170b53b2 UW |
2182 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
2183 | ||
2184 | * breakpoint.c (wrap_indent_at_field): New function. | |
2185 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
2186 | Allocate ui_stream locally instead of using STB argument. | |
2187 | (print_one_breakpoint_location): Update call. | |
2188 | * ui-out.c (ui_out_query_field): New function. | |
2189 | * ui-out.h (ui_out_query_field): Add prototype. | |
2190 | ||
8ab1f94d JB |
2191 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
2192 | ||
2193 | From Michael Snyder <msnyder@vmware.com> | |
2194 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
2195 | ||
7d488639 MS |
2196 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
2197 | ||
ae179fba MS |
2198 | * objc-lang.c (selectors_info): Prevent string overrun. |
2199 | ||
086dbf66 MS |
2200 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
2201 | error in strncpy. | |
2202 | ||
f2eb0bc8 | 2203 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
2204 | outer scope. |
2205 | ||
7d488639 MS |
2206 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
2207 | param with a local variable of the same name. | |
2208 | ||
3bd0f5ef MS |
2209 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
2210 | ||
2211 | * value.c (value_from_history_ref): New function. | |
2212 | * value.h (value_from_history_ref): Export. | |
2213 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
2214 | to parse value history references. | |
2215 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
2216 | ||
2217 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
2218 | ||
2219 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
2220 | (kill_inferior_command): Ditto. | |
2221 | (remove_inferior_command): Ditto. | |
2222 | (initialize_inferiors): Make command names plural. | |
2223 | Update help strings. | |
2224 | ||
766062f6 MS |
2225 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
2226 | ||
2227 | * darwin-nat-info.c: Fix comment typo. | |
2228 | * dwarf2expr.h: Ditto. | |
2229 | * fbsd-nat.c: Ditto. | |
2230 | * fbsd-nat.h: Ditto. | |
2231 | * frame-unwind.h: Ditto. | |
2232 | * frame.h: Ditto. | |
2233 | * hppa-hpux-tdep.c: Ditto. | |
2234 | * i386-linux-nat.c: Ditto. | |
2235 | * linux-nat.c: Ditto. | |
2236 | * nbsd-nat.c: Ditto. | |
2237 | * nbsd-nat.h: Ditto. | |
2238 | * ppc-linux-tdep.c: Ditto. | |
2239 | * serial.c: Ditto. | |
2240 | * ui-file.h: Ditto. | |
2241 | * tui/tui-winsource.c: Ditto. | |
2242 | ||
f2c4ead5 MS |
2243 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
2244 | ||
86b887df MS |
2245 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
2246 | ||
66fd3b1e MS |
2247 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
2248 | ||
8c814cdd MS |
2249 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
2250 | with a local variable of the same name. | |
2251 | ||
6d5e094a | 2252 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 2253 | param with a local variable of the same name. |
6d5e094a | 2254 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 2255 | |
5eee517d MS |
2256 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
2257 | that it does not shadow a function parameter. | |
2258 | ||
8fbf6b93 MS |
2259 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
2260 | statement is meant to fall through. | |
2261 | ||
cb969d61 MS |
2262 | * expprint.c (dump_subexp_body_standard): Document that case |
2263 | statement is meant to fall through. | |
2264 | ||
f2c4ead5 MS |
2265 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
2266 | dead if statement. Condition can't be false. | |
2267 | ||
b021a221 MS |
2268 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
2269 | ||
2270 | * arm-tdep.c: Fix typos in comments. | |
2271 | * bsd-uthread.c: Ditto. | |
2272 | * completer.c: Ditto. | |
2273 | * corelow.c: Ditto. | |
2274 | * cp-namespace.c: Ditto. | |
2275 | * cp-support.c: Ditto. | |
2276 | * cris-tdep.c: Ditto. | |
2277 | * dbxread.c: Ditto. | |
2278 | * dwarf2read.c: Ditto. | |
2279 | * frame.h: Ditto. | |
2280 | * gdbtypes.h: Ditto. | |
2281 | * inferior.h: Ditto. | |
2282 | * mdebugread.c: Ditto. | |
2283 | * mips-tdep.c: Ditto. | |
2284 | * ppc-linux-nat.c: Ditto. | |
2285 | * ppc-linux-tdep.c: Ditto. | |
2286 | * printcmd.c: Ditto. | |
2287 | * sol-thread.c: Ditto. | |
2288 | * solib-frv.c: Ditto. | |
2289 | * solist.h: Ditto. | |
2290 | * sparc64-tdep.c: Ditto. | |
2291 | * spu-tdep.c: Ditto. | |
2292 | * stabsread.c: Ditto. | |
2293 | * symfile.c: Ditto. | |
2294 | * valops.c: Ditto. | |
2295 | * varobj.c: Ditto. | |
2296 | * vax-nat.c: Ditto. | |
2297 | * python/py-block.c: Ditto. | |
2298 | * python/py-symbol.c: Ditto. | |
2299 | * python/py-symtab.c: Ditto. | |
2300 | * python/py-value.c: Ditto. | |
2301 | * tui/tui-win.c: Ditto. | |
2302 | ||
c82c0b55 MS |
2303 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
2304 | ||
2305 | * inferior.c (print_inferior): Accept a string instead of an int | |
2306 | for requested_inferiors, and use get_number_or_range to parse it. | |
2307 | (info_inferiors_command): Pass args string to print_inferior. | |
2308 | (initialize_inferiors): Change help string for info inferiors. | |
2309 | * inferior.h (print_inferior): Export prototype change. | |
2310 | ||
ee00cd23 TT |
2311 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
2312 | ||
2313 | * common/ax.def (invalid2): Set to 0x31. | |
2314 | ||
0502ed8c JK |
2315 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2316 | ||
2317 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
2318 | L and plongest. | |
2319 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
2320 | use L and plongest. | |
2321 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
2322 | ||
2c9de912 MS |
2323 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
2324 | ||
2325 | * Makefile.in (clean): Make clean should remove generated files | |
2326 | observer.h and observer.inc. | |
2327 | ||
a04b0428 JB |
2328 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
2329 | ||
2330 | Revert the following patch (not approved yet): | |
2331 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
2332 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
2333 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
2334 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
2335 | * ax-general.c (ax_memcpy): New function. | |
2336 | (ax_print): Handle "printf". | |
2337 | (ax_reqs): Ditto. | |
2338 | * ax.h (ax_memcpy): Forward declare. | |
2339 | * common/ax.def (invalid2): Removed. | |
2340 | (printf): New entry. | |
2341 | * printcmd.c (printcmd.h): New include. | |
2342 | (string_printf): New function. | |
2343 | (ui_printf): Removed. | |
2344 | (printf_command): Remove static. Call string_printf. | |
2345 | (eval_command): Call string_printf. | |
2346 | * printcmd.h: New file. | |
2347 | * tracepoint.c (validate_actionline, | |
2348 | encode_actions_1): handle printf_command. | |
2349 | ||
2b52013f TT |
2350 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
2351 | ||
2352 | * ax-general.c (ax_pick): Add missing newline. | |
2353 | ||
e5a67952 MS |
2354 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
2355 | ||
2356 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
2357 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 2358 | breakpoints rather than just one. Use new function |
e5a67952 MS |
2359 | 'number_is_in_list' to implement. |
2360 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
2361 | (watchpoints_info): Ditto. | |
2362 | (tracepoints_info): Ditto. | |
2363 | (maintenance_info_breakpoints): Ditto. | |
2364 | (_initialize_breakpoint): Update help strings to reflect the fact | |
2365 | that these functions can now take more than one argument. | |
2366 | * cli/cli-utils.c (number_is_in_list): New function. | |
2367 | * cli/cli-utils.h (number_is_in_list): Export. | |
2368 | ||
2369 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
2370 | |
2371 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
2372 | (mem_disable_command): Ditto. | |
2373 | (mem_delete_command): Ditto. | |
2374 | (_initialize_mem): Tweak usage message to reflect multiple | |
2375 | arguments. | |
2376 | ||
6e6fbe60 DE |
2377 | 2011-02-22 Doug Evans <dje@google.com> |
2378 | ||
2379 | Add gdb.lookup_global_symbol python function. | |
2380 | * NEWS: Add entry. | |
2381 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
2382 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
2383 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
2384 | ||
79b97fa8 TT |
2385 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
2386 | ||
2387 | * language.c (language_class_name_from_physname): Rename | |
2388 | 'curr_language' argument to 'lang'; use in body. | |
2389 | ||
298f437a MS |
2390 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
2391 | ||
2392 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
2393 | ||
b7ea3126 PA |
2394 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
2395 | ||
2396 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
2397 | next. | |
2398 | ||
58ee6d60 TT |
2399 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
2400 | ||
2401 | * symfile.c (auto_solib_limit): Remove. | |
2402 | * symfile.h (auto_solib_limit): Remove. | |
2403 | ||
36238dbc JB |
2404 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
2405 | ||
2406 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
2407 | ||
aea5b279 MS |
2408 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
2409 | ||
2410 | * gdbthread.h (print_thread_info): Change prototype. | |
2411 | * thread.c (print_thread_info): Accept char* instead of int for | |
2412 | requested_threads argument. Use new function number_is_in_list | |
2413 | to determine which threads to list. | |
2414 | (info_threads_command): Pass char* to print_thread_info. | |
2415 | * cli/cli-utils.c (number_is_in_list): New function. | |
2416 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 2417 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
2418 | print_thread_info. |
2419 | (print_one_inferior): Ditto. | |
2420 | (mi_cmd_list_thread_groups): Ditto. | |
2421 | ||
8caa75ee JK |
2422 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
2423 | ||
2424 | * common/Makefile.in (CFLAGS): New. | |
2425 | (COMPILE): Add $(CFLAGS). | |
2426 | ||
ea666128 TT |
2427 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
2428 | ||
2429 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
2430 | ||
e9cafbcc TT |
2431 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
2432 | ||
2433 | * reverse.c: Include cli-utils.h. | |
2434 | * printcmd.c: Include cli-utils.h. | |
2435 | (string_printf): Use skip_spaces. | |
2436 | * cli/cli-utils.h: New file. | |
2437 | * cli/cli-utils.c: New file. | |
2438 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
2439 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
2440 | * breakpoint.h (get_number, get_number_or_range): Move to | |
2441 | cli-utils.h. | |
2442 | * breakpoint.c: Include cli-utils.h. | |
2443 | (get_number_trailer, get_number, get_number_or_range) | |
2444 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
2445 | (create_breakpoint_sal, find_condition_and_thread) | |
2446 | (decode_static_tracepoint_spec, watch_command_1) | |
2447 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
2448 | (catch_fork_command_1, catch_exec_command_1) | |
2449 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
2450 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
2451 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
2452 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
2453 | (cli-utils.o): New target. | |
2454 | ||
f67fd822 PM |
2455 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2456 | ||
2457 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
2458 | before calling discard_all_inferiors. | |
2459 | ||
c9def01d UW |
2460 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
2461 | ||
2462 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
2463 | (struct builtin_opencl_type): Remove. | |
2464 | (builtin_opencl_type): Change return type to "struct type **". | |
2465 | (lookup_opencl_vector_type): Update caller. | |
2466 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
2467 | (build_opencl_types): Install plain array of "struct type *" | |
2468 | instead of "struct builtin_opencl_type". | |
2469 | ||
e3039479 UW |
2470 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
2471 | Ulrich Weigand <uweigand@de.ibm.com> | |
2472 | ||
2473 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
2474 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
2475 | (struct arm_linux_hwbp_cap): New type. | |
2476 | (arm_linux_get_hwbp_cap): New function. | |
2477 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
2478 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
2479 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
2480 | (arm_hwbp_type): New type. | |
2481 | (arm_hwbp_control_t): Likewise. | |
2482 | (struct arm_linux_hw_breakpoint): Likewise. | |
2483 | (struct arm_linux_thread_points): Likewise. | |
2484 | (arm_threads): New global variable. | |
2485 | (arm_linux_find_breakpoints_by_tid): New function. | |
2486 | (arm_hwbp_control_initialize): Likewise. | |
2487 | (arm_hwbp_control_is_enabled): Likewise. | |
2488 | (arm_hwbp_control_disable): Likewise. | |
2489 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
2490 | (arm_linux_get_hwbp_type): Likewise. | |
2491 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
2492 | (arm_linux_hw_breakpoint_equal): Likewise. | |
2493 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
2494 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
2495 | (arm_linux_insert_hw_breakpoint): Likewise. | |
2496 | (arm_linux_remove_hw_breakpoint): Likewise. | |
2497 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
2498 | (arm_linux_insert_watchpoint): Likewise. | |
2499 | (arm_linux_remove_watchpoint): Likewise. | |
2500 | (arm_linux_stopped_data_address): Likewise. | |
2501 | (arm_linux_stopped_by_watchpoint): Likewise. | |
2502 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
2503 | (arm_linux_new_thread): Likewise. | |
2504 | (arm_linux_thread_exit): Likewise. | |
2505 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
2506 | related target callbacks. Register arm_linux_new_thread and | |
2507 | arm_linux_thread_exit. | |
2508 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
2509 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
2510 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
2511 | ||
b5db5dfc UW |
2512 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
2513 | ||
2514 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
2515 | per-frame locations while within a function epilogue. | |
2516 | ||
e25b2cfa PM |
2517 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2518 | ||
2519 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
2520 | to GNU coding standards. | |
2521 | ||
4af53f97 PM |
2522 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2523 | ||
2524 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 2525 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
2526 | (ser_windows_close): Only call CancelIo if function exists. |
2527 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
2528 | to check for existence of CancelIo function in kernel32 DLL. | |
2529 | ||
d0e92d82 HZ |
2530 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
2531 | ||
2532 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
2533 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
2534 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
2535 | * ax-general.c (ax_memcpy): New function. | |
2536 | (ax_print): Handle "printf". | |
2537 | (ax_reqs): Ditto. | |
2538 | * ax.h (ax_memcpy): Forward declare. | |
2539 | * common/ax.def (invalid2): Removed. | |
2540 | (printf): New entry. | |
2541 | * printcmd.c (printcmd.h): New include. | |
2542 | (string_printf): New function. | |
2543 | (ui_printf): Removed. | |
2544 | (printf_command): Remove static. Call string_printf. | |
2545 | (eval_command): Call string_printf. | |
2546 | * printcmd.h: New file. | |
2547 | * tracepoint.c (validate_actionline, | |
2548 | encode_actions_1): handle printf_command. | |
2549 | ||
7d357efd MS |
2550 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
2551 | ||
2552 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
2553 | id rather than pointer to bookmark struct. | |
2554 | (delete_bookmark_command): Use get_number_or_range. | |
2555 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
2556 | (bookmark_1): New function. Print info for one bookmark. | |
2557 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
2558 | ||
7a45ebd7 MS |
2559 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
2560 | ||
f2eb0bc8 | 2561 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 2562 | get_number_or_range. |
65ebfb52 | 2563 | (thread_apply_command): Ditto. |
7a45ebd7 | 2564 | |
94d5e490 TT |
2565 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
2566 | ||
2567 | * common/ax.def: New file. | |
2568 | * ax.h (enum agent_op): Use ax.def. | |
2569 | * ax-general.c (aop_map): Use ax.def. | |
2570 | ||
c7f96d2b TT |
2571 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
2572 | ||
2573 | * ax-general.c (aop_map): Add pick and rot. | |
2574 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
2575 | <DW_OP_rot>: Implement. | |
2576 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
2577 | (ax_pick): Declare. | |
2578 | * ax-general.c (ax_pick): New function. | |
2579 | ||
66694b75 TT |
2580 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
2581 | ||
2582 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
2583 | ||
eeaafae2 JK |
2584 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2585 | Tom Tromey <tromey@redhat.com> | |
2586 | ||
2587 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
2588 | make_symbol_overload_list_block with NULL BLOCK. | |
2589 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
2590 | ||
3c3fe74c PA |
2591 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
2592 | ||
2593 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
2594 | * breakpoint.h (get_number_or_range): Declare. | |
2595 | * printcmd.c (ALL_DISPLAYS): Declare. | |
2596 | (delete_display): Reimplement taking a display pointer. | |
2597 | (undisplay_command): Accept a range of displays to delete, using | |
2598 | get_number_or_range. | |
2599 | ||
13163d80 PM |
2600 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
2601 | ||
2602 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
2603 | for arrays of unspecified length. | |
2604 | * p-valprint.c (pascal_val_print): Likewise. | |
2605 | ||
b434a28f YQ |
2606 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
2607 | ||
2608 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
2609 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
2610 | (thumb_process_displaced_insn): New. | |
2611 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
2612 | call to arm_process_displaced_insn. | |
2613 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
2614 | ||
9f6f94ff TT |
2615 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
2616 | ||
2617 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
2618 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
2619 | compile_dwarf_to_ax. No longer static. Call | |
2620 | dwarf2_compile_cfa_to_ax. | |
2621 | (locexpr_tracepoint_var_ref): Update. | |
2622 | (loclist_tracepoint_var_ref): Update. | |
2623 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
2624 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
2625 | argument; add 'gdbarch' and 'pc'. | |
2626 | (dwarf2_compile_cfa_to_ax): New function. | |
2627 | (dwarf2_frame_cache): Update. | |
2628 | ||
e67ad678 JB |
2629 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
2630 | ||
2631 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
2632 | in the case of an unconstrained packed array. | |
2633 | ||
946ebb0d YQ |
2634 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
2635 | ||
2636 | * common/Makefile.in: Add more targets for make. | |
2637 | ||
1ba1b353 TT |
2638 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
2639 | ||
2640 | * dwarf2loc.c (unimplemented): Fix typo. | |
2641 | ||
b1bfef65 TT |
2642 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
2643 | ||
2644 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
2645 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
2646 | <DW_OP_deref>: Update. | |
2647 | (disassemble_dwarf_expression): Update. | |
2648 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
2649 | (decode_locdesc): Update. | |
2650 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
2651 | ||
5f1e6f19 TT |
2652 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
2653 | ||
2654 | * ax.h (struct aop_map) <name>: Now const. | |
2655 | ||
a0c78a73 PA |
2656 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
2657 | ||
2658 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
2659 | than axs_rvalue. | |
2660 | ||
946ebb0d | 2661 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
2662 | |
2663 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
2664 | * inferior.h: Declare it. | |
2665 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
2666 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
2667 | returns non-NULL. | |
2668 | ||
08807d5a PA |
2669 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
2670 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2671 | ||
2672 | gdb/ | |
2673 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
2674 | ||
29976f3f PA |
2675 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
2676 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2677 | ||
2678 | * value.c (value_contents_copy_raw): Extend describing comment. | |
2679 | Assert that the destination contents we're overwriting are wholly | |
2680 | available. | |
fb68ae73 | 2681 | (value_contents_copy): Extend describing comment. |
29976f3f | 2682 | |
cd24cfaa PA |
2683 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
2684 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2685 | ||
2686 | * value.c (value_available_contents_eq): Remove redundant local | |
2687 | variables. Fix available contents comparision. | |
2688 | * value.h (value_available_contents_eq): Extend describing | |
2689 | comment. | |
2690 | ||
60bbf338 YQ |
2691 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
2692 | ||
2693 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
2694 | trailing newline. | |
2695 | ||
17450429 PP |
2696 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
2697 | ||
2698 | * breakpoint.c (longjmp_names): New variable. | |
2699 | (struct breakpoint_objfile_data): New type. | |
2700 | (breakpoint_objfile_key): New variable. | |
2701 | (msym_not_found): New variable. | |
2702 | (msym_not_found_p): New predicate. | |
2703 | (get_breakpoint_objfile_data): New function. | |
2704 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
2705 | symbols first. | |
2706 | (create_longjmp_master_breakpoint): Likewise. | |
2707 | (create_std_terminate_master_breakpoint): Likewise. | |
2708 | (create_exception_master_breakpoint): Likewise. | |
2709 | (_initialize_breakpoint): Register per-objfile data key. | |
2710 | ||
af02033e PP |
2711 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
2712 | ||
2713 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
2714 | parameter value. | |
2715 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
2716 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
2717 | value. | |
2718 | (update_breakpoints_after_exec): Adjust. | |
2719 | (breakpoint_re_set): Adjust. | |
2720 | ||
60f98dde MS |
2721 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
2722 | ||
cdf99611 MS |
2723 | * thread.c (info_threads_command): Process arg as thread id, |
2724 | or list of thread ids. | |
2725 | (thread_find_command): New command. | |
2726 | (_initialize_thread): Document argument for info threads. | |
2727 | Document 'thread find' command. | |
2728 | * NEWS: Document new command "thread find". | |
60f98dde | 2729 | |
0feedb2c JK |
2730 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
2731 | ||
2732 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
2733 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
2734 | * common/configure: Regenerate with autoconf-2.64. | |
2735 | ||
648cd113 KW |
2736 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
2737 | ||
2738 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
2739 | bool data type to a size of one byte. | |
2740 | ||
5657161f PA |
2741 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
2742 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2743 | ||
2744 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
2745 | look for interface description. | |
2746 | ||
494e194e YQ |
2747 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
2748 | ||
2749 | PR tdep/12352 | |
2750 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
2751 | order to store PC value on stack instead of text section. | |
2752 | ||
d9492458 TJB |
2753 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2754 | ||
2755 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
2756 | the EFP register set size. | |
2757 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
2758 | data from the VMX register. | |
2759 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
2760 | and write data from/to the VMX register. | |
2761 | ||
cdf99611 MS |
2762 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
2763 | ||
2764 | * command.h (enum command_class): New class 'no_set_class', for | |
2765 | "show" commands without a corresponding "set" command. | |
2766 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
2767 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
2768 | "show warranty". | |
2769 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
2770 | "show version". | |
2771 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
2772 | which there is no corresponding "set" command (eg. "show copying"). | |
2773 | ||
424447ee PA |
2774 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2775 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2776 | ||
2777 | * exec.c (section_table_available_memory): Change `len' parameter | |
2778 | type to ULONGEST. | |
2779 | * exec.h (section_table_available_memory): Ditto. | |
2780 | * value.h (read_value_memory): Rename the `offset' parameter to | |
2781 | `embedded_offset'. | |
2782 | ||
c0f61f9c | 2783 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 2784 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
2785 | |
2786 | * memrange.c (compare_mem_ranges): Mention sort order in | |
2787 | describing comment. | |
2788 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
2789 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
2790 | mention what happens to RESULT when the target does not support | |
2791 | the query. | |
2792 | ||
6bfc80c7 PA |
2793 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2794 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2795 | ||
2796 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
2797 | range. | |
2798 | ||
e7303042 PA |
2799 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2800 | ||
2801 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
2802 | No longer handle NULL values. | |
2803 | ||
8af8e3bc PA |
2804 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2805 | ||
2806 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
2807 | * value.c: Include "exceptions.h". | |
2808 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
2809 | generic error. | |
2810 | * cp-abi.c: Include gdb_assert.h. | |
2811 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
2812 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
2813 | errors. | |
2814 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
2815 | parameters. No longer returns -1 on error. | |
2816 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
2817 | `val' parameters. | |
2818 | * cp-valprint.c: Include exceptions.h. | |
2819 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
2820 | the baseclass_offset. Handle unavailable base classes. Use | |
2821 | val_print_invalid_address. | |
2822 | * p-valprint.c: Include exceptions.h. | |
2823 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
2824 | when fetching the baseclass_offset. No longer expect | |
2825 | baseclass_offset returning -1. Handle unavailable base classes. | |
2826 | Use val_print_invalid_address. | |
2827 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
2828 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
2829 | `embedded_offset' and `val' parameters. Adjust. | |
2830 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
2831 | parameter, and change its type to gdb_byte pointer. Add | |
2832 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
2833 | baseclass_offset returning -1. | |
2834 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
2835 | value_contents. Adjust. | |
2836 | (search_struct_field): No longer expect baseclass_offset returning | |
2837 | -1. | |
2838 | (search_struct_method): If reading memory from the target is | |
2839 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
2840 | longer expect baseclass_offset returning -1. | |
2841 | (find_method_list): No longer expect baseclass_offset returning | |
2842 | -1. Use value_contents_for_printing rather than value_contents. | |
2843 | * valprint.c (val_print_invalid_address): New function. | |
2844 | * valprint.h (val_print_invalid_address): Declare. | |
2845 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
2846 | and `val' parameters. No longer expect baseclass_offset returning | |
2847 | -1. Adjust. | |
2848 | * gnu-v2-abi.c: Include "exceptions.h". | |
2849 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
2850 | parameters. Handle unavailable memory. Recurse through | |
2851 | gnuv2_baseclass_offset directly, rather than through | |
2852 | baseclass_offset. No longer returns -1 on not found, instead | |
2853 | throw an error. | |
2854 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
2855 | `val' parameters. Adjust. | |
2856 | ||
1b28d0b3 PA |
2857 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2858 | ||
2859 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
2860 | almost but not quite adjacent. | |
2861 | ||
ec0a52e1 PA |
2862 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2863 | ||
2864 | * value.h (value_entirely_available): Declare. | |
2865 | * value.c (value_entirely_available): New function. | |
2866 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
2867 | real type if the pointer is unavailable. | |
2868 | ||
24e6bcee PA |
2869 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2870 | ||
2871 | * valops.c (value_repeat): Use read_value_memory instead of | |
2872 | read_memory. | |
2873 | ||
39d37385 PA |
2874 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2875 | ||
2876 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
2877 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
2878 | functions. | |
2879 | (value_primitive_field): Use value_contents_copy_raw instead of | |
2880 | memcpy. | |
2881 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
2882 | memcpy. | |
2883 | (value_array, value_slice): Ditto. | |
2884 | * valarith.c (value_subscripted_rvalue): Use | |
2885 | value_contents_copy_raw instead of memcpy. | |
2886 | ||
a3d34bf4 PA |
2887 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2888 | ||
2889 | <unavailable> references. | |
2890 | ||
2891 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
2892 | avoiding read_memory. | |
2893 | ||
9fc6d940 PA |
2894 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2895 | ||
2896 | * c-valprint.c (c_val_print): Print a string with unavailable | |
2897 | contents as an array. | |
2898 | ||
5467c6c8 PA |
2899 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2900 | ||
2901 | * value.h (unpack_bits_as_long): Delete declaration. | |
2902 | (unpack_value_bits_as_long): Declare. | |
2903 | (unpack_value_field_as_long): Declare. | |
2904 | (value_field_bitfield): Declare. | |
2905 | * value.c (unpack_bits_as_long): Rename to... | |
2906 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
2907 | value parameters. Return the extracted result in a new output | |
2908 | parameter. If the value contents are unavailable, return false, | |
2909 | otherwise return true. | |
2910 | (unpack_value_bits_as_long): New. | |
2911 | (unpack_field_as_long): Rename to... | |
2912 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
2913 | Add embedded_offset and value parameters. Return the extracted | |
2914 | result in a new output parameter. If the value contents are | |
2915 | unavailable, return false, otherwise return true. | |
2916 | (unpack_value_field_as_long): New. | |
2917 | (unpack_field_as_long_1): New. | |
2918 | (unpack_field_as_long): Reimplement as wrapper around | |
2919 | unpack_value_field_as_long_1. | |
2920 | (value_field_bitfield): New function. | |
2921 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
2922 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
2923 | is unavailable. | |
2924 | * jv-valprint.c (java_print_value_fields): Use | |
2925 | value_field_bitfield. | |
2926 | * p-valprint.c (pascal_object_print_value_fields): Use | |
2927 | value_field_bitfield. | |
2928 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
2929 | ||
3158c6ed PA |
2930 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2931 | ||
2932 | * value.c (get_internalvar_integer): Also return the int value of | |
2933 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
2934 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
2935 | ||
9fbdca0d PA |
2936 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2937 | ||
2938 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
2939 | INTERNALVAR_POINTER. | |
2940 | <pointer>: Delete. | |
2941 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
2942 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
2943 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
2944 | ||
c8c1c22f PA |
2945 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2946 | ||
2947 | * value.h (value_available_contents_eq): Declare. | |
2948 | * value.c (find_first_range_overlap): New function. | |
2949 | (value_available_contents_eq): New function. | |
2950 | * valprint.c (val_print_array_elements): Use | |
2951 | value_available_contents_eq. | |
2952 | * ada-valprint.c (val_print_packed_array_elements): Use | |
2953 | value_available_contents_eq. | |
2954 | * jv-valprint.c (java_value_print): Use | |
2955 | value_available_contents_eq. | |
2956 | ||
e6e4e701 PA |
2957 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2958 | ||
2959 | * target.c (target_read_live_memory): New function. | |
2960 | (memory_xfer_live_readonly_partial): New. | |
2961 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
2962 | reading unavailable read-only memory from read-only regions of | |
2963 | live target memory. | |
2964 | * tracepoint.c (disconnect_tracing): Adjust. | |
2965 | (set_current_traceframe): New, factored out from | |
2966 | set_traceframe_number. | |
2967 | (set_traceframe_number): Reimplement to only change the traceframe | |
2968 | number on the GDB side. | |
2969 | (do_restore_current_traceframe_cleanup): Adjust. | |
2970 | (make_cleanup_restore_traceframe_number): New. | |
2971 | (cur_traceframe_number): New global. | |
2972 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
2973 | (set_tfile_traceframe): New function. | |
2974 | (tfile_trace_find): If looking up a traceframe using any method | |
2975 | other than by number, make sure the current tfile traceframe | |
2976 | matches gdb's current traceframe. Update the current tfile | |
2977 | traceframe if the lookup succeeded. | |
2978 | (tfile_fetch_registers, tfile_xfer_partial) | |
2979 | (tfile_get_trace_state_variable_value): Make sure the remote | |
2980 | traceframe matches gdb's current traceframe. | |
2981 | * remote.c (remote_traceframe_number): New global. | |
2982 | (remote_open_1): Set it to -1. | |
2983 | (set_remote_traceframe): New function. | |
2984 | (remote_fetch_registers, remote_store_registers) | |
2985 | (remote_xfer_memory, remote_xfer_partial) | |
2986 | (remote_get_trace_state_variable_value): Make sure the remote | |
2987 | traceframe matches gdb's current traceframe. | |
2988 | (remote_trace_find): If looking up a traceframe using any method | |
2989 | other than by number, make sure the current remote traceframe | |
2990 | matches gdb's current traceframe. Update the current remote | |
2991 | traceframe if the lookup succeeded. | |
2992 | * infrun.c (fetch_inferior_event): Adjust. | |
2993 | * tracepoint.h (set_current_traceframe): Declare. | |
2994 | (get_traceframe_number, set_traceframe_number): Add describing | |
2995 | comments. | |
2996 | ||
e6ca34fc PA |
2997 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
2998 | ||
2999 | Mark pieces of values as unavailable if the corresponding memory | |
3000 | is unavailable. | |
3001 | ||
3002 | * valops.c: Include tracepoint.h. | |
3003 | (value_fetch_lazy): Use read_value_memory. | |
3004 | (read_value_memory): New. | |
3005 | * value.h (read_value_memory): Declare. | |
3006 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
3007 | * exec.c (section_table_available_memory): New function. | |
3008 | * exec.h (section_table_available_memory): Declare. | |
3009 | ||
2a7498d8 PA |
3010 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
3011 | ||
3012 | * Makefile.in (SFILES): Add memrange.c. | |
3013 | (HFILES_NO_SRCDIR): Add memrange.h. | |
3014 | (COMMON_OBS): Add memrange.o. | |
3015 | * memrange.c: New file. | |
3016 | * memrange.h: New file. | |
3017 | * tracepoint.c: Include memrange.h. | |
3018 | (struct mem_range): Delete. | |
3019 | (mem_range_s): Delete. | |
3020 | (traceframe_available_memory): New function. | |
3021 | * tracepoint.h (traceframe_available_memory): Declare. | |
3022 | ||
b3b9301e PA |
3023 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
3024 | ||
3025 | * target.h (struct traceframe_info): Forward declare. | |
3026 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
3027 | (struct target_ops) <to_traceframe_info>: New field. | |
3028 | (target_traceframe_info): New. | |
3029 | * target.c (update_current_target): Inherit and default | |
3030 | to_traceframe_info. | |
3031 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
3032 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
3033 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
3034 | (remote_traceframe_info): New. | |
3035 | (init_remote_ops): Install it. | |
3036 | (_initialize_remote): Install "set/show remote traceframe-info" | |
3037 | commands. | |
3038 | * tracepoint.h (parse_traceframe_info): Declare. | |
3039 | * tracepoint.c (struct mem_range): New. | |
3040 | (mem_range_s): New typedef. | |
3041 | (struct traceframe_info): New. | |
3042 | (traceframe_info): New global. | |
3043 | (free_traceframe_info): New function. | |
3044 | (clear_traceframe_info): New function. | |
3045 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
3046 | info. | |
3047 | (build_traceframe_info): New function. | |
3048 | (tfile_traceframe_info): New function. | |
3049 | (init_tfile_ops): Install tfile_traceframe_info. | |
3050 | (traceframe_info_start_memory, free_result): New functions. | |
3051 | (memory_attributes, traceframe_info_elements): New globals. | |
3052 | (parse_traceframe_info, get_traceframe_info): New functions. | |
3053 | * features/traceframe-info.dtd: New file. | |
3054 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
3055 | ||
4e07d55f PA |
3056 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
3057 | ||
3058 | Base support for <unavailable> value contents. | |
3059 | ||
4e07d55f PA |
3060 | * value.h (value_bytes_available): Declare. |
3061 | (mark_value_bytes_unavailable): Declare. | |
3062 | * value.c (struct range): New struct. | |
3063 | (range_s): New typedef. | |
3064 | (ranges_overlap): New function. | |
3065 | (range_lessthan): New function. | |
3066 | (ranges_contain_p): New function. | |
3067 | (struct value) <unavailable>: New field. | |
3068 | (value_bytes_available): New function. | |
3069 | (mark_value_bytes_unavailable): New function. | |
3070 | (require_not_optimized_out): Constify parameter. | |
3071 | (require_available): New function. | |
3072 | (value_contents_all, value_contents): Require all bytes be | |
3073 | available. | |
3074 | (value_free): Free `unavailable'. | |
3075 | (value_copy): Copy `unavailable'. | |
3076 | * valprint.h (val_print_unavailable): Declare. | |
3077 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
3078 | to `embedded_offset'. If printing a scalar, check whether the | |
3079 | value chunk is available. | |
3080 | (val_print_unavailable): New. | |
3081 | (val_print_scalar_formatted): Check whether the value is | |
3082 | available. | |
3083 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
3084 | pretty-printing unavailable values. | |
3085 | ||
bc9a5551 JK |
3086 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3087 | ||
3088 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
3089 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
3090 | variable param_type, initialize it. Remove const/volatile qualifiers | |
3091 | for language_cplus and !show_artificial. Use param_type. | |
3092 | ||
93b55aa1 JK |
3093 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
3094 | ||
3095 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
3096 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
3097 | * symtab.h (struct symtab) <next>: Comment extension. | |
3098 | ||
181d9476 YQ |
3099 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
3100 | ||
3101 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
3102 | ||
b708a5c7 JK |
3103 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3104 | ||
3105 | * common/Makefile.in: Add copyright header. | |
3106 | ||
c5187ac6 PA |
3107 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
3108 | ||
3109 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
3110 | here ... | |
3111 | (fetch_inferior_event): ... to here. | |
3112 | ||
4f3e6fb7 YQ |
3113 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3114 | ||
3115 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
3116 | libcommon.a. | |
3117 | * configure.ac: Add common to sub dir. | |
3118 | * configure: Regenerate. | |
3119 | ||
b708a5c7 JK |
3120 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
3121 | ||
3122 | Build libcommon.a. | |
3123 | ||
3124 | * common/Makefile.in: New. | |
3125 | * common/configure.ac: New. | |
3126 | * common/aclocal.m4: New. | |
3127 | * common/configure: Generate. | |
3128 | ||
2287cc7e PA |
3129 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
3130 | ||
3131 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
3132 | side of the parenthesis. | |
3133 | ||
3134 | Merge from GCC: | |
3135 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 3136 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 3137 | |
fd62cb89 MS |
3138 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
3139 | ||
3140 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
3141 | ||
56d2815c JK |
3142 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3143 | ||
3144 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
3145 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
3146 | psubd and paddd. | |
3147 | ||
4f7d61a8 JK |
3148 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3149 | ||
3150 | PR 12361. | |
3151 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
3152 | phsubsw. | |
3153 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
3154 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
3155 | ||
54fcddd0 UW |
3156 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
3157 | ||
3158 | * dwarf2read.c (read_subroutine_type): Set special calling | |
3159 | convention flag for functions compiled by IBM XL C for OpenCL. | |
3160 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
3161 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
3162 | calling convention. | |
3163 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
3164 | IBM OpenCL vector types calling convention. | |
3165 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
3166 | (ppc_sysv_abi_broken_return_value): Likewise. | |
3167 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
3168 | types calling convention. | |
3169 | (ppc64_sysv_abi_return_value): Likewise. | |
3170 | * spu-tdep.c: Include "dwarf2.h" | |
3171 | (spu_return_value): Implement IBM OpenCL vector types calling | |
3172 | convention. | |
3173 | ||
d6dafb7c UW |
3174 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
3175 | ||
3176 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
3177 | correct ABI for AltiVec vector arguments. | |
3178 | ||
32b72a42 PA |
3179 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
3180 | ||
3181 | * valprint.c (val_print): Extend comment. | |
3182 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
3183 | interface explanation to val_print. | |
3184 | (ada_val_print_array): Adjust comment to current interface. | |
3185 | (print_field_values): Adjust comment to current interface. | |
3186 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
3187 | explanation to val_print. | |
3188 | * f-valprint.c (f_val_print): Ditto. | |
3189 | * jv-valprint.c (java_val_print): Ditto. | |
3190 | * m2-valprint.c (m2_val_print): Ditto. | |
3191 | * p-valprint.c (pascal_val_print): Ditto. | |
3192 | ||
9998af43 TJB |
3193 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3194 | ||
3195 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
3196 | ||
505500db | 3197 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 3198 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
3199 | |
3200 | * python/py-inferior.c (python_on_normal_stop): New function. | |
3201 | (python_on_resume): New function. | |
3202 | (python_inferior_exit): New function. | |
3203 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
3204 | inferior_exit observers. | |
3205 | * python/py-evtregistry.c: New file. | |
3206 | * python/py-threadevent.c : New file. | |
3207 | * python/py-event.c: New file. | |
3208 | * python/py-evts.c: New file. | |
3209 | * python/py-continueevent.c: New file. | |
3210 | * python/py-bpevent.c: New file. | |
3211 | * python/py-signalevent.c: New file. | |
3212 | * python/py-exetiedevent.c: New file. | |
3213 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
3214 | Move struct breakpoint_object from here... | |
3215 | * python/python-internal.h: ... to here. | |
3216 | * python/py-event.h: New file. | |
3217 | * python/py-events.h: New file. | |
3218 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
3219 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
3220 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
3221 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
3222 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
3223 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
3224 | Add build rules for all the above. | |
3225 | ||
9e0ac564 TT |
3226 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
3227 | ||
3228 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
3229 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
3230 | (dwarf2_section_size): New function. | |
3231 | (dwarf2_get_section_info): Unconditionally read section. | |
3232 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
3233 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
3234 | (dwarf2_symbol_mark_computed): Likewise. | |
3235 | ||
eee5b35e DD |
3236 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
3237 | ||
3238 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
3239 | ||
385203ed DD |
3240 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
3241 | ||
3242 | * mips-linux-tdep.c: Include xml-syscall.h. | |
3243 | (mips_linux_get_syscall_number): New function. | |
3244 | (mips_linux_init_abi): Add calls to | |
3245 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
3246 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
3247 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
3248 | * syscalls/mips-n32-linux.xml: New file. | |
3249 | * syscalls/mips-n64-linux.xml: New file. | |
3250 | * syscalls/mips-o32-linux.xml: New file. | |
3251 | ||
9277c30c UW |
3252 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
3253 | ||
3254 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
3255 | Complain about inverted range entries. | |
3256 | (dwarf2_record_block_ranges): Likewise. | |
3257 | ||
a3be7890 TJB |
3258 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3259 | ||
3260 | Fix some typos. | |
3261 | * breakpoint.c (update_watchpoint): Fix name of the | |
3262 | update_global_location_list function. | |
3263 | (print_one_breakpoint): Fix typo. | |
3264 | (_initialize_breakpoint): Remove extra space in hbreak help | |
3265 | string. | |
3266 | * breakpoint.h (struct bp_location) <length>: Fix field | |
3267 | description. | |
3268 | ||
041274d8 PA |
3269 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
3270 | ||
3271 | * regcache.c (registers_changed_ptid): Don't explictly always | |
3272 | clear `current_regcache'. Only clear current_thread_ptid and | |
3273 | current_thread_arch when PTID matches. Only reinit the frame | |
3274 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
3275 | call to ... | |
3276 | (registers_changed): ... here. | |
3277 | ||
c1c2ab58 UW |
3278 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
3279 | ||
3280 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
3281 | starts with __stack_chk_guard as stack guard symbol. | |
3282 | ||
9011945e AB |
3283 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
3284 | ||
3285 | * disasm.c (compare_lines): Handle the end of sequence markers | |
3286 | within the line table to better support disassembling over | |
3287 | compilation unit boundaries. | |
3288 | ||
e0634ccf UW |
3289 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
3290 | ||
3291 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
3292 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
3293 | implementation even if no symbols are available. | |
3294 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
3295 | (arm_analyze_prologue): Likewise. | |
3296 | ||
0e9e9abd UW |
3297 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
3298 | ||
3299 | * arm-tdep.c: Include "observer.h". | |
3300 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
3301 | (arm_exidx_data_key): New static variable. | |
3302 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
3303 | (struct arm_exidx_data): Likewise. | |
3304 | (arm_exidx_data_free): New function. | |
3305 | (arm_compare_exidx_entries): Likewise. | |
3306 | (arm_obj_section_from_vma): Likewise. | |
3307 | (arm_exidx_new_objfile): Likewise. | |
3308 | (arm_find_exidx_entry): Likewise. | |
3309 | (arm_exidx_fill_cache): Likewise. | |
3310 | (arm_exidx_unwind_sniffer): Likewise. | |
3311 | (arm_exidx_unwind): New global variable. | |
3312 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
3313 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
3314 | observer. Register arm_exidx_data_key as objfile data. | |
3315 | ||
2e9e421f UW |
3316 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
3317 | ||
3318 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
3319 | due to accessing uninitialized variable. Fix indentation. | |
3320 | ||
580688f3 PA |
3321 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
3322 | ||
3323 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
3324 | adjustment, create a new value with adjusted contents rather than | |
3325 | changing the contents of the value being printed (and getting it | |
3326 | wrong). | |
3327 | ||
3d2c1d41 PA |
3328 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
3329 | ||
3330 | * xml-support.c (xml_find_attribute): New. | |
3331 | (xinclude_start_include): Use it. | |
3332 | * xml-support.h (xml_find_attribute): Declare. | |
3333 | * memory-map.c (memory_map_start_memory) | |
3334 | (memory_map_start_property): Use xml_find_attribute. | |
3335 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
3336 | xml_find_attribute. | |
3337 | * remote.c (start_thread): Use xml_find_attribute. | |
3338 | * solib-target.c (library_list_start_segment) | |
3339 | (library_list_start_section, library_list_start_library) | |
3340 | (library_list_start_list): Use xml_find_attribute. | |
3341 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
3342 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
3343 | (tdesc_start_field): Use xml_find_attribute. | |
3344 | ||
0af3e2db UW |
3345 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
3346 | ||
3347 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
3348 | (BUILD_OCL_VTYPES): Update. | |
3349 | ||
c1039e3c JB |
3350 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
3351 | ||
3352 | * configure.ac: Work around non-GNU sed limitation when computing | |
3353 | python version number. | |
3354 | * configure: Regenerate. | |
3355 | ||
600ea1be JK |
3356 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3357 | ||
3358 | Fix debug printing of TYPE_INSTANCE. | |
3359 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
3360 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
3361 | ||
56c12414 JK |
3362 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
3363 | ||
3364 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
3365 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
3366 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
3367 | * ada-operator.inc: Rename the file to ... | |
3368 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
3369 | * expprint.c (op_name_standard): Remove all the entries. Include | |
3370 | "std-operator.def" instead. | |
3371 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
3372 | "ada-operator.def". Move all the entries ... | |
3373 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
3374 | ||
c52b559d PP |
3375 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
3376 | ||
3377 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
3378 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
3379 | * jit.c (jit_descriptor_addr): Delete. | |
3380 | (registering_code): Delete. | |
3381 | (clear_int): Delete. | |
3382 | (jit_inferior_data): New variable. | |
3383 | (struct jit_inferior_data): New type. | |
3384 | (get_jit_inferior_data): New function. | |
3385 | (jit_inferior_data_cleanup): New function. | |
3386 | (jit_read_descriptor): Adjust. | |
3387 | (jit_register_code): Adjust. | |
3388 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
3389 | (jit_inferior_init): ... from here. | |
3390 | (jit_breakpoint_re_set): Adjust. | |
3391 | (jit_reset_inferior_data_and_breakpoints): New function. | |
3392 | (jit_inferior_created_observer): Adjust. | |
3393 | (jit_inferior_exit_hook): Adjust. | |
3394 | (jit_executable_changed_observer): New function. | |
3395 | (jit_event_handler): Adjust. | |
3396 | (_initialize_jit): Adjust. | |
3397 | ||
e839132d MS |
3398 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
3399 | ||
3400 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
3401 | line. | |
3402 | ||
47a80e90 TT |
3403 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
3404 | ||
3405 | PR python/12216: | |
3406 | * python/python.c (execute_gdb_command): Call | |
3407 | prevent_dont_repeat. | |
3408 | * top.c (suppress_dont_repeat): New global. | |
3409 | (dont_repeat): Use it. | |
3410 | (prevent_dont_repeat): New function. | |
3411 | * command.h (prevent_dont_repeat): Declare. | |
3412 | ||
45a43567 TT |
3413 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
3414 | ||
3415 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
3416 | * python/py-breakpoint.c (bppy_set_silent): Use | |
3417 | breakpoint_set_silent. | |
3418 | (bppy_set_thread): Use breakpoint_set_thread. | |
3419 | (bppy_set_task): Use breakpoint_set_task. | |
3420 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
3421 | (breakpoint_set_task): Declare. | |
3422 | (make_breakpoint_silent): Remove. | |
3423 | * breakpoint.c (breakpoint_set_silent): New function. | |
3424 | (breakpoint_set_thread): Likewise. | |
3425 | (breakpoint_set_task): Likewise. | |
3426 | (make_breakpoint_silent): Remove. | |
3427 | ||
09d682a4 TT |
3428 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
3429 | ||
3430 | * breakpoint.h (user_breakpoint_p): Declare. | |
3431 | * breakpoint.c (user_breakpoint_p): New function. | |
3432 | (breakpoint_1): Use it. | |
3433 | (save_breakpoints): Likewise. | |
3434 | ||
9c4ea6c5 JB |
3435 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
3436 | ||
3437 | * configure.ac: Add handling of Python distribution on Windows. | |
3438 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
3439 | sysconfig variables are not defined, then do not use them. | |
3440 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
3441 | instead. On Windows, return all paths using forward-slashes | |
3442 | rather than backslashes. | |
3443 | ||
ac534cba JB |
3444 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
3445 | ||
3446 | * configure.ac: Remove fallback behavior for building | |
3447 | against Python. Remove tweaking of Python include path. | |
3448 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
3449 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
3450 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
3451 | Always restore CPPFLAGS and LIBS after linking test. | |
3452 | * configure: Regenerated. | |
3453 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
3454 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
3455 | * python/python-internal.h: Adjust includes of Python .h files. | |
3456 | ||
c2f0d045 JB |
3457 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
3458 | ||
3459 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
3460 | in error message. | |
3461 | ||
6b0c4c1f JB |
3462 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
3463 | ||
3464 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
3465 | value test. | |
3466 | ||
672c9795 YQ |
3467 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
3468 | ||
3469 | * arm-linux-nat.c: Update calls to regcache_register_status | |
3470 | instead of regcache_valid_p. | |
3471 | * aix-thread.c: Likewise. | |
3472 | * i386gnu-nat.c: Likewise. | |
3473 | ||
80b23b6a JK |
3474 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
3475 | ||
3476 | Fix crash. | |
3477 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
3478 | touching TYPE_FIELD_ARTIFICIAL. | |
3479 | ||
4cd712bd RE |
3480 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
3481 | ||
3482 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
3483 | Committers. | |
3484 | ||
ffd5ec24 PA |
3485 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3486 | ||
3487 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
3488 | selected, don't try iterating over the traceframe's blocks. | |
3489 | (tfile_has_stack): If there's no traceframe selected, then there's | |
3490 | no stack. | |
3491 | (tfile_has_registers): If there's no traceframe selected, then | |
3492 | there's no registers. | |
3493 | ||
e8c9e0a1 PA |
3494 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3495 | ||
3496 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
3497 | haven't read anything. | |
3498 | ||
de15c4ab PA |
3499 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
3500 | ||
3501 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
3502 | and val_print_scalar_formatted. | |
3503 | ||
9f41c731 PA |
3504 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
3505 | ||
3506 | * tracepoint.c (tfile_read): New. | |
3507 | (tfile_open): Use it. | |
3508 | (tfile_get_traceframe_address): Use it. | |
3509 | (tfile_trace_find): Use it. | |
3510 | (walk_blocks_callback_func): New typedef. | |
3511 | (match_blocktype): New function. | |
3512 | (traceframe_walk_blocks): New function. | |
3513 | (traceframe_find_block_type): New function. | |
3514 | (tfile_fetch_registers, tfile_xfer_partial) | |
3515 | (tfile_get_trace_state_variable_value): Use | |
3516 | traceframe_find_block_type and tfile_read. | |
3517 | ||
cdefc55d KB |
3518 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
3519 | ||
3520 | * remote-mips.c: Add internationalization mark ups. Remove | |
3521 | trailing \n from already marked up strings. | |
3522 | ||
a81766d8 TT |
3523 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
3524 | ||
3525 | * python/py-prettyprint.c (print_string_repr): Clear | |
3526 | 'addressprint' option when calling val_print_string. | |
3527 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
3528 | option when calling val_print_string. | |
3529 | ||
74aedc46 TT |
3530 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
3531 | ||
3532 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
3533 | GDB_PY_LL_ARG. | |
3534 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
3535 | macros. | |
3536 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
3537 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
3538 | (gdb_py_long_as_ulongest): New defines. | |
3539 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
3540 | (gdb_py_int_as_long): Declare. | |
3541 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
3542 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
3543 | (valpy_long): Add comment. | |
3544 | * python/py-utils.c (get_addr_from_python): Use | |
3545 | gdb_py_long_as_ulongest. Handle overflow properly. | |
3546 | (gdb_py_object_from_longest): New function. | |
3547 | (gdb_py_object_from_ulongest): Likewise. | |
3548 | (gdb_py_int_as_long): Likewise. | |
3549 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
3550 | * python/py-symtab.c (salpy_get_pc): Use | |
3551 | gdb_py_long_from_ulongest. | |
3552 | (salpy_get_line): Use PyInt_FromLong. | |
3553 | * python/py-param.c (set_parameter_value): Use | |
3554 | gdb_py_int_as_long. | |
3555 | * python/py-lazy-string.c (stpy_get_address): Use | |
3556 | gdb_py_long_from_ulongest. | |
3557 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
3558 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
3559 | * python/py-breakpoint.c (bppy_set_thread): Use | |
3560 | gdb_py_int_as_long. | |
3561 | (bppy_set_task): Likewise. | |
3562 | (bppy_set_ignore_count): Likewise. | |
3563 | (bppy_set_hit_count): Likewise. | |
3564 | * python/py-block.c (blpy_get_start): Use | |
3565 | gdb_py_object_from_ulongest. | |
3566 | (blpy_get_end): Likewise. | |
3567 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
3568 | ||
e4f6d2ec TJB |
3569 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
3570 | ||
3571 | PR/symtab 11766: | |
3572 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
3573 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
3574 | equality test for objfile, initialize addr_low if needed. | |
3575 | ||
b30aa278 PA |
3576 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3577 | ||
3578 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
3579 | ||
ab2188aa PA |
3580 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3581 | ||
3582 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
3583 | instead of print_scalar_formatted. | |
3584 | (print_scalar_formatted): Don't handle 's' format strings here, | |
3585 | and add an assertion that we never see such format here. | |
3586 | * valprint.h (val_print_scalar_formatted): Declare. | |
3587 | * valprint.c (val_print_scalar_formatted): New. | |
3588 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
3589 | instead of print_scalar_formatted. | |
3590 | * jv-valprint.c (java_val_print): Ditto. | |
3591 | * p-valprint.c (pascal_val_print): Ditto. | |
3592 | * ada-valprint.c (ada_val_print_1): Ditto. | |
3593 | * f-valprint.c (f_val_print): Ditto. | |
3594 | * infcmd.c (registers_info): Ditto. | |
3595 | * m2-valprint.c (m2_val_print): Ditto. | |
3596 | ||
66d61a4c PA |
3597 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3598 | ||
3599 | * m2-valprint.c (print_unbounded_array): Pass | |
3600 | value_contents_for_printing rather than value_contents, to | |
3601 | m2_print_array_contents. Also pass in the value. | |
3602 | ||
831adc1f JK |
3603 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3604 | ||
3605 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
3606 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
3607 | ||
20622269 PA |
3608 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3609 | ||
3610 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
3611 | than frame_register, and always pass a valid value to val_print. | |
3612 | ||
585fdaa1 PA |
3613 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3614 | ||
3615 | Centralize printing "<optimized out>". | |
3616 | ||
3617 | * valprint.h (val_print_optimized_out): Declare. | |
3618 | * cp-valprint.c (cp_print_value_fields): Use | |
3619 | val_print_optimized_out. | |
3620 | * jv-valprint.c (java_print_value_fields): Ditto. | |
3621 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
3622 | * printcmd.c (print_formatted): Ditto. | |
3623 | * valprint.c (valprint_check_validity): Ditto. | |
3624 | (value_check_printable): Ditto. | |
3625 | (val_print_optimized_out): New. | |
3626 | ||
29ec5263 PA |
3627 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3628 | ||
3629 | * infcmd.c (default_print_registers_info): Allocate values so to | |
3630 | never pass a NULL value to val_print. | |
3631 | ||
de4127a3 PA |
3632 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3633 | ||
3634 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
3635 | boolean. Make sure to always pass a value that matches the | |
3636 | contents buffer to callees. Preserve `address' for following | |
3637 | iterations. | |
3638 | * value.c (value_contents_for_printing_const): New. | |
3639 | (value_address): Constify value argument. | |
3640 | * value.h (value_contents_for_printing_const): Declare. | |
3641 | (value_address): Constify value argument. | |
3642 | ||
ee99023e PA |
3643 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3644 | ||
3645 | * regcache.c (struct regcache_descr): Rename | |
3646 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
3647 | and sizeof_cooked_register_valid_p to | |
3648 | sizeof_cooked_register_status. | |
3649 | (init_regcache_descr): Adjust. | |
3650 | (struct regcache): Rename register_valid_p field to | |
3651 | register_status. | |
3652 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
3653 | (do_cooked_read): Adjust. | |
3654 | (regcache_valid_p): Rename to ... | |
3655 | (regcache_register_status): ... this. Adjust. | |
3656 | (regcache_invalidate): Adjust. | |
3657 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
3658 | Adjust. | |
3659 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
3660 | as unavailable, not valid. | |
3661 | (regcache_dump): Adjust. | |
3662 | * regcache.h (enum register_status): New. | |
3663 | (regcache_register_status): Declare. | |
3664 | (regcache_invalidate): Delete declaration. | |
3665 | * corelow.c (get_core_registers): Adjust. | |
3666 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
3667 | * trad-frame.c (REG_VALUE): Rename to ... | |
3668 | (TF_REG_VALUE): ... this. | |
3669 | (REG_UNKNOWN): Rename to ... | |
3670 | (TF_REG_UNKNOWN): ... this. | |
3671 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
3672 | * mi/mi-main.c (register_changed_p): Adjust. | |
3673 | ||
99e42fd8 PA |
3674 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3675 | ||
3676 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
3677 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
3678 | overallocate hack. | |
3679 | (regcache_xmalloc): Rename to ... | |
3680 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
3681 | Allocate the regcache type accordingly. | |
3682 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
3683 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
3684 | cooked registers, not raw. | |
3685 | (regcache_dup_no_passthrough): Delete. | |
3686 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
3687 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
3688 | mention obsolete write_register_bytes. | |
3689 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
3690 | ||
f7605bc2 PA |
3691 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3692 | ||
3693 | Stop remote_read_bytes from handling partial reads itself. | |
3694 | ||
3695 | * remote-fileio.c: Include target.h. | |
3696 | (remote_fileio_write_bytes): Delete. | |
3697 | (remote_fileio_func_open, remote_fileio_func_write) | |
3698 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
3699 | target_read_memory. | |
3700 | (remote_fileio_func_stat): Use target_read_memory and | |
3701 | target_write_memory. | |
3702 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
3703 | (remote_fileio_func_system): Use target_read_memory. | |
3704 | * remote.c (remote_write_bytes): Make it static. | |
3705 | (remote_read_bytes): Don't handle partial reads here. | |
3706 | * remote.h (remote_read_bytes): Delete declaration. | |
3707 | ||
efc0eabd PA |
3708 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
3709 | ||
3710 | Simplify XML parsing a bit. | |
3711 | ||
3712 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
3713 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
3714 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
3715 | parameter. | |
3716 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
3717 | gdb_xml_create_parser_and_cleanup_1. | |
3718 | (gdb_xml_parse_quick): New. | |
3719 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
3720 | * osdata.c (osdata_parse): Ditto. | |
3721 | * remote.c (remote_threads_info): Ditto. | |
3722 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
3723 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
3724 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
3725 | ||
314d366a KB |
3726 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
3727 | ||
3728 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
3729 | with remote-mips.o added to gdb_target_obs. | |
3730 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
3731 | ||
a491d753 PA |
3732 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
3733 | ||
3734 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
3735 | correct struct value to val_print. | |
3736 | (ada_val_print_1): Ditto. | |
3737 | ||
490f124f PA |
3738 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
3739 | ||
3740 | Don't lose embedded_offset in printing routines throughout. | |
3741 | ||
3742 | * valprint.h (val_print_array_elements): Change prototype. | |
3743 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
3744 | parameter, and adjust to pass it down to val_print, while passing | |
3745 | `valaddr' or `address' unmodified. Take embedded_offset into | |
3746 | account when checking repetitions. | |
3747 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
3748 | val_print_array_elements instead of adjusting `valaddr' and | |
3749 | `address'. | |
3750 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
3751 | embedded_offset to val_print_array_elements instead of adjusting | |
3752 | `valaddr'. | |
3753 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
3754 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
3755 | val_print_array_elements and pascal_object_print_value_fields | |
3756 | instead of adjusting `valaddr'. | |
3757 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
3758 | adjust to use it. | |
3759 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
3760 | use it. | |
3761 | (pascal_object_print_static_field): Use | |
3762 | value_contents_for_printing/value_embedded_offset, rather than | |
3763 | value_contents. | |
3764 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
3765 | parameter, and adjust to use it. Use | |
3766 | value_contents_for_printing/value_embedded_offset, rather than | |
3767 | value_contents. | |
3768 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
3769 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
3770 | it. | |
3771 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
3772 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
3773 | Instead work with offsets. Use | |
3774 | value_contents_for_printing/value_embedded_offset, rather than | |
3775 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
3776 | and use value_from_pointer to extract a target pointer, rather | |
3777 | than value_from_longest. | |
3778 | (print_variant_part): Add `offset' parameter. Replace | |
3779 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
3780 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
3781 | (ada_value_print): Use | |
3782 | value_contents_for_printing/value_embedded_offset, rather than | |
3783 | value_contents. | |
3784 | (print_record): Add `offset' parameter, and adjust to pass it | |
3785 | down. | |
3786 | (print_field_values): Add `offset' parameter. Replace | |
3787 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
3788 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
3789 | Use value_contents_for_printing/value_embedded_offset, rather than | |
3790 | value_contents. | |
3791 | * d-valprint.c (dynamic_array_type): Use | |
3792 | value_contents_for_printing/value_embedded_offset, rather than | |
3793 | value_contents. | |
3794 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
3795 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
3796 | (java_print_value_fields): Take `offset' into account. Don't | |
3797 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
3798 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
3799 | java_print_value_fields. | |
3800 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
3801 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
3802 | down adjusted offsets. | |
3803 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
3804 | (f_val_print): Take `embedded_offset' into account. | |
3805 | ||
7bfc9434 JB |
3806 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
3807 | ||
3808 | * inflow.c: Include "gdbcmd.h". | |
3809 | (interactive_mode): New static global, moved here from top.c. | |
3810 | (show_interactive_mode): New function, moved here from top.c. | |
3811 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
3812 | determine the current mode. | |
3813 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
3814 | setting. | |
3815 | (_initialize_inflow): Add the "set/show interactive-mode" | |
3816 | commands. Moved here from top.c, after having adjusted slightly | |
3817 | the help text. | |
3818 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
3819 | to inflow.c. | |
3820 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
3821 | setting, moved to infow.c. | |
3822 | (init_main): Remove creation of the "set/show interactive-mode" | |
3823 | commands, moved to inflow.c. | |
3824 | ||
44603653 JB |
3825 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
3826 | ||
3827 | * NEWS: Add entry for native ia64-hpux support. | |
3828 | ||
4694da01 TT |
3829 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
3830 | ||
3831 | PR mi/8618: | |
3832 | * thread.c (free_thread): Free 'name'. | |
3833 | (print_thread_info): Emit thread name. Change CLI output. | |
3834 | (thread_name_command): New function. | |
3835 | (do_captured_thread_select): Emit newline. | |
3836 | (_initialize_thread): Register 'thread name' command. | |
3837 | * target.h (struct target_ops) <to_thread_name>: New field. | |
3838 | (target_thread_name): New macro. | |
3839 | * target.c (update_current_target): Handle to_thread_name. | |
3840 | * python/py-infthread.c (thpy_get_name): New function. | |
3841 | (thpy_set_name): Likewise. | |
3842 | (thread_object_getset): Add "name". | |
3843 | * linux-nat.c (linux_nat_thread_name): New function. | |
3844 | (linux_nat_add_target): Set to_thread_name. | |
3845 | * gdbthread.h (struct thread_info) <name>: New field. | |
3846 | ||
10d44370 JB |
3847 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
3848 | ||
3849 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
3850 | (ada_val_print_1): Likewise. | |
3851 | ||
e3acb115 JB |
3852 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
3853 | ||
3854 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
3855 | upper limit address is not greater than the function end address | |
3856 | when the upper limit could not be computed using the debugging | |
3857 | info. | |
3858 | ||
dc92e161 TT |
3859 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
3860 | ||
3861 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
3862 | get_regcomp_error. | |
3863 | * utils.c: Include gdb_regex.h. | |
3864 | (do_regfree_cleanup): New function. | |
3865 | (make_regfree_cleanup): Likewise. | |
3866 | (get_regcomp_error): Likewise. | |
3867 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
3868 | ||
f55af66d TT |
3869 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
3870 | ||
3871 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
3872 | re_compile_fastmap. | |
3873 | ||
a5a44b53 PM |
3874 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
3875 | ||
3876 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
3877 | for internal variables. | |
3878 | (last_was_structop): New static variable. | |
3879 | (COMPLETE): New token. | |
3880 | (field_exp): New rule to group all '.' suffix handling. | |
3881 | Add mark_struct_expression calls when approriate to be able | |
3882 | to correctly find fields for completion. | |
3883 | (yylex): Adapt to handle field completion and set INTVAR when | |
3884 | required. | |
3885 | ||
2c291032 YQ |
3886 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
3887 | ||
3888 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
3889 | save_reggroup, restore_reggroup and all_reggroup. | |
3890 | ||
447b483c JB |
3891 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
3892 | ||
3893 | * ada-valprint. (ada_printchar): Use the correct type length | |
3894 | in call to ada_emit_char. | |
3895 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
3896 | ||
7b64a93b PM |
3897 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
3898 | ||
3899 | * solib-som.h (hpux_major_release): Declare variable here. | |
3900 | * solib-som.c: Remove <sys/utsname.h> header. | |
3901 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
3902 | (hpux_major_release): Make global, change default value to | |
3903 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 3904 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
3905 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
3906 | Add "solib-som.h" header. | |
3907 | (set_hpux_major_release): New function. | |
3908 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
3909 | ||
4e18c053 MF |
3910 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
3911 | ||
3912 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
3913 | ||
a9df6b22 JB |
3914 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
3915 | ||
3916 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
3917 | new-line at end of warning message. | |
3918 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
3919 | error message. | |
3920 | * ia64-hpux-tdep.c: Rephrase comment. | |
3921 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
3922 | dld_flags from "long long" to ULONGEST. | |
3923 | ||
ecb956dd PA |
3924 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
3925 | ||
3926 | * target.h (deprecated_child_ops): Delete declaration. | |
3927 | * target.c (deprecated_child_ops): Delete definition. | |
3928 | ||
76adfcae PA |
3929 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
3930 | ||
3931 | * Makefile.in (hpux-thread.o): Delete rule. | |
3932 | * configure.ac: Don't check for HPUX DCE threads support. | |
3933 | * configure, config.in: Regenerate. | |
3934 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
3935 | (hppa_hpux_child_can_run): Delete. | |
3936 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
3937 | * hpux-thread.c: Delete. | |
3938 | ||
042e866e JB |
3939 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3940 | ||
3941 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
3942 | ||
4ffa5a33 JB |
3943 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3944 | ||
3945 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
3946 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
3947 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
3948 | ||
de8fa76c JB |
3949 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3950 | ||
3951 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
3952 | to the case where instream is stdin. | |
3953 | ||
c4de7027 JB |
3954 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3955 | ||
3956 | * ia64-tdep.h (struct regcache): Forward declare. | |
3957 | (struct ia64_infcall_ops): New struct type. | |
3958 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
3959 | and "infcall_ops". | |
3960 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
3961 | Renames ia64_find_global_pointer. | |
3962 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
3963 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
3964 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
3965 | methods. | |
3966 | (ia64_infcall_ops): New static global constant. | |
3967 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
3968 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
3969 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
3970 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
3971 | (ia64_hpux_dummy_code): New static global constant. | |
3972 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
3973 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
3974 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
3975 | New function. | |
3976 | (ia64_hpux_infcall_ops): New static global constant. | |
3977 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
3978 | for inferior function calls to work properly on ia64-hpux. | |
3979 | ||
77ca787b JB |
3980 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3981 | ||
3982 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
3983 | * ia64-tdep.h (struct frame_info): forward declaration. | |
3984 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
3985 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
3986 | to determine the size of the register frame. | |
3987 | (ia64_size_of_register_frame): New function. | |
3988 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
3989 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
3990 | (IA64_HPUX_UREG_REASON): New macro. | |
3991 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
3992 | New functions. | |
3993 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
3994 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
3995 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
3996 | objects. | |
3997 | ||
92c9a463 JB |
3998 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
3999 | ||
4000 | Add support for ia64-hpux. | |
4001 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
4002 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
4003 | ||
4004 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
4005 | floatformats. | |
4006 | * configure.tgt: Add handling for ia64-hpux targets. | |
4007 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
4008 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
4009 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
4010 | ||
f688d93f JB |
4011 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
4012 | ||
4013 | [ttrace] Compute thread list immediately after attach. | |
4014 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
4015 | New subprogram. | |
4016 | (inf_ttrace_attach): Use it. | |
4017 | ||
1b89e62f JB |
4018 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
4019 | ||
4020 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
4021 | if we could not determine the frame's function address. Instead, | |
4022 | use the frame's PC, and then continue. | |
4023 | ||
3e5e6e2a JB |
4024 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
4025 | ||
4026 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
4027 | not already defined. | |
4028 | ||
825d6d8a JB |
4029 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
4030 | ||
4031 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
4032 | (ia64_extract_return_value): Handle integral values that are | |
4033 | less than 8 bytes long. | |
4034 | (ia64_push_dummy_call): Likewise. | |
4035 | ||
7458e667 JB |
4036 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
4037 | ||
4038 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
4039 | floatformat_ia64_ext. | |
4040 | (floatformat_ia64_ext_big): New static const. | |
4041 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
4042 | ||
1b05df00 TT |
4043 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
4044 | ||
4045 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
4046 | messages. | |
4047 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
4048 | (mi_cmd_thread_list_ids): Likewise. | |
4049 | (mi_cmd_data_list_changed_registers): Likewise. | |
4050 | (mi_cmd_data_list_register_values): Likewise. | |
4051 | (mi_cmd_data_write_register_values): Likewise. | |
4052 | (mi_cmd_data_evaluate_expression): Likewise. | |
4053 | (mi_cmd_data_read_memory): Likewise. | |
4054 | (mi_cmd_data_read_memory_bytes): Likewise. | |
4055 | (mi_cmd_data_write_memory): Likewise. | |
4056 | (mi_cmd_enable_timings): Likewise. | |
4057 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
4058 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
4059 | (mi_cmd_var_delete): Likewise. | |
4060 | (mi_cmd_var_set_format): Likewise. | |
4061 | (mi_cmd_var_show_format): Likewise. | |
4062 | (mi_cmd_var_info_num_children): Likewise. | |
4063 | (mi_cmd_var_list_children): Likewise. | |
4064 | (mi_cmd_var_info_type): Likewise. | |
4065 | (mi_cmd_var_info_expression): Likewise. | |
4066 | (mi_cmd_var_show_attributes): Likewise. | |
4067 | (mi_cmd_var_assign): Likewise. | |
4068 | (mi_cmd_var_update): Likewise. | |
4069 | (mi_cmd_enable_pretty_printing): Likewise. | |
4070 | (mi_cmd_var_set_update_range): Likewise. | |
4071 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
4072 | messages. | |
4073 | (mi_cmd_target_file_put): Likewise. | |
4074 | (mi_cmd_target_file_delete): Likewise. | |
4075 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
4076 | messages. | |
4077 | (mi_cmd_stack_info_depth): Likewise. | |
4078 | (mi_cmd_stack_list_locals): Likewise. | |
4079 | (mi_cmd_stack_list_args): Likewise. | |
4080 | (mi_cmd_stack_select_frame): Likewise. | |
4081 | (mi_cmd_stack_select_frame): Likewise. | |
4082 | (mi_cmd_stack_info_frame): Likewise. | |
4083 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
4084 | messages. | |
4085 | (mi_cmd_file_list_exec_source_files): Likewise. | |
4086 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
4087 | (mi_cmd_env_cd): Likewise. | |
4088 | (mi_cmd_env_path): Likewise. | |
4089 | (mi_cmd_env_dir): Likewise. | |
4090 | (mi_cmd_inferior_tty_show): Likewise. | |
4091 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
4092 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
4093 | (mi_cmd_break_watch): Likewise. | |
4094 | ||
ad422571 TJB |
4095 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4096 | ||
4097 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
4098 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
4099 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
4100 | (ppc_linux_insert_watchpoint): Likewise. | |
4101 | ||
c2ff108b JK |
4102 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
4103 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4104 | ||
4105 | PR fortran/11104 and DWARF unbound arrays detection. | |
4106 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
4107 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
4108 | unspecified upper bound. | |
4109 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
4110 | variables array_size_array, tmp_type and offset_item. New variable | |
4111 | array. Remove call to f77_get_upperbound. New variables array_type | |
4112 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
4113 | the final call to deprecated_set_value_type. | |
4114 | ||
41e8491f JK |
4115 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
4116 | ||
4117 | Make value allocations more lazy. | |
4118 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
4119 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 4120 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
4121 | instead of allocate_value and set_value_lazy. |
4122 | * findvar.c (value_of_register_lazy): Likewise. | |
4123 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 4124 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
4125 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
4126 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
4127 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
4128 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
4129 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
4130 | the end, remove set_value_lazy there. | |
4131 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
4132 | instead of allocate_value and set_value_lazy when possible. | |
4133 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
4134 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
4135 | of allocate_value and set_value_lazy. | |
4136 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
4137 | allocate_value and set_value_lazy when possible. | |
4138 | ||
b716877b AB |
4139 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
4140 | ||
4141 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
4142 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
4143 | dumping of instruction opcodes. | |
4144 | ||
d5ae309f JB |
4145 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
4146 | ||
4147 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
4148 | appropiately. | |
4149 | ||
98871305 TT |
4150 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
4151 | ||
4152 | * thread.c (do_captured_thread_select): Emit newline before | |
4153 | printing frame. | |
4154 | ||
c378eb4e MS |
4155 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
4156 | ||
4157 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
4158 | * score-tdep.c: Ditto. | |
4159 | * score-tdep.h: Ditto. | |
4160 | * ser-base.c: Ditto. | |
4161 | * ser-go32.c: Ditto. | |
4162 | * serial.c: Ditto. | |
4163 | * serial.h: Ditto. | |
4164 | * ser-mingw.c: Ditto. | |
4165 | * ser-pipe.c: Ditto. | |
4166 | * ser-tcp.c: Ditto. | |
4167 | * ser-unix.c: Ditto. | |
4168 | * sh64-tdep.c: Ditto. | |
4169 | * shnbsd-nat.c: Ditto. | |
4170 | * sh-tdep.c: Ditto. | |
4171 | * sh-tdep.h: Ditto. | |
4172 | * solib.c: Ditto. | |
4173 | * solib-darwin.c: Ditto. | |
4174 | * solib-frv.c: Ditto. | |
4175 | * solib.h: Ditto. | |
4176 | * solib-irix.c: Ditto. | |
4177 | * solib-osf.c: Ditto. | |
4178 | * solib-pa64.c: Ditto. | |
4179 | * solib-som.c: Ditto. | |
4180 | * solib-spu.c: Ditto. | |
4181 | * solib-sunos.c: Ditto. | |
4182 | * solib-svr4.c: Ditto. | |
4183 | * solist.h: Ditto. | |
4184 | * sol-thread.c: Ditto. | |
4185 | * somread.c: Ditto. | |
4186 | * source.c: Ditto. | |
4187 | * source.h: Ditto. | |
4188 | * sparc64-linux-tdep.c: Ditto. | |
4189 | * sparc64-tdep.c: Ditto. | |
4190 | * sparc-linux-nat.c: Ditto. | |
4191 | * sparc-linux-tdep.c: Ditto. | |
4192 | * sparc-sol2-nat.c: Ditto. | |
4193 | * sparc-sol2-tdep.c: Ditto. | |
4194 | * sparc-tdep.c: Ditto. | |
4195 | * sparc-tdep.h: Ditto. | |
4196 | * spu-tdep.c: Ditto. | |
4197 | * stabsread.c: Ditto. | |
4198 | * stabsread.h: Ditto. | |
4199 | * stack.c: Ditto. | |
4200 | * symfile.c: Ditto. | |
4201 | * symfile.h: Ditto. | |
4202 | * symmisc.c: Ditto. | |
4203 | * symtab.c: Ditto. | |
4204 | * symtab.h: Ditto. | |
4205 | * target.c: Ditto. | |
4206 | * target-descriptions.c: Ditto. | |
4207 | * target-descriptions.h: Ditto. | |
4208 | * target.h: Ditto. | |
4209 | * target-memory.c: Ditto. | |
4210 | * terminal.h: Ditto. | |
4211 | * thread.c: Ditto. | |
4212 | * top.c: Ditto. | |
4213 | * tracepoint.c: Ditto. | |
4214 | * tracepoint.h: Ditto. | |
4215 | * trad-frame.h: Ditto. | |
4216 | * typeprint.c: Ditto. | |
4217 | ||
581e13c1 MS |
4218 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
4219 | ||
4220 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
4221 | * ui-file.h: Ditto. | |
4222 | * ui-out.c: Ditto. | |
4223 | * ui-out.h: Ditto. | |
4224 | * utils.c: Ditto. | |
4225 | * v850-tdep.c: Ditto. | |
4226 | * valarith.c: Ditto. | |
4227 | * valops.c: Ditto. | |
4228 | * valprint.c: Ditto. | |
4229 | * valprint.h: Ditto. | |
4230 | * value.c: Ditto. | |
4231 | * value.h: Ditto. | |
4232 | * varobj.c: Ditto. | |
4233 | * varobj.h: Ditto. | |
4234 | * vax-tdep.c: Ditto. | |
4235 | * vec.c: Ditto. | |
4236 | * vec.h: Ditto. | |
4237 | * version.h: Ditto. | |
4238 | * windows-nat.c: Ditto. | |
4239 | * windows-tdep.c: Ditto. | |
4240 | * xcoffread.c: Ditto. | |
4241 | * xcoffsolib.c: Ditto. | |
4242 | * xml-support.c: Ditto. | |
4243 | * xstormy16-tdep.c: Ditto. | |
4244 | * xtensa-tdep.c: Ditto. | |
4245 | * xtensa-tdep.h: Ditto. | |
4246 | ||
90e4670f TJB |
4247 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4248 | ||
4249 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
4250 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
4251 | ||
e09342b5 TJB |
4252 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
4253 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
4254 | ||
4255 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 4256 | * breakpoint.h |
e09342b5 TJB |
4257 | (struct breakpoint_ops) <resources_needed>: New method. |
4258 | Initialize to NULL in all existing breakpoint_ops instances. | |
4259 | (struct breakpoint) <exact>: New field. | |
4260 | (target_exact_watchpoints): Declare external global. | |
4261 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
4262 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
4263 | b->enable_state to bp_enabled before calling | |
4264 | hw_watchpoint_used_count. | |
4265 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
4266 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
4267 | if available. | |
4268 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
4269 | if the watchpoint is exact. | |
4270 | (resources_needed_watchpoint): New function. | |
4271 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
4272 | (watch_command_1): Set b->exact if the user asked for an exact | |
4273 | watchpoint and one can be set. | |
4274 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
4275 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
4276 | the user asks for an exact watchpoint and one can be set. Return | |
4277 | number of needed debug registers to watch the expression. | |
4278 | * gdbtypes.c (is_scalar_type): New function, based on | |
4279 | valprint.c:scalar_type_p. | |
4280 | (is_scalar_type_recursive): New function. | |
4281 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
4282 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
4283 | handle regions when ranged watchpoints are available. | |
4284 | (create_watchpoint_request): New function. | |
4285 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
4286 | create_watchpoint_request. | |
4287 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
4288 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
4289 | `set powerpc' and `show powerpc' commands. | |
4290 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
4291 | Mention documentation comment in the target macro. | |
4292 | (target_region_ok_for_hw_watchpoint): Document return value. | |
4293 | ||
9fa40276 TJB |
4294 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4295 | ||
4296 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
4297 | hardware watchpoint after the bp_locations are created. | |
4298 | ||
77b06cd7 TJB |
4299 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4300 | ||
4301 | Convert hardware watchpoints to use breakpoint_ops. | |
4302 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
4303 | <insert_location>: ... this. Return int instead of void. | |
4304 | Accept pointer to struct bp_location instead of pointer to | |
4305 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 4306 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
4307 | <remove_location>: ... this. Accept pointer to struct bp_location |
4308 | instead of pointer to struct breakpoint. Adapt all implementations. | |
4309 | * breakpoint.c (insert_catchpoint): Delete function. | |
4310 | (insert_bp_location): Call the watchpoint or catchpoint's | |
4311 | breakpoint_ops.insert method. | |
4312 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
4313 | breakpoint_ops.remove method. | |
4314 | (insert_watchpoint, remove_watchpoint): New functions. | |
4315 | (watchpoint_breakpoint_ops): New structure. | |
4316 | (watch_command_1): Initialize the OPS field. | |
4317 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
4318 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
4319 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
4320 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
4321 | Delete functions. | |
4322 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
4323 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
4324 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
4325 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
4326 | * target.c (update_current_target): Change default implementation of | |
4327 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
4328 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
4329 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
4330 | to_set_syscall_catchpoint to return_one. | |
4331 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
4332 | (debug_to_insert_exec_catchpoint): Report return value. | |
4333 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
4334 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
4335 | of void. | |
4336 | ||
9b20d036 MS |
4337 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
4338 | ||
4339 | * arm-tdep.c: Internationalization. | |
4340 | * c-lang.c: Ditto. | |
4341 | * charset.c: Ditto. | |
4342 | * fork-child.c: Ditto. | |
4343 | * nto-procfs.c: Ditto. | |
4344 | * ppc-sysv-tdep.c: Ditto. | |
4345 | * procfs.c: Ditto. | |
4346 | * remote-mips.c: Ditto. | |
4347 | * remote.c: Ditto. | |
4348 | * rs6000-nat.c: Ditto. | |
4349 | * rs6000-tdep.c: Ditto. | |
4350 | * target.c: Ditto. | |
4351 | * valops.c: Ditto. | |
4352 | * value.c: Ditto. | |
4353 | * xml-support.c: Ditto. | |
4354 | * mi/mi-cmd-break.c: Ditto. | |
4355 | * mi/mi-cmd-var.c: Ditto. | |
4356 | * mi/mi-interp.c: Ditto. | |
4357 | * mi/mi-main.c: Ditto. | |
4358 | ||
dae477fe AB |
4359 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
4360 | ||
4361 | * remote-sim.c (gdbsim_store_register): Update API to | |
4362 | sim_store_register to check more error conditions. | |
4363 | ||
0df8b418 MS |
4364 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
4365 | ||
4366 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
4367 | * nto-tdep.c: Ditto. | |
4368 | * nto-tdep.h: Ditto. | |
4369 | * objc-exp.y: Ditto. | |
4370 | * objc-lang.c: Ditto. | |
4371 | * objfiles.c: Ditto. | |
4372 | * objfiles.h: Ditto. | |
4373 | * observer.c: Ditto. | |
4374 | * opencl-lang.c: Ditto. | |
4375 | * osabi.c: Ditto. | |
4376 | * parse.c: Ditto. | |
4377 | * parser-defs.h: Ditto. | |
4378 | * p-exp.y: Ditto. | |
4379 | * p-lang.c: Ditto. | |
4380 | * posix-hdep.c: Ditto. | |
4381 | * ppcbug-rom.c: Ditto. | |
4382 | * ppc-linux-nat.c: Ditto. | |
4383 | * ppc-linux-tdep.c: Ditto. | |
4384 | * ppc-linux-tdep.h: Ditto. | |
4385 | * ppcnbsd-tdep.c: Ditto. | |
4386 | * ppcobsd-tdep.c: Ditto. | |
4387 | * ppcobsd-tdep.h: Ditto. | |
4388 | * ppc-sysv-tdep.c: Ditto. | |
4389 | * ppc-tdep.h: Ditto. | |
4390 | * printcmd.c: Ditto. | |
4391 | * proc-abi.c: Ditto. | |
4392 | * proc-flags.c: Ditto. | |
4393 | * procfs.c: Ditto. | |
4394 | * proc-utils.h: Ditto. | |
4395 | * progspace.h: Ditto. | |
4396 | * prologue-value.c: Ditto. | |
4397 | * prologue-value.h: Ditto. | |
4398 | * psympriv.h: Ditto. | |
4399 | * psymtab.c: Ditto. | |
4400 | * p-typeprint.c: Ditto. | |
4401 | * p-valprint.c: Ditto. | |
4402 | * ravenscar-sparc-thread.c: Ditto. | |
4403 | * ravenscar-thread.c: Ditto. | |
4404 | * ravenscar-thread.h: Ditto. | |
4405 | * record.c: Ditto. | |
4406 | * regcache.c: Ditto. | |
4407 | * regcache.h: Ditto. | |
4408 | * remote.c: Ditto. | |
4409 | * remote-fileio.c: Ditto. | |
4410 | * remote-fileio.h: Ditto. | |
4411 | * remote.h: Ditto. | |
4412 | * remote-m32r-sdi.c: Ditto. | |
4413 | * remote-mips.c: Ditto. | |
4414 | * remote-sim.c: Ditto. | |
4415 | * rs6000-aix-tdep.c: Ditto. | |
4416 | * rs6000-nat.c: Ditto. | |
4417 | * rs6000-tdep.c: Ditto. | |
4418 | ||
0d7a18f7 MS |
4419 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
4420 | ||
4421 | * charset.c (validate): Internationalization. | |
4422 | * coffread.c (read_one_sym): Ditto. | |
4423 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
4424 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
4425 | * inflow.c (new_tty): Ditto. | |
4426 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
4427 | * m32c-tdep.c (m32c_return_value): Ditto. | |
4428 | * mep-tdep.c (mep_store_return_value): Ditto. | |
4429 | * score-tdep.c (score7_fetch_insn): Ditto. | |
4430 | * ser-mingw.c (pipe_windows_open): Ditto. | |
4431 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
4432 | * spu-tdep.c (spu_register_type): Ditto. | |
4433 | * tracepoint.c (trace_find_command): Ditto. | |
4434 | * valarith.c (value_pos): Ditto. | |
4435 | ||
9a153e0b JB |
4436 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
4437 | ||
4438 | * ada-valprint.c (printstr): Minor comment reformatting. | |
4439 | ||
35ecd2d6 MS |
4440 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
4441 | ||
4442 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
4443 | markup. | |
4444 | ||
1777feb0 MS |
4445 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
4446 | ||
4447 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
4448 | * hppa-hpux-tdep.c: Ditto. | |
4449 | * hppa-linux-nat.c: Ditto. | |
4450 | * hppa-linux-tdep.c: Ditto. | |
4451 | * hppanbsd-tdep.c: Ditto. | |
4452 | * hppa-tdep.c: Ditto. | |
4453 | * hppa-tdep.h: Ditto. | |
4454 | * hpux-thread.c: Ditto. | |
4455 | * i386-cygwin-tdep.c: Ditto. | |
4456 | * i386-darwin-nat.c: Ditto. | |
4457 | * i386gnu-nat.c: Ditto. | |
4458 | * i386-linux-nat.c: Ditto. | |
4459 | * i386-linux-tdep.c: Ditto. | |
4460 | * i386-nat.c: Ditto. | |
4461 | * i386-nat.h: Ditto. | |
4462 | * i386nbsd-tdep.c: Ditto. | |
4463 | * i386-sol2-nat.c: Ditto. | |
4464 | * i386-stub.c: Ditto. | |
4465 | * i386-tdep.c: Ditto. | |
4466 | * i386-tdep.h: Ditto. | |
4467 | * i387-tdep.c: Ditto. | |
4468 | * ia64-linux-nat.c: Ditto. | |
4469 | * ia64-linux-tdep.c: Ditto. | |
4470 | * ia64-tdep.c: Ditto. | |
4471 | * infcall.c: Ditto. | |
4472 | * infcall.h: Ditto. | |
4473 | * infcmd.c: Ditto. | |
4474 | * inferior.c: Ditto. | |
4475 | * inferior.h: Ditto. | |
4476 | * infloop.c: Ditto. | |
4477 | * inflow.c: Ditto. | |
4478 | * infrun.c: Ditto. | |
4479 | * interps.c: Ditto. | |
4480 | * interps.h: Ditto. | |
4481 | * iq2000-tdep.c: Ditto. | |
4482 | * irix5-nat.c: Ditto. | |
4483 | * jit.c: Ditto. | |
4484 | * jit.h: Ditto. | |
4485 | * jv-exp.y: Ditto. | |
4486 | * jv-lang.c: Ditto. | |
4487 | * jv-lang.h: Ditto. | |
4488 | * jv-typeprint.c: Ditto. | |
4489 | * jv-valprint.c: Ditto. | |
4490 | * language.c: Ditto. | |
4491 | * language.h: Ditto. | |
4492 | * linespec.c: Ditto. | |
4493 | * linux-fork.c: Ditto. | |
4494 | * linux-nat.c: Ditto. | |
4495 | * linux-thread-db.c: Ditto. | |
4496 | * lm32-tdep.c: Ditto. | |
4497 | ||
025bb325 MS |
4498 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
4499 | ||
4500 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
4501 | * m2-lang.c: Ditto. | |
4502 | * m2-typeprint.c: Ditto. | |
4503 | * m2-valprint.c: Ditto. | |
4504 | * m32c-tdep.c: Ditto. | |
4505 | * m32r-linux-nat.c: Ditto. | |
4506 | * m32r-rom.c: Ditto. | |
4507 | * m32r-tdep.c: Ditto. | |
4508 | * m32r-tdep.h: Ditto. | |
4509 | * m68hc11-tdep.c: Ditto. | |
4510 | * m58klinux-nat.c: Ditto. | |
4511 | * m68k-tdep.c: Ditto. | |
4512 | * m88k-tdep.c: Ditto. | |
4513 | * m88k-tdep.h: Ditto. | |
4514 | * machoread.c: Ditto. | |
4515 | * macrocmd.c: Ditto. | |
4516 | * macroexp.c: Ditto. | |
4517 | * macrotab.c: Ditto. | |
4518 | * main.c: Ditto. | |
4519 | * maint.c: Ditto. | |
4520 | * mdebugread.c: Ditto. | |
4521 | * mdebugread.h: Ditto. | |
4522 | * memattr.c: Ditto. | |
4523 | * memattr.h: Ditto. | |
4524 | * memory-map.h: Ditto. | |
4525 | * mep-tdep.c: Ditto. | |
4526 | * microblaze-rom.c: Ditto. | |
4527 | * microblaze-tdep.c: Ditto. | |
4528 | * minsyms.c: Ditto. | |
4529 | * mips-irix-tdep.c: Ditto. | |
4530 | * mips-linux-nat.c: Ditto. | |
4531 | * mips-linux-tdep.c: Ditto. | |
4532 | * mips-linux-tdep.h: Ditto. | |
4533 | * mipsnbsd-nat.c: Ditto. | |
4534 | * mipsnbsd-tdep.c: Ditto. | |
4535 | * mipsread.c: Ditto. | |
4536 | * mips-tdep.c: Ditto. | |
4537 | * mips-tdep.h: Ditto. | |
4538 | * mn10300-linux-tdep.c: Ditto. | |
4539 | * mn10300-tdep.c: Ditto. | |
4540 | * mn10300-tdep.h: Ditto. | |
4541 | * monitor.c: Ditto. | |
4542 | * monitor.h: Ditto. | |
4543 | * moxie-tdep.c: Ditto. | |
4544 | * moxie-tdep.h: Ditto. | |
4545 | * mt-tdep.c: Ditto. | |
4546 | ||
1642781b MF |
4547 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
4548 | ||
4549 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
4550 | ||
394b0adb JB |
4551 | 2011-01-08 Robert Millan <rmh@gnu.org> |
4552 | ||
4553 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
4554 | ||
b670013c MS |
4555 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
4556 | ||
4557 | * charset.c (_initialize_charset): Fix typo in string. | |
4558 | ||
a743e542 MS |
4559 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
4560 | ||
4561 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
4562 | for i18n. | |
f2eb0bc8 | 4563 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
4564 | Split line so that operator goes to beginning of line. |
4565 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
4566 | assignment out of if statement. | |
4567 | ||
0963b4bd MS |
4568 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
4569 | ||
4570 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
4571 | * ada-lang.h: Ditto. | |
4572 | * ada-tasks.c: Ditto. | |
4573 | * ada-valprint.c: Ditto. | |
4574 | * aix-threads.c: Ditto. | |
4575 | * alpha-linux-nat.c: Ditto. | |
4576 | * alpha-linux-tdep.c: Ditto. | |
4577 | * alpha-mdebug-tdep.c: Ditto. | |
4578 | * alpha-nat.c: Ditto. | |
4579 | * alpha-osf1-tdep.c: Ditto. | |
4580 | * alpha-tdep.c: Ditto. | |
4581 | * alphabsd-nat.c: Ditto. | |
4582 | * alphabsd-tdep.c: Ditto. | |
4583 | * amd64-darwin-tdep.c: Ditto. | |
4584 | * amd64-linux-nat.c: Ditto. | |
4585 | * amd64-linux-tdep.c: Ditto. | |
4586 | * amd64-sol2-tdep.c: Ditto. | |
4587 | * amd64-tdep.c: Ditto. | |
4588 | * amd64-fbsd-tdep.c: Ditto. | |
4589 | * amd64-nbsd-tdep.c: Ditto. | |
4590 | * amd64-obsd-tdep.c: Ditto. | |
4591 | * amd64-linux-nat.c: Ditto. | |
4592 | * amd64-linux-tdep.c: Ditto. | |
4593 | * arm-tdep.c: Ditto. | |
4594 | * arm-tdep.h: Ditto. | |
4595 | * armnbsd-nat.c: Ditto. | |
4596 | * avr-tdep.c: Ditto. | |
4597 | * bfin-tdep.c: Ditto. | |
4598 | * bsd-kvm.c: Ditto. | |
4599 | * c-typeprintc: Ditto. | |
4600 | * c-valprint.c: Ditto. | |
4601 | * coff-pe-read.h: Ditto. | |
4602 | * coffreead.c: Ditto. | |
4603 | * cris-tdep.c: Ditto. | |
4604 | * d-lang.c: Ditto. | |
4605 | * darwin-nat-info.c: Ditto. | |
4606 | * darwin-nat.c: Ditto. | |
4607 | * dbug-rom.c: Ditto. | |
4608 | * dbxread.c: Ditto. | |
4609 | * dcache.c: Ditto. | |
4610 | * dcache.h: Ditto. | |
4611 | * dec-thread.c: Ditto. | |
4612 | * defs.h: Ditto. | |
4613 | * demangle.c: Ditto. | |
4614 | * dicos-tdep.c: Ditto. | |
4615 | * dictionary.c: Ditto. | |
4616 | * dictionary.h: Ditto. | |
4617 | * dink32-rom.c: Ditto. | |
4618 | * disasm.c: Ditto. | |
4619 | * doublest.c: Ditto. | |
4620 | * dsrec.c: Ditto. | |
4621 | * dummy-frame.c: Ditto. | |
4622 | * dwarf2-frame.c: Ditto. | |
4623 | * dwarf2expr.c: Ditto. | |
4624 | * dwarf2loc.c: Ditto. | |
4625 | * dwarf2read.c: Ditto. | |
4626 | * elfread.c: Ditto. | |
4627 | * environ.c: Ditto. | |
4628 | * eval.c: Ditto. | |
4629 | * event-top.h: Ditto. | |
4630 | * exceptions.c: Ditto. | |
4631 | * exceptions.h: Ditto. | |
4632 | * exec.c: Ditto. | |
4633 | * expprint.c: Ditto. | |
4634 | * expression.h: Ditto. | |
4635 | * f-exp.y: Ditto. | |
4636 | * f-lang.c: Ditto. | |
4637 | * f-lang.h: Ditto. | |
4638 | * f-typeprint.c: Ditto. | |
4639 | * f-valprint.c: Ditto. | |
4640 | * fbsd-nat.c: Ditto. | |
4641 | * findvar.c: Ditto. | |
4642 | * fork-child.c: Ditto. | |
4643 | * frame.c: Ditto. | |
4644 | * frame.h: Ditto. | |
4645 | * frv-linux-tdep.c: Ditto. | |
4646 | * frv-tdep.c: Ditto. | |
4647 | * gcore.c: Ditto. | |
4648 | * gdb-stabs.h: Ditto. | |
4649 | * gdb_assert.h: Ditto. | |
4650 | * gdb_string.h: Ditto. | |
4651 | * gdb_thread_db.h: Ditto. | |
4652 | * gdb_wait.h: Ditto. | |
4653 | * gdbarch.sh: Ditto. | |
4654 | * gdbcore.h: Ditto. | |
4655 | * gdbthread.h: Ditto. | |
4656 | * gdbtypes.c: Ditto. | |
4657 | * gdbtypes.h: Ditto. | |
4658 | * gnu-nat.c: Ditto. | |
4659 | * gnu-nat.h: Ditto. | |
4660 | * gnu-v2-abi.c: Ditto. | |
4661 | * gnu-v3-abi.c: Ditto. | |
4662 | * go32-nat.c: Ditto. | |
4663 | * gdbarch.c: Regenerate. | |
4664 | * gdbarch.h: Regenerate. | |
4665 | ||
ac74f770 MS |
4666 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
4667 | ||
4668 | * ax-gdb.c: Adjust some long output strings. | |
4669 | * breakpoint.c: Ditto. | |
4670 | * charset.c: Ditto. | |
4671 | * cp-abi.c: Ditto. | |
4672 | * infcall.c: Ditto. | |
4673 | * infrun.c: Ditto. | |
4674 | * linux-nat.c: Ditto. | |
4675 | * solib-pa64.c: Ditto. | |
4676 | * solib-som.c: Ditto. | |
4677 | ||
d8e22779 TT |
4678 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
4679 | ||
4680 | PR python/12367: | |
4681 | * NEWS: Add item. | |
4682 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
4683 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
4684 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
4685 | ||
a255712f PP |
4686 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
4687 | ||
4688 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
4689 | * jit.c (jit_debug): New variable. | |
4690 | (show_jit_debug): New function. | |
4691 | (struct target_buffer): Use ULONGEST. | |
4692 | (bfd_open_from_target_memory): Likewise. | |
4693 | (jit_register_code, jit_inferior_init): Add debug output. | |
4694 | (_initialize_jit): Register "debug jit" command. | |
4695 | ||
ccfc3d6e TT |
4696 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
4697 | ||
4698 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
4699 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
4700 | and ARCH_FRAME. | |
4701 | ||
57126e4a TT |
4702 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
4703 | ||
4704 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
4705 | ||
16dfc9ce JB |
4706 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
4707 | ||
4708 | Do not stop on SIGPRIO signals by default | |
4709 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
4710 | signal_print for TARGET_SIGNAL_PRIO. | |
4711 | ||
b1ce2347 JB |
4712 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
4713 | ||
4714 | * ada-tasks.c: Fix style violation in comment. | |
4715 | ||
8f7e195f JB |
4716 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
4717 | ||
4718 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
4719 | at end of error string. | |
4720 | * solib-irix.c (irix_current_sos): Likewise. | |
4721 | * varobj.c (uninstall_variable): Likewise. | |
4722 | ||
e9bdf92c JB |
4723 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
4724 | ||
4725 | * copyright.py: New script. | |
4726 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
4727 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
4728 | ||
3e43a32a MS |
4729 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
4730 | ||
4731 | * addrmap.c: Shorten lines of >= 80 columns. | |
4732 | * arch-utils.c: Ditto. | |
4733 | * arch-utils.h: Ditto. | |
4734 | * ax-gdb.c: Ditto. | |
4735 | * ax-general.c: Ditto. | |
4736 | * bcache.c: Ditto. | |
4737 | * blockframe.c: Ditto. | |
4738 | * breakpoint.c: Ditto. | |
4739 | * buildsym.c: Ditto. | |
4740 | * c-lang.c: Ditto. | |
4741 | * c-typeprint.c: Ditto. | |
4742 | * charset.c: Ditto. | |
4743 | * coffread.c: Ditto. | |
4744 | * command.h: Ditto. | |
4745 | * corelow.c: Ditto. | |
4746 | * cp-abi.c: Ditto. | |
4747 | * cp-namespace.c: Ditto. | |
4748 | * cp-support.c: Ditto. | |
4749 | * dbug-rom.c: Ditto. | |
4750 | * dbxread.c: Ditto. | |
4751 | * defs.h: Ditto. | |
4752 | * dfp.c: Ditto. | |
4753 | * dfp.h: Ditto. | |
4754 | * dictionary.c: Ditto. | |
4755 | * disasm.c: Ditto. | |
4756 | * doublest.c: Ditto. | |
4757 | * dwarf2-frame.c: Ditto. | |
4758 | * dwarf2expr.c: Ditto. | |
4759 | * dwarf2loc.c: Ditto. | |
4760 | * dwarf2read.c: Ditto. | |
4761 | * elfread.c: Ditto. | |
4762 | * eval.c: Ditto. | |
4763 | * event-loop.c: Ditto. | |
4764 | * event-loop.h: Ditto. | |
4765 | * exceptions.h: Ditto. | |
4766 | * exec.c: Ditto. | |
4767 | * expprint.c: Ditto. | |
4768 | * expression.h: Ditto. | |
4769 | * f-lang.c: Ditto. | |
4770 | * f-valprint.c: Ditto. | |
4771 | * findcmd.c: Ditto. | |
4772 | * frame-base.c: Ditto. | |
4773 | * frame-unwind.c: Ditto. | |
4774 | * frame-unwind.h: Ditto. | |
4775 | * frame.c: Ditto. | |
4776 | * frame.h: Ditto. | |
4777 | * gcore.c: Ditto. | |
4778 | * gdb-stabs.h: Ditto. | |
4779 | * gdb_assert.h: Ditto. | |
4780 | * gdb_dirent.h: Ditto. | |
4781 | * gdb_obstack.h: Ditto. | |
4782 | * gdbcore.h: Ditto. | |
4783 | * gdbtypes.c: Ditto. | |
4784 | * gdbtypes.h: Ditto. | |
4785 | * inf-ttrace.c: Ditto. | |
4786 | * infcall.c: Ditto. | |
4787 | * infcmd.c: Ditto. | |
4788 | * inflow.c: Ditto. | |
4789 | * infrun.c: Ditto. | |
4790 | * inline-frame.h: Ditto. | |
4791 | * language.c: Ditto. | |
4792 | * language.h: Ditto. | |
4793 | * libunwind-frame.c: Ditto. | |
4794 | * libunwind-frame.h: Ditto. | |
4795 | * linespec.c: Ditto. | |
4796 | * linux-nat.c: Ditto. | |
4797 | * linux-nat.h: Ditto. | |
4798 | * linux-thread-db.c: Ditto. | |
4799 | * machoread.c: Ditto. | |
4800 | * macroexp.c: Ditto. | |
4801 | * macrotab.c: Ditto. | |
4802 | * main.c: Ditto. | |
4803 | * maint.c: Ditto. | |
4804 | * mdebugread.c: Ditto. | |
4805 | * memattr.c: Ditto. | |
4806 | * minsyms.c: Ditto. | |
4807 | * monitor.c: Ditto. | |
4808 | * monitor.h: Ditto. | |
4809 | * objfiles.c: Ditto. | |
4810 | * objfiles.h: Ditto. | |
4811 | * osabi.c: Ditto. | |
4812 | * p-typeprint.c: Ditto. | |
4813 | * p-valprint.c: Ditto. | |
4814 | * parse.c: Ditto. | |
4815 | * printcmd.c: Ditto. | |
4816 | * proc-events.c: Ditto. | |
4817 | * procfs.c: Ditto. | |
4818 | * progspace.c: Ditto. | |
4819 | * progspace.h: Ditto. | |
4820 | * psympriv.h: Ditto. | |
4821 | * psymtab.c: Ditto. | |
4822 | * record.c: Ditto. | |
4823 | * regcache.c: Ditto. | |
4824 | * regcache.h: Ditto. | |
4825 | * remote-fileio.c: Ditto. | |
4826 | * remote.c: Ditto. | |
4827 | * ser-mingw.c: Ditto. | |
4828 | * ser-tcp.c: Ditto. | |
4829 | * ser-unix.c: Ditto. | |
4830 | * serial.c: Ditto. | |
4831 | * serial.h: Ditto. | |
4832 | * solib-frv.c: Ditto. | |
4833 | * solib-irix.c: Ditto. | |
4834 | * solib-osf.c: Ditto. | |
4835 | * solib-pa64.c: Ditto. | |
4836 | * solib-som.c: Ditto. | |
4837 | * solib-sunos.c: Ditto. | |
4838 | * solib-svr4.c: Ditto. | |
4839 | * solib-target.c: Ditto. | |
4840 | * solib.c: Ditto. | |
4841 | * somread.c: Ditto. | |
4842 | * source.c: Ditto. | |
4843 | * stabsread.c: Ditto. | |
4844 | * stabsread.c: Ditto. | |
4845 | * stack.c: Ditto. | |
4846 | * stack.h: Ditto. | |
4847 | * symfile-mem.c: Ditto. | |
4848 | * symfile.c: Ditto. | |
4849 | * symfile.h: Ditto. | |
4850 | * symmisc.c: Ditto. | |
4851 | * symtab.c: Ditto. | |
4852 | * symtab.h: Ditto. | |
4853 | * target-descriptions.c: Ditto. | |
4854 | * target-memory.c: Ditto. | |
4855 | * target.c: Ditto. | |
4856 | * target.h: Ditto. | |
4857 | * terminal.h: Ditto. | |
4858 | * thread.c: Ditto. | |
4859 | * top.c: Ditto. | |
4860 | * tracepoint.c: Ditto. | |
4861 | * tracepoint.h: Ditto. | |
4862 | * ui-file.c: Ditto. | |
4863 | * ui-file.h: Ditto. | |
4864 | * ui-out.h: Ditto. | |
4865 | * user-regs.c: Ditto. | |
4866 | * user-regs.h: Ditto. | |
4867 | * utils.c: Ditto. | |
4868 | * valarith.c: Ditto. | |
4869 | * valops.c: Ditto. | |
4870 | * valprint.c: Ditto. | |
4871 | * valprint.h: Ditto. | |
4872 | * value.c: Ditto. | |
4873 | * varobj.c: Ditto. | |
4874 | * varobj.h: Ditto. | |
4875 | * vec.h: Ditto. | |
4876 | * xcoffread.c: Ditto. | |
4877 | * xcoffsolib.c: Ditto. | |
4878 | * xcoffsolib.h: Ditto. | |
4879 | * xml-syscall.c: Ditto. | |
4880 | * xml-tdesc.c: Ditto. | |
4881 | ||
9a2b4c1b MS |
4882 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
4883 | ||
4884 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
4885 | * cli/cli-decode.c: Ditto. | |
4886 | * cli/cli-dump.c: Ditto. | |
4887 | * cli/cli-logging.c: Ditto. | |
4888 | * cli/cli-script.c: Ditto. | |
4889 | * cli/cli-setshow.c: Ditto. | |
4890 | * common/signals.c: Ditto. | |
4891 | * mi/mi-cmd-break.c: Ditto. | |
4892 | * mi/mi-cmd-disas.c: Ditto. | |
4893 | * mi/mi-cmd-stack.c: Ditto. | |
4894 | * mi/mi-cmd-var.c: Ditto. | |
4895 | * mi/mi-cmds.c: Ditto. | |
4896 | * mi/mi-common.h: Ditto. | |
4897 | * mi/mi-console.c: Ditto. | |
4898 | * mi/mi-interp.c: Ditto. | |
4899 | * mi/mi-main.c: Ditto. | |
4900 | * osf-share/cma_attr.c: Ditto. | |
4901 | * osf-share/cma_deb_core.h: Ditto. | |
4902 | * osf-share/cma_debug_client.h: Ditto. | |
4903 | * osf-share/cma_handle.h: Ditto. | |
4904 | * osf-share/cma_mutex.h: Ditto. | |
4905 | * osf-share/cma_stack_int.h: Ditto. | |
4906 | * osf-share/cma_tcb_defs.h: Ditto. | |
4907 | * python/py-auto-load.c: Ditto. | |
4908 | * python/py-breakpoint.c: Ditto. | |
4909 | * python/py-cmd.c: Ditto. | |
4910 | * python/py-frame.c: Ditto. | |
4911 | * python/py-objfile.c: Ditto. | |
4912 | * python/py-param.c: Ditto. | |
4913 | * python/py-progspace.c: Ditto. | |
4914 | * python/py-symbol.c: Ditto. | |
4915 | * python/py-value.c: Ditto. | |
4916 | * python/python-internal.h: Ditto. | |
4917 | * python/python.c: Ditto. | |
4918 | * tui/tui-data.c: Ditto. | |
4919 | * tui/tui-disasm.c: Ditto. | |
4920 | * tui/tui-hooks.c: Ditto. | |
4921 | * tui/tui-io.c: Ditto. | |
4922 | * tui/tui-layout.c: Ditto. | |
4923 | * tui/tui-regs.c: Ditto. | |
4924 | * tui/tui-source.c: Ditto. | |
4925 | * tui/tui-stack.c: Ditto. | |
4926 | * tui/tui-win.c: Ditto. | |
4927 | * tui/tui-windata.c: Ditto. | |
4928 | * tui/tui-winsource.c: Ditto. | |
4929 | ||
44944448 JB |
4930 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
4931 | ||
4932 | * configure.ac, gdb.1: Copyright year update. | |
4933 | ||
ebedcab5 JK |
4934 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
4935 | ||
4936 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
4937 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
4938 | "__morestack" minimal symbol there. | |
4939 | ||
e5cc9f32 JB |
4940 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
4941 | ||
4942 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
4943 | ||
7b6bb8da JB |
4944 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
4945 | ||
4946 | Copyright year update in most files (performed by copyright.sh). | |
4947 | ||
71ce852c JB |
4948 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
4949 | ||
4950 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 4951 | |
c3c1ebe8 | 4952 | For older changes see ChangeLog-2010. |
c906108c SS |
4953 | \f |
4954 | Local Variables: | |
4955 | mode: change-log | |
4956 | left-margin: 8 | |
4957 | fill-column: 74 | |
4958 | version-control: never | |
57da7796 | 4959 | coding: utf-8 |
c906108c | 4960 | End: |