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