Commit | Line | Data |
---|---|---|
31dbc1c5 JB |
1 | 2010-02-09 Joel Brobecker <brobecker@adacore.com> |
2 | ||
3 | Wrong type description for tagged type parameter. | |
4 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
5 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
6 | reference to a tagged type. | |
7 | ||
399f313b TG |
8 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
9 | ||
10 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
11 | brothers of the parent. | |
12 | ||
714f19d5 TT |
13 | 2010-02-08 Tom Tromey <tromey@redhat.com> |
14 | ||
15 | PR c++/8017: | |
16 | * value.h: Update. | |
17 | * valops.c (search_struct_field): Make 'name' const. | |
18 | (search_struct_method): Likewise. | |
19 | (find_method_list): Make 'method' const. | |
20 | (value_struct_elt): Make 'name' and 'err' const. | |
21 | (value_find_oload_method_list): Make 'method' const. | |
22 | (find_overload_match): Make 'name' const. | |
23 | * eval.c (evaluate_subexp_standard): New locals function, | |
24 | function_name. | |
25 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
26 | ||
de0a0249 UW |
27 | 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
28 | ||
29 | * infrun.c (handle_inferior_event): Do not look up regcache | |
30 | for exited processes. | |
31 | ||
83b10087 CM |
32 | Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com> |
33 | ||
34 | PR gdb/10728 | |
35 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
36 | warn if found, and assume length = 1. | |
37 | ||
99903ae3 CM |
38 | 2010-02-08 Chris Moller <cmoller@redhat.com> |
39 | ||
40 | PR gdb/9067 | |
41 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
42 | cp_print_static_field) Fix use of obstacks. | |
43 | ||
e3e9f5a2 PA |
44 | 2010-02-08 Pedro Alves <pedro@codesourcery.com> |
45 | ||
46 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
47 | resumed LWPs as resumed. | |
48 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
49 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
50 | of throwing an internal error. If an LWP of a process we're not | |
51 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
52 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
53 | go through all LWPs cancelling breakpoints in non-stop mode. | |
54 | (resume_stopped_resumed_lwps): New. | |
55 | (linux_nat_wait): Use it. | |
56 | ||
46763423 L |
57 | 2010-02-07 H.J. Lu <hongjiu.lu@intel.com> |
58 | ||
59 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
60 | i386/amd64 and i386/amd64-linux. | |
61 | (i386/i386-expedite): New. | |
62 | (i386/i386-linux-expedite): Likewise. | |
63 | (i386/amd64-expedite):Likewise. | |
64 | (i386/amd64-linux-expedite): Likewise. | |
65 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
66 | ($(outdir)/i386/amd64.dat): Likewise. | |
67 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
68 | ||
69 | * features/i386/32bit-core.xml: New. | |
70 | * features/i386/32bit-linux.xml: Likewise. | |
71 | * features/i386/32bit-sse.xml: Likewise. | |
72 | * features/i386/64bit-core.xml: Likewise. | |
73 | * features/i386/64bit-linux.xml: Likewise. | |
74 | * features/i386/64bit-sse.xml: Likewise. | |
75 | * features/i386/i386-linux.xml: Likewise. | |
76 | * features/i386/i386.xml: Likewise. | |
77 | * features/i386/amd64-linux.xml: Likewise. | |
78 | * features/i386/amd64.xml: Likewise. | |
79 | * features/i386/i386-linux.c: Likewise. | |
80 | * features/i386/i386.c: Likewise. | |
81 | * features/i386/amd64-linux.c: Likewise. | |
82 | * features/i386/amd64.c: Likewise. | |
83 | ||
82856980 SW |
84 | 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> |
85 | ||
86 | PR c++/7935: | |
87 | * cp-support.h: Added char* alias element to using_direct data | |
88 | struct. | |
89 | (cp_add_using): Added char* alias argument. | |
90 | (cp_add_using_directive): Ditto. | |
91 | * cp-namespace.c: Updated with the above changes. | |
92 | (cp_lookup_symbol_imports): Check for aliases. | |
93 | * dwarf2read.c (read_import_statement): Figure out local alias | |
94 | for the import and pass it on to cp_add_using. | |
95 | (read_namespace): Pass alias argument to cp_add_using. | |
96 | ||
d18b8b7a HZ |
97 | 2010-02-05 Hui Zhu <teawater@gmail.com> |
98 | ||
99 | * defs.h (gdb_bfd_errmsg): New extern. | |
100 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
101 | gdb_bfd_errmsg. | |
102 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
103 | (AMBIGUOUS_MESS2): New macro. | |
104 | (gdb_bfd_errmsg): New function. | |
105 | ||
48379de6 DE |
106 | 2010-02-04 Doug Evans <dje@google.com> |
107 | ||
108 | * solib-svr4.c (enable_break): Add comment. | |
109 | ||
4ee73e90 AG |
110 | 2010-02-04 Anthony Green <green@moxielogic.com> |
111 | ||
112 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
113 | gracefully. | |
114 | ||
1a334831 TT |
115 | 2010-02-04 Tom Tromey <tromey@redhat.com> |
116 | ||
117 | * valops.c (search_struct_field): Account for | |
118 | value_embedded_offset. Fix check for virtual base past the end of | |
119 | the object. Use value_copy when making a slice of the value. | |
120 | ||
1180b2c8 L |
121 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
122 | ||
123 | PR tui/9622 | |
124 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
125 | only if gdb_stdout is a tty. | |
126 | ||
c3f08eb7 L |
127 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
128 | ||
129 | * target-descriptions.c: Include "osabi.h". | |
130 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
131 | OSABI. | |
132 | ||
2d33f7b8 TG |
133 | 2010-02-04 Tristan Gingold <gingold@adacore.com> |
134 | ||
135 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
136 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
137 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
138 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
139 | (macho_new_init): Move this function after declarations. | |
140 | (macho_symfile_init): Ditto. | |
141 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
142 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
143 | ||
11334b82 VP |
144 | 2010-02-04 Vladimir Prus <vladimir@codesourcery.com> |
145 | ||
146 | Include MI command in remotelog. | |
147 | ||
148 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
149 | ||
ff97be06 L |
150 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
151 | ||
152 | * remote.c (remote_state): Remove gdbarch. | |
153 | (init_remote_state): Don't set gdbarch. | |
154 | (remote_query_supported): Pass target_gdbarch instead of | |
155 | rs->gdbarch to gdbarch_qsupported. | |
156 | ||
75cebea9 L |
157 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
158 | ||
159 | * gdbarch.sh: Add qsupported. | |
160 | ||
161 | * gdbarch.c: Regenerated. | |
162 | * gdbarch.h: Likewise. | |
163 | ||
164 | * remote.c (remote_state): Add gdbarch. | |
165 | (init_remote_state): Set gdbarch. | |
166 | (remote_query_supported): Support gdbarch_qsupported. | |
167 | ||
c1dec97b DJ |
168 | 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com> |
169 | ||
170 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
171 | __FreeBSD_kernel_version. | |
172 | ||
ac8035ab TG |
173 | 2010-02-03 Tristan Gingold <gingold@adacore.com> |
174 | ||
175 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
176 | (default_symfile_relocate): New prototype. | |
177 | (symfile_relocate_debug_section): First argument is now an objfile. | |
178 | * symfile.c (default_symfile_relocate): Rename from | |
179 | symfile_relocate_debug_section, first argument is now an objfile. | |
180 | (symfile_relocate_debug_section): New function. | |
181 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
182 | * somread.c (som_sym_fns): Ditto. | |
183 | * mipsread.c (ecoff_sym_fns): Ditto. | |
184 | * machoread.c (macho_sym_fns): Ditto. | |
185 | * elfread.c (elf_sym_fns): Ditto. | |
186 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
187 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
188 | * dbxread.c (aout_sym_fns): Ditto. | |
189 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
190 | (elfstab_build_psymtabs): Ditto. | |
191 | ||
be52b756 L |
192 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
193 | ||
194 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
195 | ||
9c3c02fd TT |
196 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
197 | ||
198 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
199 | type. | |
200 | ||
f23f4c59 TT |
201 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
202 | ||
203 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
204 | (gnuv2_baseclass_offset): Now static. | |
205 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
206 | * gnu-v2-abi.h: Remove. | |
207 | ||
0cc2414c TT |
208 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
209 | ||
210 | * m2-typeprint.c (m2_record_fields): Don't use | |
211 | TYPE_DECLARED_TYPE. | |
212 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
213 | (struct main_type) <flag_declared_class>: New field. | |
214 | (struct cplus_struct_type) <declared_type>: Remove. | |
215 | <ntemplate_args>: Move earlier. | |
216 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
217 | (DECLARED_TYPE_TEMPLATE): Remove. | |
218 | (TYPE_DECLARED_TYPE): Remove. | |
219 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
220 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
221 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
222 | TYPE_DECLARED_TYPE. | |
223 | ||
edf3d5f3 TT |
224 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
225 | ||
226 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
227 | * valops.c (search_struct_field): Compute nbases after calling | |
228 | CHECK_TYPEDEF. | |
229 | (check_field): Call CHECK_TYPEDEF. | |
230 | * cp-valprint.c (cp_print_value): Pass correct address to | |
231 | baseclass_offset. Fix check for virtual base past the end of the | |
232 | object. Don't offset address passed to cp_print_value_fields or | |
233 | apply_val_pretty_printer. | |
234 | (cp_print_value_fields): Fix call to val_print. | |
235 | (cp_print_value_fields_rtti): New function. | |
236 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
237 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
238 | val_print. | |
239 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
240 | offset to address. | |
241 | * language.h (struct language_defn) <la_val_print>: Document. | |
242 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
243 | ||
e4b7f41c JK |
244 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
245 | ||
246 | PR libc/11214: | |
247 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
248 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
249 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
250 | ||
7618e12b DJ |
251 | 2010-02-01 Michael Matz <matz@suse.de> |
252 | Daniel Jacobowitz <dan@codesourcery.com> | |
253 | ||
e4b7f41c | 254 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
255 | functions use a frame pointer. |
256 | ||
b381ea14 JK |
257 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
258 | ||
259 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
260 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
261 | * config/djgpp/fnchange.lst: Add translations for | |
262 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
263 | ||
0e05dfcb DJ |
264 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
265 | ||
266 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
267 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
268 | * gdbarch.c: Regenerated. | |
269 | ||
f9d67f43 DJ |
270 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
271 | ||
272 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
273 | arm_pc_is_thumb. | |
274 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
275 | (extend_buffer_earlier): New function. | |
276 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
277 | (arm_adjust_breakpoint_address): New function. | |
278 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
279 | ||
177321bd DJ |
280 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
281 | ||
282 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
283 | (arm_linux_thumb2_le_breakpoint): New constants. | |
284 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
285 | thumb2_breakpoint_size. | |
286 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
287 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
288 | Implement support for single stepping through IT blocks if | |
289 | a 32-bit Thumb breakpoint instruction is available. | |
290 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
291 | is available, use it when needed. | |
292 | (arm_remote_breakpoint_from_pc): New function. | |
293 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
294 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
295 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
296 | ||
a1dcb23a DJ |
297 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
298 | ||
299 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
300 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
301 | * gdbarch.c, gdbarch.h: Regenerated. | |
302 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
303 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
304 | gdbarch_remote_breakpoint_from_pc. | |
305 | ||
2b009048 DJ |
306 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
307 | ||
308 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
309 | match a breakpoint. | |
310 | (handle_inferior_event): Move the check for unusual breakpoint | |
311 | signals earlier. | |
312 | ||
e4e2711a JB |
313 | 2010-01-29 Paul Hilfinger <hilfinger@adacore.com> |
314 | ||
315 | amd64 - function returning record with field straddling 2 registers. | |
316 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
317 | a record of length <= 16 in which a field straddles the two | |
318 | eightbytes. | |
319 | ||
cba6fab5 JB |
320 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
321 | ||
322 | Implement return values on amd64-windows. | |
323 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
324 | (amd64_windows_return_value): New function. | |
325 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
326 | amd64_windows_return_value. | |
327 | ||
3af6ddfe JB |
328 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
329 | ||
330 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 331 | parameter registers. |
3af6ddfe JB |
332 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
333 | integer_param_regs_saved_in_caller_frame. | |
334 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
335 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
336 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
337 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
338 | ||
80d19a06 JB |
339 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
340 | ||
341 | amd64-windows: memory args passed by pointer during function calls. | |
342 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
343 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
344 | where tdep->memory_args_by_pointer is non-zero. | |
345 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
346 | tdep->memory_args_by_pointer to 1. | |
347 | ||
ba581dc1 JB |
348 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
349 | ||
4966b6c2 | 350 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
351 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
352 | amd64-tdep.c. | |
353 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
354 | call_dummy_integer_regs, and classify. | |
355 | * amd64-tdep.h (amd64_classify): Add declaration. | |
356 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
357 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
358 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
359 | Replace call to amd64_classify by call to tdep->classify. | |
360 | (amd64_push_arguments): Get the list of registers to use for | |
361 | passing integer parameters from the gdbarch tdep structure, | |
362 | rather than using a hardcoded one. Replace calls to amd64_classify | |
363 | by calls to tdep->classify. | |
364 | (amd64_push_dummy_call): Get the register number used for | |
365 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
366 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
367 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
368 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
369 | (amd64_windows_dummy_call_integer_regs): New static global. | |
370 | (amd64_windows_classify): New function. | |
371 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
372 | tdep->call_dummy_integer_regs and tdep->classify. | |
373 | ||
d37346f0 DJ |
374 | 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
375 | ||
376 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
377 | for the new regcache. All callers updated. | |
378 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
379 | (get_thread_arch_regcache): Do not set aspace here. | |
380 | * regcache.h (regcache_xmalloc): Update declaration. | |
381 | ||
382 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
383 | regcache_xmalloc updated. | |
384 | ||
7434dadd JB |
385 | 2010-01-28 Joel Brobecker <brobecker@adacore.com> |
386 | ||
387 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
388 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
389 | Only define if SYS_syssgi is defined. | |
390 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
391 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
392 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
393 | is itself defined. | |
394 | ||
16d905e2 CF |
395 | 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx> |
396 | ||
397 | * windows-nat.c (windows_initialization_done): New variable. | |
398 | (get_windows_debug_event): Issue error when process dies before | |
399 | completely initializing. | |
400 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
401 | the initial steps of attaching to the child. | |
402 | ||
cd55e50f JK |
403 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
404 | ||
405 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
406 | ||
99cc78aa DE |
407 | 2010-01-27 Doug Evans <dje@google.com> |
408 | ||
4c7dcb84 DE |
409 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
410 | ||
99cc78aa DE |
411 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
412 | ||
52334bf5 JK |
413 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
414 | ||
415 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
416 | objfile via SYMBOL_SYMTAB. | |
417 | ||
708ead4e TT |
418 | 2010-01-26 Tom Tromey <tromey@redhat.com> |
419 | ||
420 | PR exp/7643: | |
421 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
422 | coerce_array on result. | |
423 | ||
b14e635e SW |
424 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
425 | ||
426 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
427 | search_parent argument. | |
428 | (cp_add_using): Initialize 'searched' field. | |
429 | (reset_directive_searched): New function. | |
430 | * cp-support.h: Add 'searched' field to using_direct struct. | |
431 | (cp_lookup_symbol_imports): Ditto. | |
432 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
433 | Perform recursive search. | |
434 | Implement non parent search. | |
435 | * valops.c (value_maybe_namespace_elt): Updated. | |
436 | ||
8540c487 SW |
437 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
438 | ||
439 | PR gdb/10929: | |
440 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
441 | scopes which contain using directives even if they contain no | |
442 | declarations. | |
443 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
444 | la_lookup_symbol_nonlocal. | |
445 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
446 | cp_lookup_symbol_namespace. | |
447 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
448 | block level. | |
449 | (cp_lookup_symbol_imports): New function. | |
450 | (cp_lookup_symbol_in_namespace): New function. | |
451 | ||
421d5d99 TT |
452 | 2010-01-25 Tom Tromey <tromey@redhat.com> |
453 | ||
454 | PR gdb/11049: | |
455 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
456 | result. | |
457 | ||
6bcc772d RO |
458 | 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
459 | ||
460 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
461 | Use test to check variables, prefix strings with x. | |
462 | * configure: Regenerate. | |
463 | ||
464 | * solib-osf.c (osf_current_sos): Initialize tail. | |
465 | ||
1c1238a5 TG |
466 | 2010-01-25 gingold <gingold@adacore.com> |
467 | ||
468 | * windows-nat.c (windows_continue): Use %x to print thread id. | |
469 | (get_windows_debug_event): Ditto. | |
470 | ||
0b92b5bb TT |
471 | 2010-01-22 Tom Tromey <tromey@redhat.com> |
472 | ||
473 | PR symtab/11199: | |
474 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
475 | type and arguments. Use smash_to_methodptr_type. | |
476 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
477 | later. | |
478 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
479 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
480 | (lookup_methodptr_type): Use it. | |
481 | ||
0d5392b8 TT |
482 | 2010-01-21 Tom Tromey <tromey@redhat.com> |
483 | ||
484 | PR symtab/11198: | |
485 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
486 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
487 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
488 | (glibc_skip_solib_resolver): Use | |
489 | lookup_minimal_symbol_and_objfile. | |
490 | ||
e6d088ec KT |
491 | 2010-01-21 Kai Tietz <kai.tietz@onevision.com> |
492 | ||
493 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
494 | WIN32 targets. | |
495 | ||
b966cb8a TT |
496 | 2010-01-20 Tom Tromey <tromey@redhat.com> |
497 | ||
498 | PR backtrace/10770: | |
499 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
500 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
501 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
502 | dwarf_stack_values, not CORE_ADDRs. | |
503 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
504 | use signed operands. | |
505 | ||
3f81c18a VP |
506 | 2010-01-20 Vladimir Prus <vladimir@codesourcery.com> |
507 | ||
508 | Per-inferior args and tty and environment. | |
509 | ||
510 | * infcmd.c (inferior_args): Rename to ... | |
511 | (inferior_args_scratch): ... this. | |
512 | (inferior_io_terminal): Rename to ... | |
513 | (inferior_io_terminal_scratch): ... this. | |
514 | (inferior_argc, inferior_argv): Remove. | |
515 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
516 | inside current_inferior(). | |
517 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
518 | (get_inferior_args, set_inferior_args): Store inside | |
519 | current_inferior(). | |
520 | (notice_args_set): Likewise and rename to... | |
521 | (set_args_command): ... this. | |
522 | (set_inferior_args_vector): Likewise. | |
523 | (notice_args_read): Rename to... | |
524 | (show_args_command): ...new. | |
525 | (tty_command): Remove. | |
526 | (run_command_1): Don't free old args, as they are freed by | |
527 | set_inferior_arg now. | |
528 | (run_no_args_command): Likewise. | |
529 | (inferior_environ): Remove. | |
530 | (run_command_1): Use environment of the current inferior. | |
531 | (environment_info, set_environment_command) | |
532 | (unset_environment_command, path_info, path_command): Likewise. | |
533 | (_initialize_infcmd): Adjust for function and variable renames. | |
534 | Do not init inferior_environ. | |
535 | * inferior.h (set_inferior_arg): Adjust prototype. | |
536 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
537 | (inferior_environ): Remove declaration. | |
538 | * inferior.c (free_inferior): Free new fields. | |
539 | (add_inferior_silent): Initialize 'environment' field. | |
540 | * main.c (captured_main): Set arguments only after the initial | |
541 | inferior has been created. Set set_inferior_io_terminal, | |
542 | not tty_command. | |
543 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
544 | inferior. | |
545 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
546 | inferior_environ. | |
547 | * solib.c (solib_find): Use environment of the current inferior. | |
548 | ||
d8b65138 JK |
549 | 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
550 | ||
551 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
552 | HAVE_PYTHON. | |
553 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
554 | ||
692465f1 JB |
555 | 2010-01-20 Joel Brobecker <brobecker@adacore.com> |
556 | ||
557 | Get rid of ada-lang.c:function_name_from_pc. | |
558 | * ada-lang.c: Add "stack.h" #include. | |
559 | (function_name_from_pc): Delete. | |
560 | (is_known_support_routine): Replace call to function_name_from_pc | |
561 | by call to find_frame_funname. | |
562 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
563 | ||
95519e0e TT |
564 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
565 | ||
566 | PR c++/11026: | |
567 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
568 | objfile obstack. | |
569 | ||
95c11dc7 TT |
570 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
571 | ||
572 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
573 | ||
a0f49112 JK |
574 | 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
575 | ||
576 | * breakpoint.c (watchpoint_check): Check the call | |
577 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
578 | Extend the comment. | |
579 | * config/djgpp/fnchange.lst: Add translations for | |
580 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and | |
581 | watchpoint-cond-gone-stripped.c. | |
582 | ||
ceeb3d5a TT |
583 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
584 | ||
585 | PR c++/8000: | |
586 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
587 | into parent scope, and enumerator into grandparent scope. | |
588 | ||
2b71fc8e JB |
589 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
590 | ||
591 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
592 | ||
03564ed9 JB |
593 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
594 | ||
595 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
596 | i[34567]86-*-solaris2.1[0-9]*. | |
597 | * configure.tgt: Likewise. | |
598 | ||
fb2e7cb4 JB |
599 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
600 | ||
601 | * NEWS: Document the source command enhancement allowing it | |
602 | to load Python scripts. Document the "set/show script-extension" | |
603 | commands. | |
604 | ||
1cb5e2a4 JB |
605 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
606 | ||
607 | Add -Wunused-function to compile flags. | |
608 | * configure.ac: Add -Wunused-function to build_warnings. | |
609 | * configure: Regenerate. | |
610 | ||
0ec6cd0c JB |
611 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
612 | ||
613 | "delete" ada-lex.c:input function, not used. | |
614 | * ada-lex.l: #define YY_NO_INPUT. | |
615 | ||
b74845da JB |
616 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
617 | ||
618 | Delete free_named_symtabs and associated cleanup. | |
619 | * symfile.h (free_named_symtabs): Delete declaration. | |
620 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
621 | (cashier_psymtab): Comment function out. | |
622 | Delete declaration. | |
623 | (free_named_symtabs): Delete. | |
624 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
625 | * dbxread.c (end_psymtab): Likewise. | |
626 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
627 | * exec.c (exec_close_1): Ditto. | |
628 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
629 | ||
65c06092 JB |
630 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
631 | ||
632 | * stack.c (print_block_frame_labels): Comment function out. | |
633 | ||
d5cd6034 JB |
634 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
635 | ||
636 | Delete unused or undefined functions. | |
637 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
638 | * dcache.c (dcache_write_line): Remove declaration. | |
639 | * infrun.c (build_infrun): Remove declaration. | |
640 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
641 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
642 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
643 | * infrun.c (init_execution_control_state): Delete. | |
644 | (proceed): Update comment to avoid mentioning | |
645 | init_execution_control_state. | |
646 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
647 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
648 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
649 | * cp-namespace.c (cp_copy_usings): Delete. | |
650 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
651 | * progspace.c (find_program_space_by_num): Delete. | |
652 | * inflow.c (handle_sigio): Delete declaration. | |
653 | * hppa-tdep.c (hppa_alignof): Delete. | |
654 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
655 | (mipsnbsd_core_osabi_sniffer): Delete. | |
656 | ||
4e8f195d TT |
657 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
658 | ||
659 | PR c++/9680: | |
660 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
661 | (CONST_CAST): New tokens. | |
662 | (exp): Add new productions. | |
663 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
664 | reinterpret_cast. | |
665 | (is_cast_operator): New function. | |
666 | (yylex): Handle cast operators specially. | |
667 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
668 | UNOP_REINTERPRET_CAST>: New cases. | |
669 | * expprint.c (print_subexp_standard): Likewise. | |
670 | (op_name_standard): Likewise. | |
671 | (dump_subexp_body_standard): Likewise. | |
672 | * parse.c (operator_length_standard): Likewise. | |
673 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
674 | UNOP_REINTERPRET_CAST. | |
675 | * gdbtypes.c (class_types_same_p): New function. | |
676 | (is_ancestor): Use it. | |
677 | (is_public_ancestor): New function. | |
678 | (is_unique_ancestor_worker): Likewise. | |
679 | (is_unique_ancestor): Likewise. | |
680 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
681 | (is_unique_ancestor): Declare. | |
682 | * valops.c (value_reinterpret_cast): New function. | |
683 | (dynamic_cast_check_1): Likewise. | |
684 | (dynamic_cast_check_2): Likewise. | |
685 | (value_dynamic_cast): Likewise. | |
686 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
687 | ||
d9c57d9f JB |
688 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
689 | ||
690 | Fix build failure when building without Python support. | |
691 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
692 | is not defined. | |
693 | ||
f80d3ff2 JB |
694 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
695 | ||
696 | Use XVS field type instead of doing a parallel lookup. | |
697 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
698 | if it is a reference type instead of doing a type lookup using | |
699 | the XVS field name. | |
700 | ||
5bf03f13 JB |
701 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
702 | ||
703 | Trust PAD types instead of using PAD___XVS. | |
704 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
705 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
706 | parallel XVS type, follow the XVS type instead of the PAD type. | |
707 | (unwrap_value): Make sure that there is no parallel XVE type | |
708 | before returning the value as is. | |
709 | (set_ada_list, show_ada_list): New static variables. | |
710 | (set_ada_command, show_ada_command): New functions. | |
711 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
712 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
713 | ||
973817a3 JB |
714 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
715 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
716 | ||
717 | Allow "source" to load python scripts. | |
718 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
719 | * python/python.c (source_python_script): New function. | |
720 | * python/python.h (source_python_script): Add declaration. | |
721 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
722 | (script_ext_off, script_ext_soft, script_ext_strict) | |
723 | (script_ext_enums, script_ext_mode): New static constants. | |
724 | (show_script_ext_mode, find_and_open_script): New functions. | |
725 | (source_script): Enhance to handle Python scripts. | |
726 | (init_cli_cmds): Add set/show script-extension commands. | |
727 | ||
98e03262 SS |
728 | 2010-01-16 Stan Shebs <stan@codesourcery.com> |
729 | ||
730 | * tracepoint.h (struct trace_status): Use unsigned long long | |
731 | instead of size_t. | |
732 | * tracepoint.c (trace_status_command): Fix printf directive. | |
733 | (trace_save_command): Check fwrite returns, fix printf directive. | |
734 | (trace_filename): New global. | |
735 | (tfile_open): Set it, check read returns. | |
736 | (tfile_close): Free trace_filename. | |
737 | (tfile_get_traceframe_address): Check read returns. | |
738 | (tfile_trace_find): Ditto. | |
739 | (tfile_fetch_registers): Ditto. | |
740 | (tfile_xfer_partial): Ditto. | |
741 | (tfile_get_trace_state_variable_value): Ditto. | |
742 | ||
00bf0b85 SS |
743 | 2010-01-15 Stan Shebs <stan@codesourcery.com> |
744 | ||
745 | Add trace file support. | |
746 | * tracepoint.h (enum trace_stop_reason): New enum. | |
747 | (struct trace_status): New struct. | |
748 | (parse_trace_status): Declare. | |
749 | (struct uploaded_tp): Move here from remote.c, | |
750 | add fields for actions. | |
751 | (struct uploaded_tsv): New struct. | |
752 | * tracepoint.c (tfile_ops): New target vector. | |
753 | (trace_fd): New global. | |
754 | (tfile_open): New function. | |
755 | (tfile_close): New function. | |
756 | (tfile_files_info): New function. | |
757 | (tfile_get_trace_status): New function. | |
758 | (tfile_get_traceframe_address): New function. | |
759 | (tfile_trace_find): New function. | |
760 | (tfile_fetch_registers): New function. | |
761 | (tfile_xfer_partial): New function. | |
762 | (tfile_get_trace_state_variable_value): New function. | |
763 | (init_tfile_ops): New function. | |
764 | (_initialize_tracepoint): Call it, add tfile target. | |
765 | (trace_status): New global. | |
766 | (current_trace_status): New function. | |
767 | (trace_running_p): Remove, change all users to get from | |
768 | current_trace_status()->running. | |
769 | (get_trace_status): Remove. | |
770 | (trace_status_command): Call target_get_trace_status directly, | |
771 | report more detail including tracing stop reasons. | |
772 | (trace_find_command): Always allow tfind on a file. | |
773 | (trace_find_pc_command): Ditto. | |
774 | (trace_find_tracepoint_command): Ditto. | |
775 | (trace_find_line_command): Ditto. | |
776 | (trace_find_range_command): Ditto. | |
777 | (trace_find_outside_command): Ditto. | |
778 | (trace_frames_offset, cur_offset): Declare as off_t. | |
779 | (trace_regblock_size): Rename from reg_size, update users. | |
780 | (parse_trace_status): New function. | |
781 | (tfile_interp_line): New function. | |
782 | (disconnect_or_stop_tracing): Ensure current trace | |
783 | status before asking what to do. | |
784 | (stop_reason_names): New global. | |
785 | (trace_save_command): New command. | |
786 | (get_uploaded_tp): Move here from remote.c. | |
787 | (find_matching_tracepoint): Ditto. | |
788 | (merge_uploaded_tracepoints): New function. | |
789 | (parse_trace_status): Use stop_reason_names. | |
790 | (_initialize_tracepoint): Define tsave command. | |
791 | * target.h (target_ops): New fields to_save_trace_data, | |
792 | to_upload_tracepoints, to_upload_trace_state_variables, | |
793 | to_get_raw_trace_data, change to_get_trace_status | |
794 | to take a pointer to a status struct. | |
795 | (target_save_trace_data): New macro. | |
796 | (target_upload_tracepoints): New macro. | |
797 | (target_upload_trace_state_variables): New macro. | |
798 | (target_get_raw_trace_data): New macro. | |
799 | * target.c (update_current_target): Add new methods, change | |
800 | signature of to_get_trace_status. | |
801 | * remote.c (hex2bin): Make globally visible. | |
802 | (bin2hex): Ditto. | |
803 | (remote_download_trace_state_variable): Download name also. | |
804 | (remote_get_trace_status): Update parameter, use | |
805 | parse_trace_status. | |
806 | (remote_save_trace_data): New function. | |
807 | (remote_upload_tracepoints): New function. | |
808 | (remote_upload_trace_state_variables): New function. | |
809 | (remote_get_raw_trace_data): New function. | |
810 | (remote_start_remote): Use them. | |
811 | (_initialize_remote_ops): Add operations. | |
812 | * ax-gdb.c: Include breakpoint.h. | |
813 | * breakpoint.c (create_tracepoint_from_upload): Use | |
814 | break_command_really, return tracepoint, warn about unimplemented | |
815 | parts. | |
816 | * NEWS: Mention trace file addition. | |
817 | ||
d904de5b JK |
818 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
819 | ||
820 | Fix compilation warning on gcc-3.4. | |
821 | * exec.c (print_section_info): Move the `displacement' variable | |
822 | initialization to its declaration. | |
823 | ||
64aa9731 JK |
824 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
825 | ||
826 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
827 | comparison. | |
828 | ||
ca1f5def | 829 | 2010-01-15 Eric Botcazou <botcazou@adacore.com> |
9f0dec2d JB |
830 | |
831 | "info tasks" broken by typedefs in ATCB type definitions. | |
832 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
833 | ada_check_typedef before retrieving the length of the type for | |
834 | regular fields. | |
835 | ||
12ab9e09 JB |
836 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
837 | ||
838 | Do not use name-based lookup for unconstrained packed arrays. | |
839 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
840 | Limit the fallback to name-based lookups to the case where | |
841 | the type is a constrained packed array. | |
842 | ||
c389c3dc JB |
843 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
844 | ||
845 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
846 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
847 | ||
7991dee7 JK |
848 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
849 | ||
850 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
851 | * configure: Regenerate. | |
852 | * config.in: Regenerate. | |
853 | * utils.c: Include sys/resource.h. | |
854 | (dump_core, can_dump_core): New. | |
855 | (internal_vproblem): Update the comment. Check can_dump_core while | |
856 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
857 | ||
93c26624 JK |
858 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
859 | Eli Zaretskii <eliz@gnu.org> | |
860 | ||
861 | * NEWS: Document the PIE support. | |
862 | ||
55235ad7 JK |
863 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
864 | ||
865 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
866 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
867 | ||
41752192 JK |
868 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
869 | ||
870 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
871 | Replace exec_entry_point call by bfd_get_start_address. | |
872 | ||
9f2982ff JK |
873 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
874 | ||
875 | Support Valgrind attachments broken by the PIE support. | |
876 | * auxv.c: Include gdbcore.h. | |
877 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
878 | parameters ops, object and annex. Remove their assertions. | |
879 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
880 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
881 | (memory_xfer_auxv): ... here. | |
882 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
883 | memory_xfer_auxv. | |
884 | * procfs.c (procfs_xfer_partial): Likewise. | |
885 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
886 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
887 | (svr4_solib_create_inferior_hook): Conditionalize the | |
888 | svr4_relocate_main_executable call. | |
889 | ||
61f0d762 JK |
890 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
891 | ||
892 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
893 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
894 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
895 | New variable abfd. | |
896 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
897 | of separate debug info file. | |
898 | ||
51bee8e9 JK |
899 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
900 | ||
901 | Support PIEs with no symfile_objfile. | |
902 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
903 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
904 | ||
b8040f19 JK |
905 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
906 | ||
907 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
908 | code part to ... | |
909 | (svr4_static_exec_displacement): ... a new function. | |
910 | (svr4_exec_displacement): New function. | |
911 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
912 | new_offsets using alloca now. Remove variable old_chain and changed. | |
913 | Call objfile_relocate unconditionally now. | |
914 | ||
eb90ce83 DE |
915 | 2010-01-14 Doug Evans <dje@google.com> |
916 | ||
917 | * gdbtypes.c (arch_flags_type): Fix comment. | |
918 | * gdbtypes.h (arch_composite_type): Fix comment. | |
919 | ||
bdfed3bc TG |
920 | 2009-01-14 Tristan Gingold <gingold@adacore.com> |
921 | ||
922 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
923 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
924 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
925 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
926 | macho_add_oso_symfile. | |
927 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
928 | ||
1596ad23 JB |
929 | 2010-01-14 Joel Brobecker <brobecker@adacore.com> |
930 | ||
931 | Tru64: Dead threads are never deleted. | |
932 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
933 | (dec_thread_count_gdb_threads): Fix counter increment. | |
934 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
935 | (resync_thread_list): Fix bug in deletion of dead threads that | |
936 | caused all threads to be deleted, instead of just the dead ones. | |
937 | ||
be759fcf PM |
938 | 2010-01-13 Phil Muldoon <pmuldoon@redhat.com> |
939 | ||
940 | PR python/10705 | |
941 | ||
942 | * python/python-internal.h: Add lazy_string_object_type | |
943 | definition. | |
944 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
945 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
946 | * python/py-value.c (valpy_lazy_string): New function. | |
947 | (convert_value_from_python): Add lazy string conversion. | |
948 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
949 | return is also a lazy string. | |
950 | (print_string_repr): Add lazy string printing branch. | |
951 | (print_children): Likewise. | |
952 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
953 | * python/python.c (_initialize_python): Call | |
954 | gdbpy_initialize_lazy_string. | |
955 | * varobj.c (value_get_print_value): Add lazy string printing | |
956 | branch. Account for encoding. | |
957 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
958 | encoding is NULL, find encoding suited for type, otherwise use | |
959 | user encoding. | |
960 | * language.h (language_defn): Add encoding argument. | |
961 | (LA_PRINT_STRING): Likewise. | |
962 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
963 | argument to language_defn. | |
964 | * ada-lang.h (ada_printstr): Likewise. | |
965 | * c-lang.h (c_printstr): Likewise. | |
966 | * p-lang.h (pascal_printstr); | |
967 | * f-lang.c (f_printstr): Likewise. | |
968 | * m2-lang.c (m2_printstr): Likewise. | |
969 | * objc-lang.c (objc_printstr): Likewise. | |
970 | * p-lang.c (pascal_printstr): Likewise. | |
971 | * scm-lang.c (scm_printstr): Likewise. | |
972 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
973 | encoding argument. | |
974 | * ada-valprint.c (ada_printstr): Likewise. | |
975 | * f-valprint.c (f_val_print): Likewise | |
976 | * m2-valprint.c (m2_val_print): Likewise. | |
977 | * p-valprint.c (pascal_val_print): Likewise. | |
978 | * expprint.c (print_subexp_standard): Likewise. | |
979 | * valprint.c (val_print_string): Likewise. | |
980 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
981 | (SUBDIR_PYTHON_SRCS): Likewise. | |
982 | (py-lazy-string.o): New rule. | |
983 | ||
1fe72117 | 984 | 2010-01-13 Doug Evans <dje@google.com> |
8eee9c5a DE |
985 | |
986 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
987 | uninitialized" warning from gcc on local `tree'. | |
988 | ||
dc146f7c VP |
989 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
990 | ||
991 | Implement core awareness. | |
992 | ||
993 | * bcache.c (compare_ints): Remove | |
994 | (print_percentage): Use compare_positive_ints. | |
995 | * defs.h (compare_positive_ints): Declare. | |
996 | * linux-nat.h (struct lin_lwp): New field core. | |
997 | (linux_nat_core_of_thread_1): Declare. | |
998 | * linux-nat.c (add_lwp): Init the 'core' field. | |
999 | (linux_nat_wait_1): Record the core. | |
1000 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
1001 | (linux_nat_add_target): Register the above. | |
1002 | * linux-thread-db.c (update_thread_core): New. | |
1003 | (thread_db_find_new_threads): Update core information for | |
1004 | every thread. | |
1005 | * remote.c (struct private_thread_info): New. | |
1006 | (free_private_thread_info, demand_private_info): New. | |
1007 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
1008 | (struct thread_item, threads_parsing_context | |
1009 | (start_thread, end_thread, thread_attributes) | |
1010 | (thread_children, threads_children, threads_elements): New. | |
1011 | (remote_threads_info): Try qXfer:threads before anything | |
1012 | else. | |
1013 | (remote_protocol_packets): Register qXfer:threads. | |
1014 | (remote_open_1): Init use_osdata_threads. | |
1015 | (struct stop_reply): New field 'core'. | |
1016 | (remote_parse_stop_reply): Parse core number. | |
1017 | (process_stop_reply): Record core number. | |
1018 | (remote_xfer_partial): Handle qXfer:threads. | |
1019 | (remote_core_of_thread): New. | |
1020 | (init_remote_ops): Register remote_core_of_thread. | |
1021 | (_initialize_remote): Register qXfer:read. | |
1022 | * target.c (target_core_of_thread): New | |
1023 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
1024 | (struct target_ops): New field to_core_of_threads. | |
1025 | (target_core_of_thread): Declare. | |
1026 | * gdbthread.h (struct thread_info): New field private_dtor. | |
1027 | * thread.c (print_thread_info): Report the core. | |
1028 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
1029 | * utils.c (compare_positive_ints): New. | |
1030 | * features/threads.dtd: New. | |
1031 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
1032 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
1033 | (do_nothing, free_vector_of_osdata_items) | |
1034 | (splay_tree_int_comparator, free_splay_tree): New. | |
1035 | (print_one_inferior_data): Implemented printing of selected | |
1036 | inferiors. Collect and print cores. | |
1037 | (output_cores): New. | |
1038 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
1039 | thread groups together with --available. | |
1040 | ||
d30c5336 JK |
1041 | 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
1042 | ||
1043 | * configure: Regenerate (for _STRUCTURED_PROC). | |
1044 | ||
02893727 JB |
1045 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
1046 | ||
1047 | Delete dead function. | |
1048 | * ada-lang.c (extract_string): Delete. No longer used. | |
1049 | ||
46ed2d6f JB |
1050 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
1051 | ||
1052 | Fix -Wunused warning in dec-thread.c. | |
1053 | * dec-thread.c (dec_thread_count_gdb_threads) | |
1054 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
1055 | ||
606b8d1a JB |
1056 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
1057 | ||
1058 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
1059 | ||
b4ba55a1 JB |
1060 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
1061 | ||
1062 | Add support for DW_AT_GNAT_descriptive_type. | |
1063 | * gdbtypes.h (enum type_specific_kind): New enum. | |
1064 | (struct main_type) [type_specific_field]: New component. | |
1065 | [type_specific]: Add new component "gnat_stuff". | |
1066 | (struct gnat_aux_type): New type. | |
1067 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
1068 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
1069 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
1070 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
1071 | (TYPE_SPECIFIC_FIELD): New macros. | |
1072 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
1073 | type does not hold any cplus-specific data. | |
1074 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
1075 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
1076 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
1077 | cplus-specific data. | |
1078 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
1079 | Set new component TYPE_SPECIFIC_FIELD (type). | |
1080 | (gnat_aux_default): New constant. | |
1081 | (allocate_gnat_aux_type): New function. | |
1082 | (init_type): Add initialization the type-specific stuff for | |
1083 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
1084 | (print_gnat_stuff): New function. | |
1085 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
1086 | specific data. Adjust code that prints the contents of the | |
1087 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
1088 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
1089 | the type cplus stuff for Ada types. | |
1090 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
1091 | Error out if these routines are called with an Ada type. | |
1092 | (read_structure_type, read_array_type, read_subrange_type): | |
1093 | Add call to set_descriptive_type. | |
1094 | (set_die_type): Initialize the gnat-specific data if necessary. | |
1095 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
1096 | New functions. | |
1097 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
1098 | decode_constrained_packed_array_type instead of doing a standard | |
1099 | lookup to locate a parallel type. | |
1100 | (find_parallel_type_by_descriptive_type): New function. | |
1101 | (ada_find_parallel_type_with_name): New function. | |
1102 | (ada_find_parallel_type): Reimplement using | |
1103 | ada_find_parallel_type_with_name. | |
1104 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
1105 | to check if type has a cplus stuff. | |
1106 | * linespec.c (total_number_of_methods): Likewise. | |
1107 | * mdebugread.c (new_type): Likewise. | |
1108 | ||
b0f02ee9 JK |
1109 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1110 | ||
1111 | * NEWS: Document the 0b binary number prefix parsing. | |
1112 | ||
b260e109 JK |
1113 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1114 | ||
1115 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
1116 | Describe the new return value. Return non-zero if data changed. | |
1117 | (objfile_relocate): New variable changed. Set it. Call | |
1118 | breakpoint_re_set depending on CHANGED. | |
1119 | ||
b5cfddf5 JK |
1120 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1121 | ||
1122 | Implement binary numbers parsing. | |
1123 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
1124 | ||
e0ae4240 JK |
1125 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1126 | Tristan Gingold <gingold@adacore.com> | |
1127 | ||
1128 | * solib.c (info_sharedlibrary_command): Replace | |
1129 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
1130 | objfile_has_symbols. | |
1131 | ||
6e0e5977 JB |
1132 | 2010-01-10 Joel Brobecker <brobecker@adacore.com> |
1133 | ||
1134 | * NEWS: Document the improvements made to the mips-irix port. | |
1135 | ||
7348c5e1 JB |
1136 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1137 | ||
1138 | Fix the documentation of valprint.c:value_print. | |
1139 | * valprint.c (value_print): Update the function description to | |
1140 | mention that the syntax of the output follows the current_language, | |
1141 | not necessarily C. | |
1142 | ||
567995e1 JK |
1143 | 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
1144 | ||
1145 | Fix displacement of separate debug info files. | |
1146 | * objfiles.c (objfile_relocate): Rename to ... | |
1147 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
1148 | (objfile_relocate): New function. | |
1149 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
1150 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
1151 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
1152 | allocated using alloca. | |
1153 | * symfile.c (copy_section_addr_info): Remove. | |
1154 | (build_section_addr_info_from_objfile): Make it global. New variables | |
1155 | addr_bit and mask, use them. | |
1156 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
1157 | (copy_section_addr_info): Remove. | |
1158 | ||
6d8eadbd JB |
1159 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1160 | ||
1161 | Signal unwinder for mips-irix N32. | |
1162 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
1163 | tramp-frame.h. | |
1164 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
1165 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
1166 | (SIGCONTEXT_LO_OFF): New macros. | |
1167 | (mips_irix_n32_tramp_frame_init): New function. | |
1168 | (mips_irix_n32_tramp_frame): New static constant. | |
1169 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
1170 | ||
27087a3d JB |
1171 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1172 | ||
1173 | Breakpoint in shared library does not work on mips-irix. | |
1174 | * procfs.c: #include "observer.h". | |
1175 | (procfs_inferior_created): New function, moving here the code | |
1176 | which unsets the syssgi syscall-exit notifications. | |
1177 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
1178 | syscall-exit notifications. It is too early to do this here. | |
1179 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
1180 | ||
f08877ba JB |
1181 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1182 | ||
1183 | Wrong return convention for arrays (mips-irix). | |
1184 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
1185 | 128 bits or smaller are returned the same way as structs | |
1186 | and unions of the the same size. | |
1187 | ||
e4b97d48 JB |
1188 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1189 | ||
1190 | Cannot set the PC on mips-irix. | |
1191 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
1192 | register number, no the cooked one. | |
1193 | ||
11377e68 JB |
1194 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1195 | ||
1196 | Error while loading core file on mips-irix. | |
1197 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
1198 | if debugging from a core file. | |
1199 | ||
b2391021 JB |
1200 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1201 | ||
1202 | GDB hangs when attaching to process on mips-irix. | |
1203 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
1204 | attaching to a process. | |
1205 | ||
f2ec0ecf JB |
1206 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1207 | ||
1208 | Use the correct breakpoint instruction on mips-irix. | |
1209 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
1210 | containing the correct breakpoint instruction to use on mips-irix. | |
1211 | Use it when the osabi is GDB_OSABI_IRIX. | |
1212 | ||
3c95f01c JB |
1213 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1214 | ||
1215 | -Wunused warning in procfs.c (mips-irix only). | |
1216 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
1217 | throughout instead of using praddset and prdelset respectively. | |
1218 | ||
4b7703ad JB |
1219 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1220 | ||
1221 | GDB crash while stepping into function. | |
1222 | * infrun.c (handle_inferior_event): Refetch the current frame | |
1223 | after handling what.main_action, in case that pointer became | |
1224 | dangling. | |
1225 | ||
12c89474 JB |
1226 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
1227 | ||
1228 | Fix build failure of solaris-hosted cross debuggers. | |
1229 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
1230 | ||
1a3fd262 | 1231 | 2010-01-09 Daniel Gutson <dgutson@codesourcery.com> |
4c490650 JB |
1232 | |
1233 | Fix build failure on sparc-solaris. | |
1234 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
1235 | ||
75242ef4 JK |
1236 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1237 | ||
1238 | Move some symfile code into subroutines. | |
1239 | * symfile.h (relative_addr_info_to_section_offsets) | |
1240 | (addr_info_make_relative): New prototypes. | |
1241 | * symfile.c (default_symfile_offsets): Move a part to ... | |
1242 | (relative_addr_info_to_section_offsets): ... this new function. | |
1243 | (default_symfile_offsets): Call it. | |
1244 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
1245 | this part to ... | |
1246 | (addr_info_make_relative): ... this new function. | |
1247 | ||
268a4a75 JK |
1248 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1249 | ||
1250 | Add from_tty to solib_create_inferior_hook. | |
1251 | * infcmd.c (post_create_inferior): Move solib_add after | |
1252 | solib_create_inferior_hook. Pass from_tty to | |
1253 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
1254 | 0 from_tty and comment why. | |
1255 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
1256 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
1257 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
1258 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
1259 | from_tty. | |
1260 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
1261 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
1262 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
1263 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
1264 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
1265 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
1266 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
1267 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
1268 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
1269 | from_tty. | |
1270 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
1271 | solib_add. | |
1272 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
1273 | enable_break. | |
1274 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
1275 | parameter from_tty. | |
1276 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
1277 | it to ops->solib_create_inferior_hook. | |
1278 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
1279 | Move solib_add after solib_create_inferior_hook, call it now with | |
1280 | from_tty as 0. New comment there. | |
1281 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
1282 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
1283 | Likewise. | |
1284 | ||
cf00dfa7 VP |
1285 | 2010-01-08 Vladimir Prus <vladimir@codesourcery.com> |
1286 | ||
1287 | Fix multiexec race. | |
1288 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
1289 | with events ptid, not get_current_regcache. | |
1290 | ||
f91e5ac3 JB |
1291 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1292 | ||
1293 | GDB crash with empty executable name (MinGW). | |
1294 | * source.c (openp): Add assert that parameter string is not NULL. | |
1295 | if parameter string is an empty string, then return with a failure | |
1296 | immediately. | |
1297 | ||
92b9ce5b JB |
1298 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1299 | ||
1300 | Get rid of support for VAX Floats. | |
1301 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
1302 | (ada_vax_float_print_function): Delete. | |
1303 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
1304 | (ada_vax_float_print_function): Delete. | |
1305 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
1306 | (ada_print_type): Remove support for VAX floats. | |
1307 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
1308 | ||
268a4a75 | 1309 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
d24d8548 JK |
1310 | |
1311 | * stabsread.c (read_args): Handle zero arguments. | |
1312 | ||
f0f20949 JB |
1313 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1314 | ||
1315 | Cannot find in-tree libiconv.a after reconfigure. | |
1316 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
1317 | that we can use, then cache the path to this archive. | |
1318 | * configure: Regenerate. | |
1319 | ||
6b6218c5 SS |
1320 | 2010-01-07 Stan Shebs <stan@codesourcery.com> |
1321 | ||
35b1e5cc SS |
1322 | Make tracepoint operations go through target vector. |
1323 | * target.h (enum trace_find_type): New enum. | |
1324 | (struct target_ops): New fields to_trace_init, | |
1325 | to_download_tracepoint, to_download_trace_state_variable, | |
1326 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
1327 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
1328 | to_set_disconnected_tracing. | |
1329 | (target_trace_init): New macro. | |
1330 | (target_download_tracepoint): New macro. | |
1331 | (target_download_trace_state_variable): New macro. | |
1332 | (target_trace_start): New macro. | |
1333 | (target_trace_set_readonly_regions): New macro. | |
1334 | (target_get_trace_status): New macro. | |
1335 | (target_trace_stop): New macro. | |
1336 | (target_trace_find): New macro. | |
1337 | (target_get_trace_state_variable_value): New macro. | |
1338 | (target_set_disconnected_tracing): New macro. | |
1339 | * target.c (update_current_target): Inherit and set defaults for | |
1340 | tracepoint operations. | |
1341 | * tracepoint.c (default_collect): Make globally visible. | |
1342 | (target_is_remote): Remove, along with all calls. | |
1343 | (tvariables_info): Call target_get_trace_state_variable_value. | |
1344 | (remote_set_transparent_ranges): Remove. | |
1345 | (trace_start_command): Call target_trace_init, | |
1346 | target_download_tracepoint, etc. | |
1347 | (download_tracepoint): Remove. | |
1348 | (trace_stop_command): Simplify. | |
1349 | (stop_tracing): Call target_trace_stop. | |
1350 | (get_trace_status): Call target_get_trace_status. | |
1351 | (trace_status_command): Add case for targets that cannot trace. | |
1352 | (finish_tfind_command): Change to take numerical arguments, call | |
1353 | target_trace_find. | |
1354 | (trace_find_command): Update call to finish_tfind_command. | |
1355 | (trace_find_pc_command): Ditto. | |
1356 | (trace_find_tracepoint_command): Ditto. | |
1357 | (trace_find_line_command): Ditto. | |
1358 | (trace_find_range_command): Ditto. | |
1359 | (trace_find_outside_command): Ditto. | |
1360 | (set_disconnected_tracing_value): Call | |
1361 | target_set_disconnected_tracing. | |
1362 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
1363 | (trace_error): Move from tracepoint.c. | |
1364 | (remote_get_noisy_reply): Ditto. | |
1365 | (free_actions_list_cleanup_wrapper): Ditto. | |
1366 | (free_actions_list): Ditto. | |
1367 | (remote_trace_init): New function. | |
1368 | (remote_download_tracepoint): New function. | |
1369 | (remote_download_trace_state_variable): New function. | |
1370 | (remote_trace_set_readonly_regions): New function. | |
1371 | (remote_trace_start): New function. | |
1372 | (remote_get_trace_status): New function. | |
1373 | (remote_trace_stop): New function. | |
1374 | (remote_trace_find): New function. | |
1375 | (remote_download_trace_state_variable): New function. | |
1376 | (remote_set_disconnected_tracing): New function. | |
1377 | (init_remote_ops): Add tracepoint operations. | |
1378 | ||
6b6218c5 SS |
1379 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
1380 | ||
089b4803 TG |
1381 | 2010-01-07 Tristan Gingold <gingold@adacore.com> |
1382 | ||
1383 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
1384 | (symbol_file_add_separate): Don't use offsets from objfile but | |
1385 | built an addr info. | |
1386 | ||
d5551862 SS |
1387 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
1388 | ||
1389 | Support disconnected tracing. | |
1390 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
1391 | * cli/cli-cmds.c (quit_command): Ditto. | |
1392 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
1393 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
1394 | (get_tracepoint_by_number_on_target): New function. | |
1395 | * remote.c (struct remote): New field disconnected_tracing. | |
1396 | (remote_disconnected_tracing_feature): New function. | |
1397 | (remote_protocol_features): Add DisconnectedTracing. | |
1398 | (struct uploaded_tp): New struct. | |
1399 | (uploaded_tps): New global. | |
1400 | (get_uploaded_tp): New function. | |
1401 | (find_matching_tracepoint): New function. | |
1402 | (remote_get_tracing_state): New function. | |
1403 | (remote_start_remote): Call it. | |
1404 | * tracepoint.c (disconnected_tracing): New global. | |
1405 | (trace_start_command): Initialize number_on_target. | |
1406 | (stop_tracing): New function, split out from... | |
1407 | (trace_stop_command): Call stop_tracing. | |
1408 | (get_trace_status): New function, split out from... | |
1409 | (trace_status_command): Call get_trace_status, add info on | |
1410 | disconnection behavior. | |
1411 | (disconnect_or_stop_tracing): New function. | |
1412 | (finish_tfind_command): Translate from number on target. | |
1413 | (trace_find_tracepoint_command): Translate to number on target. | |
1414 | (send_disconnected_tracing_value): New function. | |
1415 | (set_disconnected_tracing): New function. | |
1416 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
1417 | * NEWS: Mention disconnected tracing. | |
1418 | ||
15d123c9 TG |
1419 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
1420 | ||
1421 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
1422 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
1423 | * symfile.h (symbol_file_add_separate) | |
1424 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
1425 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
1426 | (reread_symbols): Use free_objfile_separate_debug. | |
1427 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
1428 | Adjust comment. | |
1429 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
1430 | (free_objfile_separate_debug): New prototypes. | |
1431 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
1432 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
1433 | functions. | |
1434 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
1435 | multiple separate debug objfile. | |
1436 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
1437 | debug objfiles. | |
1438 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
1439 | debug objfile. | |
1440 | (lookup_minimal_symbol_text): Ditto. | |
1441 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
1442 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
1443 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
1444 | debug objfiles. | |
1445 | ||
7a697b8d SS |
1446 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
1447 | ||
1448 | Add fast tracepoints. | |
1449 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
1450 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
1451 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
1452 | * breakpoint.c (tracepoint_type): New function. | |
1453 | (ALL_TRACEPOINTS): Use it. | |
1454 | (should_be_inserted): Ditto. | |
1455 | (bpstat_check_location): Ditto. | |
1456 | (print_one_breakpoint_location): Ditto. | |
1457 | (user_settable_breakpoint): Ditto. | |
1458 | (set_breakpoint_location_function): Ditto. | |
1459 | (disable_breakpoints_in_shlibs): Ditto. | |
1460 | (delete_trace_command): Ditto. | |
1461 | (print_it_typical): Add bp_fast_tracepoint case. | |
1462 | (bpstat_what): Ditto. | |
1463 | (print_one_breakpoint_location): Ditto. | |
1464 | (allocate_bp_location): Ditto. | |
1465 | (mention): Ditto. | |
1466 | (breakpoint_re_set_one): Ditto. | |
1467 | (disable_command): Ditto. | |
1468 | (enable_command): Ditto. | |
1469 | (check_fast_tracepoint_sals): New function. | |
1470 | (break_command_really): Call it. | |
1471 | (ftrace_command): New function. | |
1472 | (_initialize_breakpoint): Add ftrace command. | |
1473 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
1474 | * gdbarch.h, gdbarch.c: Regenerate. | |
1475 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
1476 | (i386_gdbarch_init): Use it. | |
1477 | * remote.c (struct remote_state): New field fast_tracepoints. | |
1478 | (PACKET_FastTracepoints): New packet config type. | |
1479 | (remote_fast_tracepoint_feature): New function. | |
1480 | (remote_protocol_features): Add FastTracepoints. | |
1481 | (remote_supports_fast_tracepoints): New function. | |
1482 | (_initialize_remote): Add FastTracepoints. | |
1483 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
1484 | * NEWS: Mention fast tracepoints. | |
1485 | ||
737a160e JB |
1486 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
1487 | ||
1488 | * gdb-gdb.py: New file. | |
1489 | ||
ce6cca6d MS |
1490 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
1491 | ||
1492 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
1493 | ||
0d15807d JK |
1494 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1495 | ||
1496 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
1497 | ||
7803799a UW |
1498 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
1499 | ||
1500 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, | |
1501 | and s390x-linux64. | |
1502 | (s390-linux32-expedite): Define. | |
1503 | (s390-linux64-expedite): Define. | |
1504 | (s390x-linux64-expedite): Define. | |
1505 | * features/s390-acr.xml: New file. | |
1506 | * features/s390-fpr.xml: New file. | |
1507 | * features/s390-core32.xml: New file. | |
1508 | * features/s390-core64.xml: New file. | |
1509 | * features/s390x-core64.xml: New file. | |
1510 | * features/s390-linux32.xml: New file. | |
1511 | * features/s390-linux64.xml: New file. | |
1512 | * features/s390x-linux64.xml: New file. | |
1513 | * features/s390-linux32.c: New generated file. | |
1514 | * features/s390-linux64.c: New generated file. | |
1515 | * features/s390x-linux64.c: New generated file. | |
1516 | ||
1517 | * regformats/s390-linux32.dat: New generated file. | |
1518 | * regformats/s390-linux64.dat: New generated file. | |
1519 | * regformats/s390x-linux64.dat: New generated file. | |
1520 | * regformats/reg-s390.dat: Remove. | |
1521 | * regformats/reg-s390x.dat: Remove. | |
1522 | ||
1523 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
1524 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
1525 | (s390_target_wordsize): New function. | |
1526 | (s390_auxv_parse): Likewise. | |
1527 | (s390_get_hwcap): Likewise. | |
1528 | (s390_read_description): Likewise. | |
1529 | (_initialize_s390_nat): Install s390_auxv_parse and | |
1530 | s390_read_description. | |
1531 | ||
1532 | * s390-tdep.c: Include "features/s390-linux32.c", | |
1533 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
1534 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
1535 | (s390_register_call_saved): New function. | |
1536 | (s390_register_name): Remove. | |
1537 | (s390_register_type): Remove. | |
1538 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
1539 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
1540 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
1541 | (s390_pseudo_register_name): New function. | |
1542 | (s390_pseudo_register_type): New function. | |
1543 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
1544 | Handle full GPR pesudos and varying pseudo register numbers. | |
1545 | (s390_pseudo_register_write): Likewise | |
1546 | (s390x_pseudo_register_read): Remove. | |
1547 | (s390x_pseudo_register_write): Likewise. | |
1548 | (s390_register_group): Remove. | |
1549 | (s390_pseudo_register_group): New function. | |
1550 | (s390_regmap_gregset): Add GPR upper halves. | |
1551 | (s390x_regmap_gregset): Likewise. | |
1552 | (s390_regmap_fpregset): Likewise. | |
1553 | (s390_regmap_upper): New global variable. | |
1554 | (s390_upper_regset): New global variable. | |
1555 | (s390_upper_regset_sections): New global variable. | |
1556 | (s390_regset_from_core_section): Handle GPR upper halves. | |
1557 | (s390_core_read_description): New function. | |
1558 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
1559 | register information. Handle varying pseudo register numbers. | |
1560 | (s390_backchain_frame_unwind_cache): Likewise. | |
1561 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
1562 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
1563 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
1564 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
1565 | Handle varying pseudo register numbers. | |
1566 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
1567 | (s390_dwarf2_prev_register): New function. | |
1568 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
1569 | register information. Handle varying pseudo register numbers. | |
1570 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
1571 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
1572 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
1573 | (_initialize_s390_tdep): Initialize target descriptions. | |
1574 | ||
1575 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
1576 | (S390_NUM_REGS): Redefine to include upper half registers. | |
1577 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
1578 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
1579 | (tdesc_s390_linux32): Add declaration. | |
1580 | (tdesc_s390_linux64): Likewise. | |
1581 | (tdesc_s390x_linux64): Likewise. | |
1582 | ||
1b1818e4 UW |
1583 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
1584 | ||
1585 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
1586 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
1587 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
1588 | (ppc_linux_vmx_regset_sections): Likewise. | |
1589 | (ppc_linux_fp_regset_sections): Likewise. | |
1590 | ||
1591 | * corelow.c (get_core_register_section): Constify arguments. | |
1592 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
1593 | of hard-coded platform-specific register section names. | |
1594 | ||
dcbf108f UW |
1595 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
1596 | ||
1597 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 1598 | a register, assume the least-significant part is used. |
dcbf108f UW |
1599 | (write_pieced_value): Likewise. |
1600 | ||
704e9165 UW |
1601 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
1602 | ||
1603 | * printcmd.c: Include "arch-utils.h". | |
1604 | (do_one_display): Re-parse expression if current architecture changed. | |
1605 | ||
c54eabfa JK |
1606 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1607 | Joel Brobecker <brobecker@adacore.com> | |
1608 | ||
1609 | * gdbtypes.c (check_typedef): New comment on type length. | |
1610 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
1611 | comment on type length. | |
1612 | (value_primitive_field): Keep the original TYPE value, new comment. | |
1613 | ||
50cb2941 JK |
1614 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1615 | ||
1616 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
1617 | p_start. Change != comparisons to > and < comparisons. | |
1618 | ||
be66db07 JK |
1619 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
1620 | ||
1621 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
1622 | ||
abd775ce JB |
1623 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
1624 | ||
1625 | Update the copyright hearder to add year 2010 for most GDB files. | |
1626 | ||
6479260d JB |
1627 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
1628 | ||
1629 | Fix build failure in inf-ptrace.c. | |
1630 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
1631 | ||
4a70f654 JB |
1632 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
1633 | ||
1634 | * top.c (print_gdb_version): Update copyright year. | |
1635 | ||
b9ee2233 JB |
1636 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
1637 | ||
1638 | Fix break *FUN'address thread NUM. | |
1639 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
1640 | ||
70575d34 JB |
1641 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
1642 | ||
1643 | Fix break *FUN'address task NUM. | |
1644 | * ada-lex.l (task): New rule. | |
1645 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
1646 | been built before using it. | |
1647 | ||
e1e4d4a4 | 1648 | For older changes see ChangeLog-2009. |
c906108c SS |
1649 | \f |
1650 | Local Variables: | |
1651 | mode: change-log | |
1652 | left-margin: 8 | |
1653 | fill-column: 74 | |
1654 | version-control: never | |
57da7796 | 1655 | coding: utf-8 |
c906108c | 1656 | End: |